Skip to main content
Glama

Great Work Labs

Estimate a cost

estimate_cost
Read-onlyIdempotent

The most a run_model call can cost, without running it or spending anything. Same arguments as run_model.

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": "<model>",
      "input": "<input>"
    },
    "name": "estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
modelYes
optionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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 safety is covered. The description adds two things beyond that: no spend or execution occurs, and the returned value is an upper bound ("the most") rather than an exact figure, which is real behavioral context an agent needs for interpreting a cost estimate.

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 short sentences with zero waste. The purpose and its non-executing nature are front-loaded, and the argument-alignment tip follows immediately.

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

Completeness3/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 is the only source of return-value semantics, and it only implies a numeric upper bound without stating currency, unit, or response shape. The simulation-versus-execution distinction is fully covered, but a cost-estimation tool should say what the estimate looks like.

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 0%, so the description must carry the load. "Same arguments as run_model" is a genuinely useful pointer that tells the agent to reuse the run_model argument set, but it never explains what model, input, or the loosely typed options object mean, and the options parameter has an empty nested schema that nothing in the description compensates for.

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?

The description states a specific resource with scope: the maximum cost a run_model call can incur, and it explicitly frames this as the non-executing counterpart of run_model, so an agent can distinguish it from run_model and its other siblings without opening either schema.

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?

"Without running it or spending anything" makes the intended context clear: use this to learn cost ahead of an actual run_model call. It does not spell out an explicit when-not or name a fallback, but the usage context is unambiguous for such a narrow convenience tool.

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