Skip to main content
Glama

Cost split of AI API models

api_price_breakdown
Read-onlyIdempotent

What a month of AI API use costs per bill item for every model we compare (or one provider / chosen models): fresh input, input read from the cache, input written into the cache, output, and the total, per request and per month in the price list's currency (USD) and in the buyer's currency by the Czech National Bank rate (fx_date), each item's whole-percent share, every other item the price list names (batch discount and whether it applied, the dearer long-prompt band and whether the request is in it, the context window, cache_write_not_stated when the price list names no write price and writes were billed as ordinary input), what is included, and the official source_url with verified_on. Default scenario: 1 000 requests a month, 1 500 input and 600 output tokens each, 40 % of the input read from the cache and 10 % written; every field can be changed. Nothing is estimated beyond the stated prices.

Input Schema

NameRequiredDescriptionDefault
batchNoBatch processing at the provider's batch discount, where it offers one.
localeNoBCP 47 locale for human-readable strings, e.g. "en", "cs", "sk". Defaults to the country's default locale.
modelsNoComma-separated plan ids from /digital/plans (category ai-api), e.g. claude-sonnet-5-5.
currencyNoOverride the local currency.
providerNoOnly this provider's models (Anthropic, OpenAI, Google, DeepSeek, Mistral, xAI, AI21 Labs, Amazon...), case-insensitive.
cache_shareNoShare of the input read from the cache (0-1). Default 0.4.
input_tokensNoInput tokens of one request. Default 1 500.
output_tokensNoOutput tokens of one request. Default 600.
cache_write_shareNoShare of the input written into the cache (0-1, with cache_share at most 1). Default 0.1.
deliver_to_countryNoThe buyer's country; decides the local currency.
messages_per_monthNoRequests a month. Default 1 000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive operation. The description adds meaningful behavioral context beyond that: it explains the FX source and date, notes that each item includes official source_url and verified_on, and explicitly says nothing is estimated beyond stated prices. It does not contradict 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.

Conciseness3/5

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

The purpose and default scenario are front-loaded, and the clause-heavy content is largely relevant because there is no output schema. However, the description is a single sprawling sentence with nested parentheticals, which makes it harder to parse than necessary.

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 11 parameters, no output schema, and only read-only annotations, the description does substantial work by enumerating the returned cost components, currencies, FX handling, shares, batch/long-prompt details, cache_write_not_stated, and source provenance. It is therefore largely complete for an agent to call and interpret the tool, despite omitting explicit sibling-selection guidance.

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 schema already documents all 11 parameters in detail. The description reinforces the default scenario across several parameters and states that every field can be changed, but it does not add much parameter semantics beyond what the schema provides.

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 clearly states a specific computation: monthly AI API cost per bill item for every compared model or a selected provider/model set, broken into input, cache read/write, output, and total. It is easy to distinguish from generic product or energy tools, but it does not name or contrast with relevant siblings such as compare_digital or digital_price_history.

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

Usage Guidelines2/5

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

It supplies a default scenario and notes that every field can be changed, but it gives no explicit guidance on when to choose this tool versus alternatives like compare_digital or digital_price_history. There are also no stated exclusions or prerequisites for use.

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