Skip to main content
Glama

Get model pricing

get_model_pricing

Retrieve detailed pricing and capability information for any LLM model using its model ID, including costs per 1M tokens, context window, and release date.

Instructions

Get full pricing and capability details for one model by its id (from search_models). Returns input/output/cached price per 1M tokens, blended cost, context window, modality, release date, and the modelpricewatch.com page URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesThe model id, e.g. 'anthropic-claude-opus-48' or 'openai-gpt-5-5'. Get ids from search_models.
Behavior4/5

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

With no annotations provided, the description carries full burden. It comprehensively lists all returned fields: 'input/output/cached price per 1M tokens, blended cost, context window, modality, release date, and the modelpricewatch.com page URL.' This fully discloses the tool's behavior. It lacks mention of side effects or authorization, but for a read-only lookup, this is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is a single sentence that efficiently communicates the tool's purpose, prerequisite, and return value details without redundancy. Every word serves a purpose, making it concise yet highly informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (single parameter, no output schema, no nested objects) and full schema coverage, the description is complete. It explains the input source, what is returned, and implicitly the tool's read-only nature. No gaps remain for effective use by an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter (model_id) with 100% schema description coverage. The description adds value beyond the schema by stating the parameter comes from 'search_models' and providing example IDs ('anthropic-claude-opus-48', 'openai-gpt-5-5'), reinforcing the prerequisite and giving concrete usage context.

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?

The description clearly states 'Get full pricing and capability details for one model by its id', specifying verb, resource, and scope. It references the sibling tool 'search_models' for obtaining IDs, distinguishing its purpose from listing (search_models) and comparison (compare_models).

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

Usage Guidelines4/5

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

The description explicitly mentions the prerequisite of using 'search_models' to get the model ID, providing clear context. While it doesn't enumerate alternatives or when-not-to-use, the context of fetching details for a single model implies appropriate usage, differentiating from sibling tools like cheapest_models and compare_models.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/romanshumy/llm-prices-data'

If you have feedback or need assistance with the MCP directory API, please join our Discord server