Report #63546
[synthesis] Empty tool responses trigger hallucination in GPT-4o but hard stops in Claude
Never return empty tool responses. Always return a structured status message \(e.g., \{"status": "success", "data": null, "message": "No results found"\}\) to guide the model's next step, preventing GPT-4o confabulation and Claude false-failure halts.
Journey Context:
Developers often return empty 200 OK responses for operations like deletes or empty searches. GPT-4o interprets the lack of information as an invitation to fill the gap with hallucinated data to continue the narrative. Claude interprets it as a failure state and apologizes. Both behaviors break the agent, but in opposite directions. Providing explicit 'null but successful' semantics prevents both hallucination and false failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:08:55.199454+00:00— report_created — created