It retries the same mistake.
The agent sends the same request again, or guesses at new inputs. Each attempt costs time and tokens and fixes nothing.
Failure recovery for AI agents
RecoverMCP is an MCP server that tells your agent why a tool call failed, whether anything already happened, and what to do next: fix the request, retry safely, ask for approval, or stop.
In development. Early access opens soon.
create_invoice({
customer: "cus_8124",
amount: 4200
})
→ Error: missing required field
{
"cause": "missing_required_field",
"field": "currency",
"already_applied": false,
"next_step": "fetch_value",
"source": "customer.billing_profile",
"retry": "safe_after_fix",
"needs_approval": false
}
The problem
APIs return errors. Tokens expire. Rate limits are hit. Requests time out. A developer can read the error and work out the fix. An agent usually can’t, so it falls into one of three traps.
The agent sends the same request again, or guesses at new inputs. Each attempt costs time and tokens and fixes nothing.
A timeout doesn’t always mean failure. The invoice may already exist. Retrying creates a second one.
One fixable error stops a multi-step task. Someone has to look into it and start again by hand.
Today, every team building agents writes its own recovery logic, one tool at a time.
What RecoverMCP does
When a tool call fails, your agent sends the failure to RecoverMCP. RecoverMCP answers five questions and returns the answers in a structured format the agent can act on.
The exact operation and error.
The most likely cause, based on the error, the tool’s requirements and the current state.
Whether the failed request still made a change before it failed.
A specific recovery step.
Whether the agent can go ahead on its own, needs approval first, or should stop.
How it works
Your agent sends RecoverMCP the request, the error, and any useful context.
It sorts the failure into a known type: missing or invalid input, authentication or permission errors, rate limits, timeouts, resources that don’t exist, data that has changed, services that are down, or an action whose result is unclear. Where it can, it runs read-only checks to confirm the cause.
The plan tells the agent exactly what to do: correct the input, wait and retry, fetch fresh data, check whether the action already went through, ask a person for approval, or stop.
The agent follows the plan and checks the result. If the outcome still can’t be confirmed, RecoverMCP reports it as unknown instead of calling it a success.
create_invoice.Result: The task fails, and someone has to step in.
create_invoice.Result: The task completes without guessing.
If the currency can’t be found in a reliable source, RecoverMCP tells the agent to ask the user. It never makes up a value. This example is simplified, and real results depend on the service and the information available.
Features
Explains what went wrong in terms the agent can act on, not just an HTTP status code.
Machine-readable next steps that list what to change, what’s missing, and whether approval is needed.
Separates failures worth retrying from ones that aren’t, and from ones that need a check first.
Checks whether a timed-out action already happened before the agent tries it again.
Treats a permission error as a boundary. It never looks for a way around it.
Recovery tools appear as standard MCP tools, so any compatible agent can call them.
See which failures happen most, which get resolved, and what they cost.
Use cases
Anywhere an agent changes data in another system.
Safety
RecoverMCP follows seven rules.
If a failed action might have gone through, confirm first.
Never work around a permission error with other credentials or tools.
Missing values come from a trusted source or from the user.
Use service-specific rules and verified checks wherever possible.
Retries are capped, steps have timeouts, and sensitive actions need approval.
If the outcome is unclear, report it as unknown.
Use the least access needed, hide secrets, and keep as little data as possible.
Developers
RecoverMCP runs as an MCP server alongside your agent’s other tools.
Your agent gets a set of recovery tools.
Start with the services where failures cost you the most. Each one needs a recovery adapter or enough tool metadata.
Your agent, or a proxy in front of your tools, sends the failure details. RecoverMCP only sees failures you send to it.
| Tool | What it does |
|---|---|
diagnose_failure | Finds the likely cause of a failed tool call. |
inspect_preconditions | Checks current state and missing requirements with safe, read-only checks. |
propose_recovery | Returns a structured recovery plan. |
check_side_effect | Checks whether an unclear action already took effect. |
execute_recovery | Runs recovery steps you have explicitly allowed. |
get_recovery_status | Returns the status and result of a recovery attempt. |
Tool names and schemas are early and may change. Full documentation comes with early access.
FAQ
Not yet. We’re building the first version now. Join the waitlist to get early access when it opens.
A retry library repeats the same request under set conditions. RecoverMCP first works out why the request failed, whether it already took effect, and whether it needs changing. Then it decides whether a retry makes sense at all.
Those tools handle orchestration, state and retries. RecoverMCP focuses on one job: deciding the right next step after an external tool fails. It works alongside them.
No. Monitoring tools show engineers what went wrong after the fact. RecoverMCP helps the agent decide what to do while the task is still running.
No. Some errors can be fixed with verified information. Others need new permissions, a person’s approval, or a change in another system. When the agent can’t safely recover on its own, RecoverMCP says so.
It’s built to prevent them by checking whether an action already happened before any retry. That check depends on what the service supports, so no recovery tool can guarantee exactly-once execution with every third-party service.
Not automatically. Good recovery needs details about each service. We’ll add integrations over time, starting with the most requested.
No. RecoverMCP works through standard MCP tools, so it works with any compatible agent.
Neither is decided yet. We expect to offer a free option for developers and usage-based pricing for hosted features.
We’re building RecoverMCP with teams that run agents against real systems. Join the list for early access, and help decide which integrations come first.
You’re on the list. We’ll email you when early access opens.