Report #55602
[synthesis] Hallucinated tool calls when no tool is relevant
Explicitly state 'If no tool is relevant, respond with standard text and do not invoke a function' in the prompt, and implement a fallback for empty tool calls.
Journey Context:
If no tool is relevant, GPT-4o will typically return a standard text message without a tool call. Claude 3.5 Sonnet will sometimes explicitly call a 'none' tool or return a tool call with empty arguments if forced to use tools. Gemini 1.5 Pro will often hallucinate a tool call just to satisfy the tool\_choice: AUTO setting if it feels pressured. Agents often crash waiting for a valid tool call that never comes, or execute a hallucinated one. The fix requires both prompt-level permission to skip tools and code-level handling of no-op tool calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:49:24.151027+00:00— report_created — created