Skip to main content
Glama

Compare models

compare_models
Read-onlyIdempotent

Compare main prices, context windows and capabilities of 2–10 LLM models side by side in one currency; add token counts to estimate workload cost.

Instructions

Side-by-side main prices, context windows and capabilities of 2–10 models in one currency. Pass input_tokens/output_tokens (and optionally cached_input_tokens, tier) to also compare the cost of that workload.

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": {
      "models": "<models>"
    },
    "name": "compare_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoPrice tier for the workload. Default standard.
modelsYesModel ids, aliases or "provider/id" keys.
currencyNoCurrency to compare in. Default: the shared original currency, else USD (converted values are marked approx).
requestsNoNumber of requests. Default 1.
input_tokensNoPrompt tokens per request for a workload comparison (cached part included).
output_tokensNoOutput tokens per request for a workload comparison.
cached_input_tokensNoPart of input_tokens served from the prompt cache.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description usefully adds that the response is a side-by-side of prices, context windows, and capabilities (important since there is no output schema), plus the 2–10 model range and the workload-cost toggle, but says nothing about currency conversion/approx marking behavior, missing models, or result ordering — details the schema only partially covers.

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?

Two sentences, zero filler, and the core capability is front-loaded before the optional workload mode. Every clause maps to a distinct piece of information the agent needs.

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?

With 7 parameters fully documented in the schema and no output schema, the description's job is mainly to explain what comes back and how parameters combine — it does both. Minor omissions (conversion/approximation caveat, behavior with unknown model ids) are largely carried by the schema.

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?

Schema coverage is 100%, so baseline is 3, but the description adds genuine relational meaning: input_tokens/output_tokens are a paired workload toggle, cached_input_tokens and tier are optional modifiers of that mode, and the comparison is constrained to one currency and 2–10 models. It does not explain how requests interacts with the token counts, leaving one small gap.

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 gives a specific verb-resource pair (side-by-side comparison of models) and enumerates what is compared: main prices, context windows, and capabilities, bounded to 2–10 models in a single currency. It is unambiguous on its own, but it never names a sibling (e.g. estimate_cost or get_model_price), so the agent must infer the boundary from those tools' own definitions.

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?

It clearly states the second usage mode: pass input_tokens/output_tokens (optionally cached_input_tokens, tier) to additionally compare the cost of that workload, which tells the agent when the extra parameters are worth supplying. It stops short of explicit exclusions or routing advice versus estimate_cost and get_model_price.

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