Skip to main content
Glama

SteadyMetric Public Tools

AI retry & cache cost

calculate_retry_cache_cost
Read-onlyIdempotent

Estimate one AI workload using supplied token counts, retry assumptions and cached versus uncached input prices. Numeric scenarios only. Each attempt is assumed to use the same tokens and cache hit amount. Partial failures, routing and varying context lengths are not modeled. Prices are supplied by you; fictional defaults are not current provider pricing.

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": {
      "requests": "<requests>",
      "retries": "<retries>",
      "input": "<input>",
      "cached": "<cached>",
      "output": "<output>",
      "input_rate": "<input_rate>",
      "cached_rate": "<cached_rate>",
      "output_rate": "<output_rate>"
    },
    "name": "calculate_retry_cache_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInput tokens per attempt
cachedYesCached input tokens per attempt
outputYesOutput tokens per attempt
retriesYesAverage extra attempts per request
requestsYesRequests in the period
input_rateYesUncached input USD per million tokens
cached_rateYesCached input USD per million tokens
output_rateYesOutput USD per million tokens

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds genuine behavioral context beyond that: the simplifying assumption that every attempt uses the same tokens and cache hit amount, and the warning that prices are user-supplied rather than current provider rates. It stops short of describing the returned result structure.

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?

Four compact sentences, front-loaded with the purpose, then scope, then assumptions, then the pricing caveat. 'Numeric scenarios only' is terse and purposeful, and no sentence is redundant.

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?

For an eight-parameter, read-only calculator the description covers inputs, assumptions and exclusions well. However, with no output schema, nothing tells the agent what comes back: whether it is a single total, a per-request breakdown, or a breakdown by cached/uncached/retry component. That is a meaningful gap for a cost-estimation tool whose whole value is the result shape.

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%, so the schema already documents all eight parameters including units ('USD per million tokens') and the meaning of 'retries' as average extra attempts. The description's contribution is the cross-parameter rule that each attempt uses identical token and cache-hit counts, which clarifies how input, cached, output and retries compose. That is a modest addition over a schema that already 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 gives a specific verb and resource: 'Estimate one AI workload using supplied token counts, retry assumptions and cached versus uncached input prices.' That is clearly a cost estimation over retry and cache dimensions, distinct from the sibling calculators (margin, fees, seat renewal, SLA budget, usage gap). It does not explicitly name an alternative tool, so it stops short of a 5.

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?

It sets explicit scope boundaries: 'Numeric scenarios only' and 'Partial failures, routing and varying context lengths are not modeled.' That tells an agent when this model is inappropriate. It omits any routing to sibling tools, so it lacks the when-to-use-instead guidance that a 5 would require.

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