RECOVER — Decide Safely After a Failed Machine Action
v0.1.3Choose the safest next action after an API, MCP, or agent failure before retrying.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
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.
| Parameter | Type | Description |
|---|---|---|
attempt | number | Current attempt number. |
error | string | Short failure/error message. |
headers | object | Relevant response headers such as Retry-After. |
idempotencyKey | boolean | True if a valid idempotency key protects a retry. |
maxAttempts | number | Maximum allowed attempts if known. |
method | string | HTTP/action method when known, e.g. GET, POST, PATCH, DELETE. |
providerRetryable | boolean | True only when the provider explicitly marks the failure retryable. |
sideEffect | boolean | True if the failed action could create, modify, send, charge, delete, or otherwise change external state. |
status | number | Failure HTTP/status code when available. |
uncertainExecution | boolean | True when it is unknown whether the action completed before the failure became visible. |