Skip to main content
Glama

Compare Models

compare_models
Read-onlyIdempotent

Side-by-side comparison of pricing ($/1M tokens), context window, and modality for 2-5 OpenRouter models. Answers "is claude-sonnet-4.5 cheaper than gpt-4o". Keyless.

Input Schema

NameRequiredDescriptionDefault
idsYesArray of 2-5 exact model ids, e.g. ["anthropic/claude-sonnet-4.5", "openai/gpt-4o"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "ids": [
      +      "anthropic/claude-sonnet-4.5",
      +      "openai/gpt-4o"
      +    ]
      +  },
      +  {
      +    "ids": [
      +      "google/gemini-2.5-pro",
      +      "meta-llama/llama-3.3-70b-instruct",
      +      "deepseek/deepseek-chat"
      +    ]
      +  }
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations (readOnlyHint, idempotentHint, destructiveHint) already indicate safety. The description adds 'Keyless', implying no authentication needed, and details the comparison dimensions (pricing, context window, modality), which are not in annotations. No contradictions.

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, no filler. All information is front-loaded and essential: comparison scope, what is compared, an example, and a note on authentication.

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?

Given no output schema, the description hints at the output (side-by-side comparison of three attributes). It covers intended use well but lacks explicit return format details.

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 coverage is 100% with a clear description of 'ids' as an array of exact model ids. The description reinforces the 2-5 constraint and provides examples, but does not add new meaning beyond the schema.

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 uses a specific verb ('Side-by-side comparison'), identifies the resources (pricing, context window, modality), and constrains scope (2-5 OpenRouter models). The example question clarifies intent and distinguishes from siblings like list_models and get_model.

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?

The description implies use for comparing model pricing, context window, and modality, exemplified by the question. It does not explicitly state when not to use or name alternatives, but sibling names provide context.

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.