Skip to main content
Glama

util_backoff

Read-only

Retry backoff schedule planner — Plan retry delays for API clients and agents: exponential backoff with none, full, equal or decorrelated jitter (AWS definitions). Returns each retry's min/expected/max delay, elapsed time, worst-case total, whether it fits a time budget, and success odds. Params: retries (1-30, required); base ms (default 500); factor (default 2); max ms cap (default 30000); jitter=none|full|equal|decorrelated (default full); timeout per-attempt ms; budget total ms; retry_after seconds from a 429/503; p_fail 0-1 per-attempt failure probability. Offline. Price: $0.001 USDC (Base, via x402).

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": {
      "retries": "<retries>"
    },
    "name": "util_backoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
retriesYes5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only/non-destructive, and the description adds genuinely behavioral facts: jitter variants are "AWS definitions", results per retry are min/expected/max, a worst-case total and budget fit are computed, and there is a stated price ($0.001 USDC via x402). Minor tension: it says "Offline" while openWorldHint=true, though this reads as "no network needed for the computation" rather than a real conflict. It does not describe error handling for invalid ranges.

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?

Front-loaded with purpose, then returns, then a compact parameter list — every section is useful. The dense single-paragraph form with inline params is readable but would scan faster as a short list; the pricing sentence is justified since it affects use.

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?

With no output schema, the description correctly explains the return shape (per-retry min/expected/max delay, elapsed time, worst-case total, budget fit, success odds). It is complete enough for invocation; the only gap is that it references parameters absent from the declared schema, which an agent must reconcile.

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

Parameters5/5

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

The schema declares only a single, poorly described parameter (retries, type string, description "5"), while the description enumerates every effective parameter with defaults and bounds (base 500, factor 2, max 30000, jitter enum of four values, timeout, budget, retry_after, p_fail 0-1). It therefore carries essentially all parameter meaning, including the 1-30 range that the schema lacks.

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 opens with a specific verb+resource ("Retry backoff schedule planner — Plan retry delays") and immediately scopes it ("for API clients and agents"). None of the listed siblings do backoff planning, so an agent can route here without ambiguity.

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?

Usage context is concrete: it names the scenario (planning retry delays) and a triggering input ("retry_after seconds from a 429/503"). It does not state when NOT to use it or point at an alternative, but with no comparable sibling the absence costs little.

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