Skip to main content
Glama

Model Ruler — AI Cost Calculators

Evaluation Cost Calculator

eval-cost-calculator
Read-onlyIdempotent

Use when a user needs to budget an LLM evaluation run. Given samples/models/trials, returns total cost, per-run cost, and parallel time estimate.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "samples": 2000
    },
    "name": "eval-cost-calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoEval model (default claude-sonnet-4-6)
modelsNoCandidate models (default 1)
samplesYesNumber of eval samples
providerNoEval provider (default anthropic)
avg_tokens_inNoAvg input tokens per sample (default 2000)
judge_enabledNoEnable LLM-as-judge second pass (default false)
avg_tokens_outNoAvg output tokens per sample (default 500)
judge_tokens_inNoJudge input tokens (default 1500)
judge_tokens_outNoJudge output tokens (default 200)
trials_per_sampleNoRepeats per sample (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / models / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / samples / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / trials_per_sample / type
      Previous value: -"number"New value: +"integer"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the bar is lower. The description adds genuine value by disclosing the return shape (total cost, per-run cost, parallel time estimate) in the absence of an output schema. It does not mention pricing source or currency, which leaves a minor behavioral gap.

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, trigger condition front-loaded, output list second. Nothing is redundant and no sentence could be cut 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 10-parameter pure-computation tool with 100% schema coverage and full annotations, the description covers purpose, trigger, and return values. The only real omissions are cost assumptions (currency, pricing table vintage) and the basis of the parallel time estimate, which an agent might want when reporting results.

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 description coverage is 100% and every parameter carries a default note, so the schema does all the work. The description only loosely paraphrases 'samples/models/trials', and that paraphrase is slightly at odds with the schema's singular 'model' (string) versus 'models' (integer count) distinction, so no meaning is added.

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-resource pair ('budget an LLM evaluation run') and lists the computed outputs (total cost, per-run cost, parallel time estimate). The 'eval' domain scoping implicitly separates it from siblings like rag-pipeline-cost-calculator or agent-loop-cost-calculator, but no sibling is named, so the differentiation rests on the reader inferring from domain words alone.

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?

'Use when a user needs to budget an LLM evaluation run' gives an explicit trigger condition. There is no guidance on when to pick a different calculator (fine-tune ROI, provider-cost, quantization) nor any exclusions, which keeps it short of a 5.

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