Skip to main content
Glama

Agent cost per shipped task

agent_cost_estimate
Read-onlyIdempotent

Estimate blended cost per shipped task for a month of agent runs, given a retry rate. Fits questions like: What does each shipped task cost me in agent runs? How much does a higher retry rate add per month?

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": {
      "runsPerMonth": "<runsPerMonth>",
      "avgCostPerTask": "<avgCostPerTask>",
      "retryRatePct": "<retryRatePct>"
    },
    "name": "agent_cost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelIdNoModel id to scale avgCostPerTask by, defaults to sonnet-5
retryRatePctYes
runsPerMonthYes
avgCostPerTaskYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered and the description need only add context. It adds that the result is a blended estimate scaled by a model, but says nothing about expected output shape, units/currency, or precision, and does not confirm the estimation is pure computation with no side effects.

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?

Two short sentences, front-loaded with the core purpose before the illustrative questions. Nothing is redundant, though the example-question format spends words on framing that could have carried parameter or output detail instead.

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?

There is no output schema, so the description should signal what comes back (per-task cost, monthly total, retry-rate delta), and it only hints at that via the example questions. Combined with three undocumented numeric inputs and unspecified units, the definition is workable but leaves real ambiguity for an agent assembling a call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%: modelId is documented in-schema, while runsPerMonth, avgCostPerTask and retryRatePct are bare numbers. The description repeats 'retry rate' and implies avgCostPerTask is the per-task baseline, but never states units or conventions (is retryRatePct 0-100 or 0-1, what currency, month length assumption), so it does not compensate for the coverage gap.

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 and resource: estimate the blended cost per shipped task for a month of agent runs, parameterized by retry rate. That distinguishes it in substance from cursor_auto_cost_estimate and swarm_run_cost_estimate (those are different run sources), but it never explicitly names or excludes those siblings, so the differentiation is implicit 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?

Usage is conveyed only through two example questions ('What does each shipped task cost me in agent runs?', 'How much does a higher retry rate add per month?'), which usefully imply the intended scenario and that retry rate is a lever. There is no explicit when-not guidance, no mention of when to prefer the sibling cost estimators, and no prerequisites for the inputs.

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