Skip to main content
Glama

ForgeSuite Web3, FinOps, Brand & Media MCP

TokenCost Lab Multi-Turn LLM Budget Estimator

tokencost_estimate
Read-onlyIdempotent

Estimate per-run, daily, and monthly LLM API and multi-turn AI agent costs across Claude 4.5 (Opus/Sonnet/Haiku), GPT-5/Mini, Gemini 2.5 Pro/Flash, and DeepSeek V3 with prompt caching and client retainer markup.

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": "tokencost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional provider/model filter.
turnsNoNumber of multi-turn agent steps per run.
promptNoOptional sample prompt text to estimate input tokens.
inputTokensNoExplicit input token count per initial turn.
daysPerMonthNoActive days per month.
outputTokensNoExpected output tokens per turn.
cachedRatioPctNoPrompt cache hit percentage (0-100).
requestsPerDayNoRuns per day.
marginMultiplierNoClient retainer quote markup multiplier.
toolTokensPerTurnNoTool output tokens appended per turn.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world behavior, so the safety profile is covered. The description usefully adds that prompt caching and client retainer markup are factored in and which model families are supported, but it omits whether pricing is bundled offline or fetched live, how unsupported models behave, and what the result contains.

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?

A single dense but front-loaded sentence: the output dimensions and resource lead, with model enumeration and pricing modifiers trailing. The parenthetical model list is long but informative rather than padding.

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

Completeness3/5

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

For a 10-parameter tool with zero required fields and no output schema, the description explains inputs conceptually but never describes the return shape (per-run/daily/monthly breakdown, currency, whether markup is applied separately). That gap matters precisely because no output schema exists to cover it.

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 all ten parameters are already documented in structured form. The description corroborates a few of them (multi-turn steps, prompt caching, retainer markup) but adds no unit conventions, ranges, or interaction rules beyond the schema, so baseline 3 applies.

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

Purpose5/5

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

States a specific verb ("Estimate") plus the exact resource (per-run, daily, and monthly LLM API and multi-turn agent costs) and enumerates the covered providers/models. An agent can tell immediately what this computes; the sibling set is unrelated domains, so no differentiation is needed.

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?

Usage is only implied by the name and verb — an agent infers "call this when you need a cost projection," but there is no explicit when-to-use, when-not-to-use, or prerequisite statement (e.g. whether a model name must match the supported list).

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.