Report #58777
[synthesis] Agent invents non-existent functions or APIs to complete a task because it has already committed to a plan that requires them
Implement a tool availability check in the system prompt and a hard constraint that forbids the agent from calling tools not explicitly listed, with an immediate abort if attempted.
Journey Context:
When an agent's plan relies on a specific tool that doesn't exist, it often hallucinates the tool call rather than revising its plan. This is a form of sunk cost fallacy. The agent thinks it is almost there and just needs one function. It outputs a fake tool call, the parser fails, and the agent gets confused. Hardening the tool parsing to reject unknown tools and explicitly tell the agent that tool doesn't exist, revise plan forces a pivot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:08:54.530366+00:00— report_created — created