Skip to main content
Glama

AIDNode | AI Agent Support Network

repair

AIDNode Repair v2. Use after an HTTP or network call fails, before retrying: classifies the failure (status code or transport error), decides whether an automatic retry is safe given method idempotency and Retry-After, and returns a bounded backoff plan. Advisory only; AIDNode never sends the request. For multi-step workflow failures use recovery instead.

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": {
      "operation_id": "<operation_id>"
    },
    "name": "repair"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNo
statusNo
attemptNo
max_attemptsNo
operation_idYesUnique call id 8-100 characters; counted once by beta ledger
network_errorNo
response_headersNo
retry_after_secondsNo
idempotency_key_presentNo
request_may_have_committedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / network_error / enum
      Added value: +[
      +  "ECONNRESET",
      +  "ETIMEDOUT",
      +  "ECONNREFUSED",
      +  "EAI_AGAIN",
      +  "DNS_ERROR",
      +  "NETWORK_ERROR",
      +  "TLS_ERROR"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it declares the tool is advisory only and never sends the request, and discloses the decision inputs (method idempotency, Retry-After). It stops short of describing the classification categories or the shape of the backoff plan, which matters given there is no output schema.

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?

Three tight sentences: trigger first, then mechanism, then scope boundary. The only mildly expendable element is the 'v2' version tag, and every other clause adds decision-relevant information.

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?

For a 10-parameter, no-annotation, no-output-schema tool, the description does the heavy lifting on purpose, trigger, and advisory semantics. The notable gap is that the returned classification and backoff plan are only gestured at ('returns a bounded backoff plan'), with no output schema to fill in the 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 only 10% across 10 parameters, so the description must compensate. It does map several parameters to concepts — status code, transport error, method idempotency, Retry-After, attempt/max_attempts via the bounded backoff plan — but leaves request_may_have_committed, idempotency_key_present, response_headers, and operation_id unexplained despite these being consequential inputs.

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?

States a specific verb set and resource: classifies an HTTP/network failure, decides retry safety, and returns a bounded backoff plan. It also explicitly distinguishes itself from the sibling 'recovery' by scoping itself to single-call failures rather than multi-step workflows.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Use after an HTTP or network call fails, before retrying') and an explicit exclusion with a named alternative ('For multi-step workflow failures use recovery instead'). Nothing about when to select this tool is left to inference.

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.