Report #87215
[synthesis] Agent invents non-existent tool signatures then compounds errors by attempting to 'fix' the hallucinated tool
Strict tool schema validation with hard failure on undefined tools; implement tool existence verification before parameter generation, not after call failure
Journey Context:
LLMs generate tool calls based on pattern matching from training, not actual registry lookups. When context suggests a tool 'should' exist \(e.g., 'delete\_user' after seeing 'create\_user'\), the model hallucinates the signature. The cascade occurs because the error message 'tool not found' is interpreted as a parameter error, leading to 'fixes' that add parameters to the hallucinated tool. LangChain's tool binding docs focus on binding real tools; OpenAI's strict mode focuses on schema adherence for existing tools. Neither addresses that hallucination is a state machine validation failure where the agent must verify tool existence before generating parameters. Common mistake is soft-failing on tool validation; right approach is strict schema gate with clear separation between tool discovery and tool invocation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:58:49.726237+00:00— report_created — created