Skip to main content
Glama

What spare API credit could earn

estimate_earnings
Read-onlyIdempotent

Answers "what is my unused, leftover or expiring API credit worth?" for one provider or plan. Pass a plan (claude_max, chatgpt_pro_200) or a provider with monthlyCreditUsd. Returns a plain summary and an upper bound per month from the last 24 hours of Surplus sales; the lower bound is always $0 and nothing is guaranteed. Relay the summary and its caveats, not just the number. Never pass an API key.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "estimate_earnings"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoSubscription plan, e.g. claude_max, chatgpt_pro_200.
modelsNoExact model ids to restrict to.
providerNoProvider the key belongs to. Optional when plan is given.
monthlyCreditUsdNoSpare list-price API credit per month, in USD. Overrides the plan's included credit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "venice",
      -  "capminal",
      -  "openrouter",
      -  "openai",
      -  "anthropic",
      -  "google",
      -  "deepseek",
      -  "groq",
      -  "mistral",
      -  "together",
      -  "fireworks",
      -  "bankr",
      -  "bedrock",
      -  "zai",
      -  "zai-coding",
      -  "mordiem",
      -  "uncensored",
      -  "engy",
      -  "concentrate",
      -  "akashml",
      -  "typesafe",
      -  "aiflow",
      -  "dolphin",
      -  "dashscope-cn",
      -  "meta",
      -  "snowflake",
      -  "ollama",
      -  "cheaperinference",
      -  "jatevo",
      -  "jatevo-api",
      -  "aionlabs",
      -  "aile",
      -  "orcarouter",
      -  "inference-net",
      -  "kilo",
      -  "experiential",
      -  "pearl",
      -  "sarvam",
      -  "abliteratedllm",
      -  "abliterationai",
      -  "synap",
      -  "river",
      -  "kenari",
      -  "custom"
      -]New value: +[
      +  "venice",
      +  "capminal",
      +  "openrouter",
      +  "openai",
      +  "anthropic",
      +  "google",
      +  "deepseek",
      +  "groq",
      +  "mistral",
      +  "together",
      +  "fireworks",
      +  "bankr",
      +  "bedrock",
      +  "zai",
      +  "zai-coding",
      +  "mordiem",
      +  "uncensored",
      +  "engy",
      +  "concentrate",
      +  "akashml",
      +  "typesafe",
      +  "aiflow",
      +  "dolphin",
      +  "dashscope-cn",
      +  "meta",
      +  "snowflake",
      +  "ollama",
      +  "jatevo",
      +  "jatevo-api",
      +  "aionlabs",
      +  "aile",
      +  "orcarouter",
      +  "inference-net",
      +  "kilo",
      +  "experiential",
      +  "pearl",
      +  "sarvam",
      +  "abliteratedllm",
      +  "abliterationai",
      +  "synap",
      +  "river",
      +  "kenari",
      +  "custom"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive and closed-world, yet the description still adds real substance: the estimate derives from the last 24 hours of Surplus sales, the lower bound is always $0, nothing is guaranteed, and the summary's caveats should be relayed. That methodology and uncertainty disclosure is meaningful value beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the question the tool answers, then the input contract, then the return shape and caveat. The 'Never pass an API key' warning is a distinct point but earns its place as a safety constraint.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly takes on the return-value burden by describing a plain summary plus an upper bound per month and the $0 floor. For a four-parameter read-only estimate with full annotation coverage, this is close to complete, though the exact summary fields remain unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the parameters (plan, models, provider, monthlyCreditUsd) are already well documented in the schema. The description only clarifies the plan-or-provider combination and that monthlyCreditUsd overrides included credit, which the schema largely states itself.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific question the tool answers ('what is my unused, leftover or expiring API credit worth?') scoped to one provider or plan, which is concrete enough to separate it from market_snapshot or check_eligibility. It never explicitly names a sibling, so it falls short of full differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent how to select inputs ('Pass a plan ... or a provider with monthlyCreditUsd') and adds a hard constraint ('Never pass an API key'), but gives no when-to-use versus when-not guidance relative to the sibling tools. Usage is implied rather than routed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources