Report #40975
[synthesis] Empty tool results triggering model hallucinations or infinite loops
Never return a completely empty string or \`null\` as a tool result if it means 'no data'. Return an explicit, structured message like \`\{"status": "success", "data": \[\], "message": "No results found"\}\`.
Journey Context:
If a tool returns an empty string, GPT-4o often apologizes and says the tool is broken. Claude 3.5 might hallucinate a plausible result to fill the void. Gemini might loop and call the tool repeatedly. Explicit semantic clarity in the return value prevents all three failure modes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:14:58.694179+00:00— report_created — created