Skip to main content
Glama

Model prices by provider

model_prices
Read-onlyIdempotent

Verified per-token prices for an AI model across hosting providers, ranked cheapest first by blended cost (3:1 input to output). Each row has input, output and cached prices per 1M tokens in the provider's own currency, the source pricing page, the date it was verified, and its last recorded price change (date, previous price, percent, and whether the provider changed it or an earlier reading was corrected). CC-BY-4.0. Each result includes an infrabase_url for attribution.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model": "<model>"
    },
    "name": "model_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel slug from list_models, e.g. gpt-oss-120b. The model name also works.
eu_onlyNoOnly providers headquartered in Europe

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / eu_only / description
      Added value: +"Only providers headquartered in Europe"
    • changedInput schema / properties / model / description
      Previous value: -"Model slug, e.g. gpt-oss-120b"New value: +"Model slug from list_models, e.g. gpt-oss-120b. The model name also works."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, and the description adds real context beyond them: results are sorted by blended cost, prices are per 1M tokens in the provider's own currency, each row carries a verification date and a last-price-change record distinguishing provider edits from corrections. It also discloses the CC-BY-4.0 attribution obligation and the infrabase_url field, which an agent would otherwise miss without an output schema.

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?

One front-loaded paragraph that leads with what the tool returns and the ordering rule before drilling into row fields. It is dense but every clause carries content; the parenthetical breakdown of the price-change record is the only slightly heavy section.

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 no output schema, the description carries the return-value burden and does so thoroughly: row fields, units, currency handling, provenance, and attribution are all covered. Minor gaps remain around result volume per model and behavior for unknown or unlisted model slugs.

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 coverage is 100%, so both parameters (model, eu_only) are already documented in the schema; the description adds no meaning to either. The blended-cost and currency details enrich interpretation of results rather than the inputs, so the baseline of 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 resource (per-token model prices across providers) with a precise verb-implied action (retrieve/compare) and adds the ranking rule (cheapest first by blended 3:1 cost). An agent can immediately tell this apart from list_models (slug discovery) or find_alternatives (model substitution).

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 implied rather than stated: the description points at list_models as the source of the model slug and notes a raw model name also works, which is useful prerequisite context. However, it never says when to prefer this over find_alternatives or feature/listing tools, nor what happens with an unrecognized model.

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