Skip to main content
Glama

Inference Hub

Compare models

compare_models
Read-onlyIdempotent

Compare two to four models on price: cheapest provider and price, price range across providers, context window, max output and number of providers. Image and video models are compared at the same tier (default 1K / 720p, or the resolution, quality and audio given).

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
audioNoVideo models: true = prices with audio, false = without. Default: each offer's no-audio price
modelsYesModel names or slugs, e.g. ['claude sonnet 4.5', 'gpt-5.1']
qualityNoImage or video models: only tiers that state this quality, e.g. 'low', 'medium', 'high'. Offers whose quality is unspecified are then not ranked
resolutionNoImage or video models: resolution to compare at, e.g. '1K', '2K', '4K', '720p', '1080p'. Default 1K for images, 720p for video

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, so the description is not needed for the safety profile. It still adds real behavioral detail: image and video models are normalized to a common tier (default 1K / 720p) so like-for-like comparison happens, and quality filtering excludes offers with unstated quality from the ranking. Those are non-obvious semantics that go beyond the structured fields.

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 purpose and output metrics before the tier caveat. The second sentence packs several conditions (resolution, quality, audio, defaults) into one clause, which is dense but not wasteful.

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?

There is no output schema, and the description compensates by listing the returned fields (cheapest provider/price, price range, context window, max output, provider count). Remaining gaps are minor, such as what happens when a model has no priced offers at the requested tier.

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 parameter meanings are already documented in the schema. The description reinforces the tier-normalization rule that ties `resolution`, `quality` and `audio` together, but adds little syntax or format information beyond what is already there. Baseline 3 applies.

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 opens with a specific verb and resource ('Compare two to four models on price') and then enumerates exactly what is compared: cheapest provider and price, price range, context window, max output, provider count. That is far more concrete than the sibling names alone. It stops short of explicitly contrasting itself with `find_cheapest` or `get_model_prices`, so it earns a 4 rather than a 5.

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?

Scope is stated ('two to four models', image/video compared at the same tier), which implies when the tool fits, but there is no explicit when-to-use or when-not-to-use guidance and no sibling is named as an alternative. An agent must infer that this is the multi-model case and `find_cheapest` is the single-model case.

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