Skip to main content
Glama

TokenBudget

Get one model's price and limits

get_model_pricing
Read-onlyIdempotent

Price, context window, long-prompt surcharge, announced price changes and source for one model 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_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and closed-world semantics, so the safety profile is covered. The description adds real value with no output schema present by naming the returned fields, including the non-obvious 'announced price changes' and 'source'. However it says nothing about unknown model ids, currency/units, or cache/staleness behavior.

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?

A single tight fragment with zero filler, and the most load-bearing items (price, context window) are front-loaded. It is arguably over-terse — no verb framing — but nothing in it is wasted.

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

Completeness3/5

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

Because there is no output schema, the field enumeration is doing necessary work, and it covers the main return surface. Completeness is undercut by the absence of id-format guidance and error behavior for a lookup that is entirely keyed on a single user-supplied string.

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?

With one required parameter and 0% schema description coverage, the description must carry the burden; it does identify the argument as a 'model id', which tells the agent what to supply. It does not specify the id format (vendor prefix, alias, version suffix) or what happens if an unrecognized id is passed.

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 enumerates exactly what is returned for a single model: price, context window, long-prompt surcharge, announced price changes, and source. The 'one model id' scope clearly separates it from a catalog-style tool such as list_models, though it never actually names a sibling or use a verb.

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 only implied by the phrase 'for one model id' — an agent can infer this is the single-model lookup rather than the listing tool. There is no explicit when-to-use, no named alternative (e.g. list_models, estimate_cost), and no stated prerequisite or failure condition.

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