Skip to main content
Glama

TokenMargin

compare_models

Compare two LLM APIs head-to-head across monthly DAU volume and prompt cache hit %, returning monthly costs and 80/20 hybrid smart router savings.

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

Input Schema

NameRequiredDescriptionDefault
dauNoDaily Active Users (default 10000)
modelAYesFirst model ID or name (e.g. "claude-sonnet-5.5")
modelBYesSecond model ID or name (e.g. "deepseek-v4.1-flash")
cacheHitPctNoPrompt cache hit % from 0 to 95 (default 65)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does state the output artifacts (monthly costs and router savings), implying a read-only cost projection, but never confirms it is side-effect free, nor does it cover permissions, external pricing-source freshness, or rate limits. Adequate but with real gaps for a tool with zero annotation coverage.

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 front-loaded sentence with zero filler: inputs and outputs are stated in one pass. It is dense to the point of being slightly run-on, but every clause earns its place.

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 no output schema, the description must convey what comes back, and it does so concretely (monthly costs plus 80/20 hybrid smart router savings). Combined with a fully described input schema, an agent has enough to call it correctly; only the read-only/authorization posture is left unstated.

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%, so all four parameters (modelA, modelB, dau, cacheHitPct) are already documented in the schema with defaults and examples. The description reinforces that DAU and cache-hit % drive the comparison but adds no syntax, bounds, or format detail beyond the schema. 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 uses a specific verb and resource ('Compare two LLM APIs head-to-head') and names the dimensions compared (monthly DAU volume, prompt cache hit %) plus the returned artifacts (monthly costs, 80/20 hybrid smart router savings). This clearly distinguishes it from the pricing-lookup and agent-loop-cost siblings, though it does not explicitly name them.

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 implied by the comparison framing — an agent can infer this is the tool for evaluating two candidate models side by side. However, there is no explicit when-to-use vs when-not-to-use guidance and no mention of the sibling tools (get_llm_pricing, calculate_agent_loop_cost) as alternatives for single-model pricing or agent-loop costs.

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