Skip to main content
Glama

get_model_pricing

Read-onlyIdempotent

Use after list_models when you need the rates, tariff identity, sources and freshness of one exact offer, without calculating a workload. Supply the returned model_id. Prices are recorded USD text-token rates; expired or unreviewed rates are informational only. Use calculate_cost for a workload estimate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesExact pricing-offer ID returned by list_models or find_cheapest_models. Do not substitute a display name or guessed API model name.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / model_id / description
      Added value: +"Exact pricing-offer ID returned by list_models or find_cheapest_models. Do not substitute a display name or guessed API model name."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world behavior. The description adds meaningful context beyond that: prices are recorded USD text-token rates, and expired or unreviewed rates are informational only, which helps the agent interpret data freshness and reliability.

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 tightly structured: usage context and prerequisite first, parameter guidance second, data caveat third, and alternative tool last. Every sentence adds distinct value with no redundant or filler content.

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?

For a simple single-parameter lookup tool with full schema coverage, annotations, and an output schema, the description covers usage context, the alternative tool, and important data-freshness limitations. Nothing an agent needs to select or invoke the tool correctly is missing.

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%, and the schema's model_id description already explains that it must be the exact pricing-offer ID returned by list_models or find_cheapest_models. The tool description reinforces this with 'Supply the returned model_id' but adds no semantic detail beyond the schema, so the baseline 3 is appropriate.

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 states a specific verb+resource: retrieving the rates, tariff identity, sources, and freshness of one exact offer. It explicitly distinguishes itself from calculate_cost (workload estimate) and implies its relationship to list_models, so an agent can tell it apart from siblings without opening schemas.

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

Usage Guidelines5/5

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

It says to use this tool after list_models and when an exact offer is needed without calculating a workload. It names calculate_cost as the alternative for workload estimates, providing explicit when-to-use and alternative guidance.

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.