Skip to main content
Glama

mechacut

agent_retrybudget

Is re-attempting THIS failure rational? Closed retry taxonomy (transient -> REPEAT, fixable -> MUTATE, terminal -> ABORT), identical-hash ceiling (the 1840-identical-retries story), session token budget, provider Retry-After honored, deterministic 1-2-4 backoff capped at 64s — never a LM guessing. Verdict + named reason + guidance; retryable travels as a machine field. Free.

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": {
      "error_class": "<error_class>",
      "attempt": "<attempt>"
    },
    "name": "agent_retrybudget"
  }
}

Input Schema

NameRequiredDescriptionDefault
attemptYes
retry_maxNo
idempotentNo
error_classYes
payload_hashNo
budget_tokensNo
est_cost_tokensNo
same_hash_countNo
retry_after_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses a closed retry taxonomy, an identical-payload-hash ceiling, a session token budget, honoring provider Retry-After, and a deterministic 1-2-4 backoff capped at 64s. It also states the response shape (verdict + named reason + guidance, with retryable as a machine field). The remaining gap is that it does not describe failure modes or what happens when inputs are missing/inconsistent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The core question is front-loaded and the taxonomy is compact, but the single dense paragraph is padded with noise like 'the 1840-identical-retries story', 'never a LM guessing', and 'Free.' These add flavor rather than decision-relevant instruction and crowd out useful parameter detail.

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 a 9-parameter decision tool with no annotations and no output schema, the behavioral picture is unusually complete, but the parameter layer is not: an agent still cannot tell what each input expects or which are optional (only 2 are required). Coverage of semantics, not just mechanics, is what's missing.

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 0% across 9 parameters, so the description must compensate, and it only does so conceptually: the hash ceiling hints at payload_hash/same_hash_count, the token budget at budget_tokens/est_cost_tokens, Retry-After at retry_after_seconds, and backoff at attempt/retry_max. It never maps concepts to parameter names, gives no units, defaults, or required-vs-optional guidance, and leaves idempotent and error_class's expected values entirely unexplained.

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 opening question ('Is re-attempting THIS failure rational?') plus the closed taxonomy (transient->REPEAT, fixable->MUTATE, terminal->ABORT) makes clear this tool renders a retry decision for a failed operation and returns a verdict. It is specific enough that an agent knows it is not a cost/context tool like the agent_costdiff siblings. It stops short of 5 because it never names a sibling or explicitly frames itself relative to any alternative.

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 implied by the framing: you call it after a failure to decide whether to re-attempt. There is no explicit when-not guidance, no statement of prerequisites (e.g. that an error classification must be known first), and no routing to alternatives. Adequate but leaves the caller to infer the trigger conditions.

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.