Skip to main content
Glama

TokenBudget

Server Details

Sourced LLM API prices and cost budgets for agent runs across OpenAI, Claude, Gemini and more.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A3.8/5.0

Scored across 7 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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 tools
check_context_fitCheck which models' context windows fit an inputA
Read-onlyIdempotent
Inspect

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 tokenizerA
Read-onlyIdempotent
Inspect

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 modelsA
Read-onlyIdempotent
Inspect

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 limitsB
Read-onlyIdempotent
Inspect

Price, context window, long-prompt surcharge, announced price changes and source for one model id.

Inputs: model (required).

list_modelsList models with prices and limitsB
Read-onlyIdempotent
Inspect

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 runA
Read-onlyIdempotent
Inspect

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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Estimates, compares, and controls LLM API costs before agents spend tokens, with tools for cost estimation, model comparison, and budget checking.
      52 npm
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources