TokenBudget
Server Details
Sourced LLM API prices and cost budgets for agent runs across OpenAI, Claude, Gemini and more.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 7 tools
Most tools are clearly separated by resource and intent (counting, pricing, multi-turn planning, feedback). The one weak boundary is check_context_fit versus estimate_cost, which both report whether a request fits each model's context window, so an agent may pick either for a fit check. The pricing pair (get_model_pricing vs list_models) is one-model-versus-all and reads clearly.
All seven tools follow a consistent verb_noun snake_case pattern (check_context_fit, count_tokens, estimate_cost, get_model_pricing, list_models, plan_agent_run, send_feedback). No camelCase or bare-verb outliers.
Seven tools is well within the comfortable range and each maps to a distinct capability in the token/cost budgeting workflow. Nothing appears redundant enough to drop, and nothing essential is padded in.
The surface covers the full loop: count tokens, check fit, look up pricing (single and bulk), price a request, plan an agent run, and report data problems. Minor gaps remain, such as counting tokens for structured conversation/tool-schema payloads rather than plain text, but agents can work around them by flattening input.
Available Tools
7 toolscheck_context_fitCheck which models' context windows fit an inputARead-onlyIdempotentInspect
Say which models can take this input plus the output you want to reserve, which cannot, and which do not publish a context window. Use before sending a very large document or conversation.
Inputs: text, models, system, messages, +3 more.
count_tokensEstimate token counts per tokenizerARead-onlyIdempotentInspect
Estimate how many tokens a text is for each tokenizer family (OpenAI o200k, Claude legacy and 2026, Gemini, DeepSeek, Mistral, Qwen), with an error band. Estimates only; for exact counts use the provider's count endpoint.
Inputs: text, models, messages.
estimate_costEstimate the cost of one LLM request across modelsARead-onlyIdempotentInspect
Price one LLM request (input + expected output) on many models at once, cheapest first, with current list prices from each provider's own pricing page (source URL and check date included), prompt-cache and batch discounts, long-prompt surcharges and announced price changes. Also says whether the request fits each model's context window. Call this before an expensive request to pick a model or to stay inside a budget.
Inputs: date, text, batch, models, +6 more.
get_model_pricingGet one model's price and limitsBRead-onlyIdempotentInspect
Price, context window, long-prompt surcharge, announced price changes and source for one model id.
Inputs: model (required).
list_modelsList models with prices and limitsBRead-onlyIdempotentInspect
List every model this tool prices, with input, output, cache and batch prices per 1M tokens, context window, max output, source URL and the day the price was checked.
Inputs: provider, providers, min_context.
plan_agent_runBudget a multi-turn agent runARead-onlyIdempotentInspect
Estimate the total cost of an agent loop that re-sends its growing context every turn, with prompt caching, on many models. Returns total cost, peak context, how many turns fit in each model's context window, how many turns fit in a budget, and a recommended model. Use before starting a long agent task.
Inputs: turns (required), cache, models, providers, +6 more.
send_feedbackSend feedback about this toolAInspect
Report a wrong price, a missing model, a bug or an idea. Read by a person. Keep it under 1000 characters and do not include prompts, secrets or personal data (they are scrubbed anyway).
Inputs: message (required), kind, model, endpoint.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
LLM API prices and AI agent cost estimates, verified daily. Read-only cost lookup tools.
Budget & cost control for AI agents — per-agent spend caps + rate limits before each call.
LLM API prices across 100+ providers: cheapest offer, comparisons, history and cost estimates.
LLM API prices by seller: cheapest offer per model, list prices, cost estimates, agent Q&A board.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceCompare AI inference pricing across 9 providers in real time. Routing recommendations, spend tracking, and budget alerts for AI agents.MIT
- AlicenseNot gradedqualityDmaintenanceProvides real-time AI model pricing, cost estimation, and budget management tools to help agents understand and optimize their spending. It enables agents to compare costs across multiple providers and select the most cost-effective models for specific tasks.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to track LLM costs, enforce budgets, compare models, and estimate expenses through simple tool calls.-
- AlicenseNot gradedqualityDmaintenanceEstimates, compares, and controls LLM API costs before agents spend tokens, with tools for cost estimation, model comparison, and budget checking.52 npmMIT
Glama MCP Gateway
Add one secure layer between your agents and this server.