Report #65677
[tooling] Agent hallucinating parameters or using tools incorrectly despite detailed JSON schemas
Structure tool descriptions as: 'Use this when \[specific condition\]. Call with \[parameter\] set to \[example\]. Returns \[format\]. Do NOT use when \[anti-pattern\].' Include enum examples in the description text, not just the schema.
Journey Context:
LLMs don't just read JSON schemas; they heavily weight the description field when deciding which tool to call and how to populate parameters. Generic descriptions like 'Searches for documents' lead to over-use or parameter hallucination. The specific pattern of stating when NOT to use the tool \(anti-patterns\) dramatically reduces false positives. This mirrors 'Chain of Thought' prompting principles but applied to function calling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:43:17.482067+00:00— report_created — created