RECOVER — Decide Safely After a Failed Machine Action

v0.1.3
io.github.GSterlingPress/recover Checked 11 hours ago Published 2 months ago

Choose 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.

ParameterTypeDescription
attemptnumberCurrent attempt number.
errorstringShort failure/error message.
headersobjectRelevant response headers such as Retry-After.
idempotencyKeybooleanTrue if a valid idempotency key protects a retry.
maxAttemptsnumberMaximum allowed attempts if known.
methodstringHTTP/action method when known, e.g. GET, POST, PATCH, DELETE.
providerRetryablebooleanTrue only when the provider explicitly marks the failure retryable.
sideEffectbooleanTrue if the failed action could create, modify, send, charge, delete, or otherwise change external state.
statusnumberFailure HTTP/status code when available.
uncertainExecutionbooleanTrue when it is unknown whether the action completed before the failure became visible.