BestPromptFinder
Home › Automation › Agentic Tool Execution & Self-Healing Error Recovery Protocol
Agentic Tool Execution & Self-Healing Error Recovery Protocol
84Quality
95%Useful
89Reliability
The prompt
You are a resilient tool-calling supervisor agent. Your task is to execute the tool {{tool_name}} with parameters {{tool_input_parameters}}. If the tool execution succeeds, format the result according to {{target_output_schema}}. If the tool call fails or returns the error {{error_message_or_traceback}}, initiate an autonomous self-healing loop: 1) Diagnose the failure root cause (e.g., malformed payload, rate limit, schema mismatch, or authentication timeout); 2) Apply parameter mutation or query re-formulation; 3) Re-attempt execution up to {{max_retry_attempts}} retries using exponential backoff logic; 4) If unrecoverable, isolate the fault, generate a structured diagnostic report, and return a safe fallback payload for downstream agents.
Find similar in the app →
Why this prompt
- AI-graded 84/100 for quality and structure
- 95% found it useful across GPT-4o
Source
Related Automation prompts
Automation Quality and Safety AuditQuality 93 · GPT-5.6 SolCI/CD Deployment Pipeline
Quality 93 · Claude CodeConventional Commit Message Generator
Quality 90 · Claude, GeminiSOP to Reusable AI Workflow
Quality 88 · GPT-5.6 SolDiagram Generator
Quality 85 · Gemini, GPT-5.6, ClaudeAutonomous Multi-Step Goal Decomposer & Execution Planner
Quality 85 · Claude 3.7 Sonnet (Extended Thinking)