Skip to main content
Glama

Get model price

get_model_price
Read-onlyIdempotent

Retrieve official API prices for one model by ID, alias, or display name, including tier rates, context bands, cache prices, future price announcements, and source verification.

Instructions

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".

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": "get_model_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoOnly return rows of this tier.
modelYesModel id, alias, display name or "provider/id".
currencyNoAlso show prices converted to this currency (approximate, at the dataset's exchange rate). Default: original currency only.
providerNoProvider id to disambiguate, e.g. "openai", "anthropic", "deepseek". See list_providers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, open-world lookup, so the safety profile is covered. The description adds genuinely useful context by promising source URL and verification date plus announced future prices, which tells the agent how trustworthy and fresh the data is. It says nothing about pagination, response size, or behavior when a model is not found — a real gap for a lookup tool.

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?

Two sentences, front-loaded with the resource, then the accepted identifier forms. The dense enumeration of return fields is long but each item conveys real content an agent would otherwise have to discover. Minor cost: the first sentence is a heavy list that could have been trimmed.

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 burden of describing the return shape and does so thoroughly, and all four parameters are covered by the schema. Missing only edge-case behavior (unknown model, ambiguous display name, currency fallback when no exchange rate exists), which keeps it from a 5.

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 model, tier, currency and provider including the enum values and the "approximate, at the dataset's exchange rate" caveat. The description's extra value is limited to concrete id examples ("gpt-5.5", "claude-sonnet-4-5-20250929") and an explanation that tier filtering narrows returned rows. Baseline 3 is appropriate.

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 opens with a specific resource and scope ("Official API price of one model") and enumerates exactly what is returned — tiers, long-context bands, regions, cache prices, future prices, context window, capabilities, source URL, verification date. It implicitly separates itself from estimate_cost by stressing "official" pricing, but never names a sibling, so it stops short of a 5.

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?

There is no explicit when-to-use or when-not-to-use statement, and no mention of compare_models, estimate_cost or find_models as alternatives. Usage is only implied: look up pricing for a model you already can identify. The id-format guidance helps invocation but is not routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.