Skip to main content
Glama

RECOVER — Safe Next-Step Decisions After Machine Failures

recover_decide

Use immediately after an API, MCP tool, automation, or agent action fails and before retrying. Especially use after timeouts, 5xx/429 responses, uncertain execution, or any side-effecting action that may already have completed. Returns the safest deterministic next action: RETRY_NOW, WAIT, REPAIR_REQUEST, VERIFY_FIRST, ESCALATE, or ABORT. Do not use before an action or for successful actions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoShort failure/error message.
methodNoHTTP/action method when known, e.g. GET, POST, PATCH, DELETE.
statusNoFailure HTTP/status code when available.
attemptNoCurrent attempt number.
headersNoRelevant response headers such as Retry-After.
sideEffectNoTrue if the failed action could create, modify, send, charge, delete, or otherwise change external state.
maxAttemptsNoMaximum allowed attempts if known.
idempotencyKeyNoTrue if a valid idempotency key protects a retry.
providerRetryableNoTrue only when the provider explicitly marks the failure retryable.
uncertainExecutionNoTrue when it is unknown whether the action completed before the failure became visible.

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 full burden. It transparently discloses the tool's behavioral outcome (returns a deterministic next action) and enumerates the possible outputs. However, it does not explicitly state that the tool itself is non-mutating or whether it requires any special authentication, leaving some implicit inference. Overall, it provides good context beyond the 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?

The description is tightly written in four sentences: trigger condition, special cases, return value, and exclusion. Every sentence adds distinct value with no redundancy, making it easy to parse quickly.

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 tool with 10 optional parameters, no output schema, and no annotations, the description covers the primary usage context and return values comprehensively. It does not explain how parameters influence the decision, but the schema already details them. Minor gap: no explicit statement about non-mutating behavior, but the 'Returns' wording implies it. Overall, sufficient for an agent to invoke correctly.

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?

The input schema has 100% description coverage for all 10 parameters, so the schema already fully documents each parameter. The description adds no parameter-specific guidance, which is acceptable given the baseline of 3 for high schema coverage.

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 explicitly states the tool's purpose: to decide the safest next action after a failure, listing the exact possible outputs (RETRY_NOW, WAIT, etc.). It uses a specific verb and resource scope, clearly differentiating it as a recovery decision tool despite having no siblings.

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?

Usage guidelines are explicit and comprehensive: 'Use immediately after... fails and before retrying' and 'Especially use after timeouts, 5xx/429 responses, uncertain execution, or any side-effecting action.' It also states exclusions: 'Do not use before an action or for successful actions.' This provides clear when-to-use and when-not-to-use guidance.

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.

TDQS

A4.4/5.0
Disambiguation5/5

With only one tool, there is no possibility of confusion or overlapping purposes. The tool's role is clearly defined and distinct.

Naming Consistency5/5

The single tool name 'recover_decide' follows a consistent verb_noun pattern. There are no other tools to create inconsistencies.

Tool Count2/5

The server has only one tool, which feels too thin for a meaningful server surface. Even a specialized purpose typically benefits from supporting tools like context retrieval or status checks.

Completeness5/5

For its stated purpose of determining safe next-step decisions after failures, the tool covers the full decision space with six possible outcomes. No obvious gaps exist within that narrow scope, as the tool is designed to be the single entry point for this decision.