Skip to main content
Glama
io.github.ufhouck/aicost-cli

io.github.ufhouck/aicost-cli

compare_ai_models

Compare two or more AI models side-by-side on pricing, platform fees, context window, and optional sample workload cost to identify the cheapest option for your use case.

Instructions

Compare two or more AI models side-by-side on pricing, platform fees, context window, and optional sample workload cost.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compare_ai_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsNoOptional sample units to compare non-text call cost
currencyNoTarget currency code (default: 'USD')
model_idsNoList of two or more model IDs to compare (e.g., ['gpt-6.2-astra', 'claude-opus-5.5', 'gemini-4-neon'])
model_id_1NoFirst model ID (legacy 2-model parameter)
model_id_2NoSecond model ID (legacy 2-model parameter)
input_tokensNoOptional sample input tokens to compare actual call cost
output_tokensNoOptional sample output tokens to compare actual call cost

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.7/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 burden; it does disclose the compared dimensions and that sample workload cost is optional. However, it says nothing about error behavior for unknown model IDs, whether the comparison is purely read-only/deterministic, or how results are ordered. Adequate but not rich 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the scope constraint ('two or more') and the optional extension appear before any detail. Nothing could be removed without losing information.

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 read-only comparison tool with 7 fully described parameters and no output schema, the description covers purpose and axes sufficiently to call it correctly. The only real gap is the legacy vs model_ids parameter ambiguity, which the description leaves to the schema.

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 baseline is 3; the description adds the useful linkage that input_tokens/output_tokens/units constitute an 'optional sample workload cost' rather than required inputs. It does not address the ambiguity between model_ids and the legacy model_id_1/model_id_2 parameters, which is the main semantic risk in the schema.

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 (compare) plus resource (AI models) and enumerates the comparison axes: pricing, platform fees, context window, and optional sample workload cost. It does not name which sibling handles single-model cost math (calculate_ai_cost/get_ai_cost), so differentiation is inferred rather than stated.

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?

'Compare two or more AI models side-by-side' implies this is the multi-model path versus single-model cost tools, but there is no explicit when-to-use/when-not, no prerequisites, and no named alternative. An agent must infer the routing from the sibling list.

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