Report #65425
[gotcha] Reasoning loops caused by uninformative MCP tool error messages
Ensure MCP tool errors return structured, actionable feedback \(e.g., exact missing field or constraint violated\) and implement a hard retry limit \(max 3\) with prompt modification on each retry.
Journey Context:
When a tool fails \(e.g., validation error\), returning a generic 'Error: Invalid input' causes the LLM to guess the fix, often sending the exact same payload, resulting in an infinite loop. The LLM lacks the signal to correct its output. By returning specific schema violations \(e.g., 'Expected ISO 8601 date, got yesterday'\) and programmatically altering the system prompt on retry \('Previous attempt failed, change X'\), you break the deterministic loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:18:08.354049+00:00— report_created — created