Skip to main content
Glama

OptimToken: AI and Compute Economics

Compare Models Side by Side

compare-models-side-by-side
Read-onlyIdempotent

Compare 2-4 named LLM models against all 8 use-case profiles at a chosen monthly volume, showing list and optimized cost for each. Use when the user names specific models to weigh against each other, rather than filtering the whole catalogue. It compares only the names given: when the user also asks whether another model would be better or cheaper, call recommend-llm-model as well, which ranks the whole catalogue for the workload. If they also supply their own token counts, or a volume outside 10k/100k/1m, use estimate-llm-cost instead. Every name is resolved against the catalogue and the outcome is reported in resolution and in the text: a name that matched nothing, matched several models, or duplicated an earlier pick is stated explicitly, and such a name gets no column rather than a zero cost. Prices and costs are final as returned: rounded server-side and dated by provenance.

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-side-by-side"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelsYes2-4 model names to compare, e.g. ['GPT-4o', 'Claude Opus 5', 'Gemini 3.1 Pro']
volumePresetNoMonthly request volume: 10k, 100k, or 1m. Default: 100k

Output Schema

NameRequiredDescriptionDefault
errorNo
modelsYes
sourceYes
volumeYes
eloAsOfYes
dataAsOfNo
provenanceNo
resolutionYes
volumeLabelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changed
    • addedOutput schema / properties / models / items / properties / useCaseCosts / items / properties / cacheHitRate
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / properties / models / items / properties / useCaseCosts / items / required
      Previous value: -[
      -  "key",
      -  "label",
      -  "inputTokens",
      -  "outputTokens",
      -  "perRequest",
      -  "perRequestOptimized",
      -  "monthly",
      -  "monthlyOptimized",
      -  "savingsPct",
      -  "batchEligible",
      -  "cacheEligible",
      -  "batchApplied",
      -  "cacheApplied"
      -]New value: +[
      +  "key",
      +  "label",
      +  "inputTokens",
      +  "outputTokens",
      +  "perRequest",
      +  "perRequestOptimized",
      +  "monthly",
      +  "monthlyOptimized",
      +  "savingsPct",
      +  "batchEligible",
      +  "cacheEligible",
      +  "batchApplied",
      +  "cacheApplied",
      +  "cacheHitRate"
      +]
  3. Changed2 schema fields changed
    • addedOutput schema / properties / models / items / properties / deprecation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "replacement": {
      +      "type": "string"
      +    },
      +    "shutdown": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / provenance / properties / deprecationsVerifiedAt
      Added value: +{
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / provenance / properties / hostPricingAsOf
      Added value: +{
      +  "type": "string"
      +}
  5. Changed3 schema fields changed
    • addedOutput schema / properties / models / items / properties / cacheWritePricePer1M
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / models / items / properties / outlierListing
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / models / items / properties / promotionalListing
      Added value: +{
      +  "type": "boolean"
      +}
  6. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description adds substantive behavior beyond them: every name is resolved against the catalogue, unresolved/ambiguous/duplicate names are reported in `resolution` and the text, and such a name yields no column rather than a zero cost. It also discloses that prices are rounded server-side and dated by `provenance`, which preempts a common misreading of the numbers.

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?

Front-loaded with the core action, then routing rules, then edge-case behavior — a sensible order with no filler. The final sentence is long and packs resolution, no-column, rounding, and provenance together, which is dense but each clause carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 structure need not be spelled out; the description instead covers the things the schema can't — routing, name-resolution failure modes, and cost finality. For a two-parameter comparison tool this is complete enough to call correctly without opening anything else.

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 the 2-4 cardinality and the 10k/100k/1m enum are already documented. The description still adds real meaning by explaining what happens to a `models` entry that fails to resolve or duplicates an earlier pick, which is behavior the schema cannot express.

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?

States a specific verb and resource — compare 2-4 named models across all 8 use-case profiles at a chosen monthly volume, returning list and optimized cost. It is immediately distinguishable from catalogue-wide siblings like recommend-llm-model and compare-llm-models because the scope is explicitly limited to user-named models.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use (user names specific models to weigh against each other) and two named alternatives with the exact conditions that select them: recommend-llm-model when the user also asks whether something else would be better or cheaper, and estimate-llm-cost for custom token counts or non-preset volumes. Nothing is left to inference.

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.