Skip to main content
Glama

Get AI model API prices

get_model_prices
Read-onlyIdempotent

Current per-token API prices for AI models, with context limits and official sources. The reviewed set (OpenAI, Anthropic, Google) is human-reviewed and re-verified every few hours; the extended set (other providers) is parsed automatically from official pricing pages and marked verification "automated-page-parse". Only rows with state "current" have a confirmed price; held or expired rows show none.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_model_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoModel id or name, e.g. gpt-5.4 or "Claude Opus 5.5". Omit to list all.
providerNoProvider name, e.g. OpenAI, Anthropic, Google, xAI, DeepSeek.
current_onlyNoReturn only rows with a currently confirmed price.
include_automated_parseNoInclude extended providers parsed automatically from official pages (verification "automated-page-parse"). Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / include_automated_parse
      Added value: +{
      +  "description": "Include extended providers parsed automatically from official pages (verification \"automated-page-parse\"). Default true.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / provider / description
      Previous value: -"Provider name, e.g. OpenAI, Anthropic, Google."New value: +"Provider name, e.g. OpenAI, Anthropic, Google, xAI, DeepSeek."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: data freshness (re-verified every few hours), provenance ('human-reviewed' vs 'automated-page-parse'), and the critical state rule that only 'current' rows carry a confirmed price while held or expired rows show none. Return shape details are only partial, which keeps it below a 5.

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?

Three sentences, front-loaded with the resource and price scope, then the review-provenance distinction, then the state caveat. Dense but every sentence carries information an agent would otherwise have to guess; slightly heavy in one paragraph but no wasted wording.

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?

There is no output schema, so the description must carry the return semantics, and it does reasonably well by naming prices, context limits, sources, verification labels and row states. It is complete enough to call correctly; only the exact response structure is left implicit.

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 all four parameters are already documented in the schema and the baseline is 3. The description does reinforce the meaning of 'include_automated_parse' by explaining what the extended set is and how it is verified, but it adds no syntax or filtering nuance beyond that.

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 names a specific resource and scope: 'Current per-token API prices for AI models, with context limits and official sources.' An agent can tell this is a raw price/limit lookup rather than a cost estimate. It stops short of explicitly distinguishing itself from close siblings like get_price_index or estimate_api_cost, which would be needed for 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?

Usage is implied through the reviewed vs. extended set split and the 'current_only'/'include_automated_parse' levers, so an agent can infer how to narrow a lookup. There is no explicit when-to-use statement or named alternative (e.g. 'use estimate_api_cost instead if you need a computed bill').

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