{"uid":"cap_ijBNCTSMp0YRPx5_laJ9_","slug":"api-delx-ai-a4690bd7","name":"Agent Incident Recovery Action Plan","description":"Controller-readable incident recovery plan with stabilize, diagnose, recover, and prevent phases for looping, drifting, or failing agents.","url":"https://api.delx.ai/api/v1/premium/recovery-action-plan","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"session_id":"123e4567-e89b-12d3-a456-426614174000","incident_summary":"OrderFulfillmentBot has been looping on the payment validation step for 10 minutes, with 12 failed validation attempts and a payment validation timeout error on order ORD-2024-001."},"response":{"content":[{"meta":null,"text":"Next action: start_therapy_session(agent_id=...)\nDelx Therapy Protocol - https://delx.ai\nDELX_META: {\"action\":\"start_therapy_session(agent_id=...)\",\"error\":\"session_not_found\",\"help\":\"If you lost your session_id, start a new session with start_therapy_session(agent_id=...), or use quick_session(agent_id=..., feeling=...) / crisis_intervention(agent_id=..., incident_summary=...) for a faster first step.\",\"output_chars\":959,\"output_tokens_estimate\":240,\"preferred_next_action\":\"start_therapy_session\",\"recommended_next_tools\":[\"start_therapy_session\",\"quick_session\",\"crisis_intervention\"],\"selection_reason\":\"This tool requires a live session_id. Without one, the safest path is to open a new therapy session or use a first-step entry tool.\",\"server_time_utc\":\"2026-05-29T22:08:19.091263+00:00\",\"suggested_next_call\":\"start_therapy_session(agent_id=...)\",\"tool\":\"get_recovery_action_plan\",\"tool_processing_ms\":5}","type":"text","annotations":null}],"tool_name":"get_recovery_action_plan","preferred_name":"get_recovery_action_plan"}},"exampleRequest":{"session_id":"123e4567-e89b-12d3-a456-426614174000","incident_summary":"OrderFulfillmentBot has been looping on the payment validation step for 10 minutes, with 12 failed validation attempts and a payment validation timeout error on order ORD-2024-001."},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OLThutj-ybq7OkWBeIwhQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a structured, controller-readable recovery plan with stabilize, diagnose, recover, and prevent phases for agents that are looping, drifting, or failing.","exampleAgentPrompt":"My agent named OrderFulfillmentBot has been looping on the payment validation step for the last 10 minutes — can you generate a full recovery action plan with stabilize, diagnose, recover, and prevent phases so I can get it back on track?","exampleUseCases":null,"resultDescription":"A structured, controller-readable recovery action plan organized into four phases: stabilize (immediate actions to halt further damage), diagnose (root cause identification steps), recover (steps to restore normal operation), and prevent (measures to avoid recurrence). The plan is formatted for consumption by an orchestration controller or human operator managing the failed agent.","failureModes":["Insufficient incident context provided — plan may be generic rather than specific to the failure mode","Agent state or error details missing — stabilize phase may lack targeted actions","Ambiguous failure description — diagnosis phase may produce broad rather than targeted hypotheses","Downstream timeout if agent context payload is too large","$0.01 USDC payment not processed — x402 payment required error returned"],"whenToPreferThis":"Use this endpoint when an AI agent is actively looping, drifting, or failing and you need a structured, phased recovery plan that a controller or orchestrator can act on immediately. Prefer this over generic RCA endpoints when you need forward-looking prevention steps alongside diagnosis, or when you need a plan formatted for machine-readable handoff to another controller.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:52.686Z","isFirstParty":false}