Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LLM_PRICEBOOK_TTLNoSeconds to reuse downloaded data before fetching again.3600
LLM_PRICEBOOK_URLNoRead a different copy, for example a mirror.the dataset's `v1/models.json`
LLM_PRICEBOOK_OFFLINENo`1` = never use the network (same as the `--offline` flag).off
LLM_PRICEBOOK_CACHE_DIRNoWhere the downloaded copy is kept between runs; `none` disables it.~/.cache/llm-pricebook-mcp

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Official API prices of large language models (OpenAI, Anthropic, Google, xAI, Mistral, DeepSeek, Alibaba Qwen, ByteDance Doubao, Zhipu GLM, Moonshot Kimi, MiniMax, StepFun), from the open llm-pricebook dataset. All prices are per 1M tokens in the provider's own currency unless a conversion is requested; converted values are approximate (≈) and carry the exchange-rate date. Every result names the official source page and the date the price was last verified. Use estimate_cost for request costs: it applies long-context bands, cache pricing and the batch/flex/priority tiers.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_model_priceA

Official API price of one model: every price row (tiers, long-context bands, regions, cache prices), announced future prices, context window, capabilities, source URL and verification date. Accepts the API id ("gpt-5.5"), a dated snapshot or alias ("claude-sonnet-4-5-20250929"), a display name, or "provider/id".

find_modelsA

Search models by capability, price, context window, provider or name, sorted by price or size. Example: requires ["vision","tools"], max_input_price 1, currency "USD", sort_by "output_price". Prices compared are each model's main price (standard tier, default region, lowest context band) per 1M tokens, converted to currency when needed.

compare_modelsA

Side-by-side main prices, context windows and capabilities of 2–10 models in one currency. Pass input_tokens/output_tokens (and optionally cached_input_tokens, tier) to also compare the cost of that workload.

estimate_costA

Cost of a workload on one model from official prices. input_tokens is the whole prompt per request; cached_input_tokens and cache_write_tokens are the parts of it read from / written to the prompt cache. The long-context band is chosen from the per-request token counts. Use tier for batch/flex/priority prices. When a model has several prices for the same request (thinking vs non-thinking, peak vs off-peak) every variant is returned with a range unless mode/time pins one down.

list_providersB

Providers in the dataset with model counts, official pricing pages and the exchange rates used for conversions.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a distinct role: single-model detail lookup (get_model_price), discovery/filtering (find_models), multi-model comparison (compare_models), workload cost math (estimate_cost), and provider listing (list_providers). The boundary between get_model_price and compare_models is slightly soft since a 1-model 'comparison' could substitute for a price lookup, but the descriptions make the intended split clear.

Naming Consistency5/5

All five tools follow a clean verb_noun snake_case pattern: get_model_price, find_models, compare_models, estimate_cost, list_providers. No mixed conventions or vague verbs.

Tool Count5/5

Five tools is well within the sweet spot and each maps to a distinct step in the pricing workflow (lookup, search, compare, estimate, browse providers). Nothing feels redundant or padded.

Completeness4/5

The surface covers discovery, detail, comparison, and cost estimation over official prices plus provider metadata, which is a solid read-only lifecycle for a pricebook. Minor gaps exist, such as a dedicated way to browse price history or enumerate currencies/tiers independently, but agents can work around these via find_models and get_model_price.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues