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
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Short failure/error message. | |
| method | No | HTTP/action method when known, e.g. GET, POST, PATCH, DELETE. | |
| status | No | Failure HTTP/status code when available. | |
| attempt | No | Current attempt number. | |
| headers | No | Relevant response headers such as Retry-After. | |
| sideEffect | No | True if the failed action could create, modify, send, charge, delete, or otherwise change external state. | |
| maxAttempts | No | Maximum allowed attempts if known. | |
| idempotencyKey | No | True if a valid idempotency key protects a retry. | |
| providerRetryable | No | True only when the provider explicitly marks the failure retryable. | |
| uncertainExecution | No | True when it is unknown whether the action completed before the failure became visible. |