Skip to main content
Glama

Compare the cost of two models

compare_two_models

Compare monthly, yearly, and per-request costs for two LLM API models on the same workload to see which option is cheaper.

Instructions

Compares the monthly, yearly and per-request cost of two LLM API models for the same workload and states how much cheaper one is. Mirrors the head-to-head pages at https://aicostdesk.com/compare/.

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": {
      "model_a": "<model_a>",
      "model_b": "<model_b>"
    },
    "name": "compare_two_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_aYesFirst model id or name.
model_bYesSecond model id or name.
input_tokensNoInput tokens per request. Default 1500.
output_tokensNoOutput tokens per request. Default 500.
cache_hit_rateNoShare of input tokens served from prompt cache, 0-1 or percent. Default 0.
days_per_monthNoDays per month. Default 30.
requests_per_dayNoRequests per day. Default 1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It discloses the comparison basis and output content (period costs and the cheaper option), but omits input validation/error behavior, pricing source or currency, and whether the comparison is read-only or has side effects. Those are meaningful gaps for a no-annotation tool.

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, front-loaded with the action and output. The URL reference supports the 'mirrors' claim rather than padding.

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?

For a seven-parameter comparison tool with no output schema or annotations, the description covers the core computation and the shape of the result (monthly, yearly, per-request, cheaper delta). It leaves minor gaps around invalid model handling and pricing assumptions, but an agent has enough to invoke it.

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 defaults and ranges documented for all seven parameters. The description adds no parameter-level detail beyond 'two models' and 'same workload', so the schema does the heavy lifting.

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 names a specific verb (compare) and resource (LLM API model costs), and enumerates the output metrics (monthly, yearly, per-request) plus the cheaper-model verdict. It does not explicitly contrast with calculate_api_cost or compare_subscription_vs_api, so sibling differentiation relies on the name and context.

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: compare exactly two models under a shared workload. There is no explicit when-to-use guidance, no when-not conditions, and no named alternative for single-model costing or subscription comparisons.

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