You're viewing a demo portfolio

Join the waitlist
PRSM

cost_tracker

Active

Tool of io.github.lazymac2x/ai-cost-optimizer

declared in 2.0.0

Record and retrieve AI API call costs by team. Persists to Cloudflare KV — survives cold starts and scale-out.

Parameters schema

{
  "type": "object",
  "required": [
    "action"
  ],
  "properties": {
    "team": {
      "type": "string",
      "description": "Team or project identifier (default: \"default\")"
    },
    "model": {
      "type": "string",
      "description": "Model ID (e.g., claude-3-5-sonnet-20241022, gpt-4o, gemini-2.0-flash)"
    },
    "action": {
      "enum": [
        "record",
        "get"
      ],
      "type": "string",
      "description": "\"record\" to log a call, \"get\" to retrieve recent records"
    },
    "metadata": {
      "type": "object",
      "description": "Optional key-value metadata (request ID, user, feature flag, etc.)"
    },
    "inputTokens": {
      "type": "number",
      "description": "Number of input/prompt tokens consumed"
    },
    "outputTokens": {
      "type": "number",
      "description": "Number of output/completion tokens generated"
    }
  }
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

io.github.lazymac2x/ai-cost-optimizer

https://github.com/lazymac2x/ai-cost-optimizer-api

1/7 registries
View full server →