Skip to main content
Glama

Compare models

compare_models
Read-onlyIdempotent

Compare several models side by side at a given volume: cost per request and per month, prices, context window, output limit, release date and knowledge cutoff, from AI Gateway's live catalog. Pass ids like 'openai/gpt-4.1-mini', or a provider name ('anthropic', 'openai', 'google') for its newest models, so you don't need to know which models are current.

Input Schema

NameRequiredDescriptionDefault
modelsYesModel ids like 'openai/gpt-4.1-mini', or provider names like 'anthropic' for that provider's newest models
cached_shareNoShare of input tokens served from the prompt cache, 0 to 1
input_tokensYesInput tokens per request: system prompt, retrieved documents, history and the user's message
output_tokensYesOutput tokens per request: the length of a typical reply
requests_per_dayYesExpected requests per day, for the monthly cost

Output Schema

NameRequiredDescriptionDefault
modelsYes
unknownYes
live_catalogYes
requests_per_dayYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / input_tokens / description
      Added value: +"Input tokens per request: system prompt, retrieved documents, history and the user's message"
    • addedInput schema / properties / output_tokens / description
      Added value: +"Output tokens per request: the length of a typical reply"
    • addedInput schema / properties / requests_per_day / description
      Added value: +"Expected requests per day, for the monthly cost"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new context by disclosing that figures come from AI Gateway's live catalog, signaling fresh external data rather than cached figures.

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 comparison scope before the input convention. Dense but not padded; the enumerated outputs each carry weight, though the run-on clause makes it slightly heavier than necessary.

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?

An output schema exists, so return values need not be explained, and the annotations carry the safety profile. The description covers what is compared and how to supply models, leaving only minor gaps around sibling selection.

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 all five parameters, establishing a baseline of 3. The description restates the models-id/provider-name convention from the schema and adds little syntactic or format detail beyond it.

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?

Specific verb (compare) plus resource (models), and it enumerates exactly what is compared: cost per request and per month, prices, context window, output limit, release date and knowledge cutoff. This clearly distinguishes it from siblings like estimate_cost or count_tokens.

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?

States the input style (ids or provider names) and that provider names resolve to newest models, which is useful operational guidance. However, it never states when to reach for this over estimate_cost or price_ai_feature, nor any exclusion criteria, so usage is only implied.

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