Report #68427
[synthesis] Agent repeatedly hallucinates incorrect tool parameters because its pre-training data strongly overrides the provided tool schema
Align tool parameter names and descriptions with canonical, well-known naming conventions from the model's training data, rather than inventing custom schemas that the model must learn on the fly.
Journey Context:
Developers often design tool schemas with internal naming conventions \(e.g., operation\_type: 'MUTATE'\). The LLM, however, has seen millions of examples of similar tools using action: 'update'. Despite the schema explicitly defining operation\_type, the LLM will repeatedly output action, causing tool execution failures. People try to fix this by adding more prompt text, which fails. The synthesis is that the schema itself is a weak signal compared to pre-training. The fix is to reverse-engineer the schema to match the LLM's priors: rename your tool's parameter to action and map it internally. The tradeoff is adapting your internal API to the LLM's vocabulary, but it eliminates an entire class of persistent hallucination errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:20:12.701508+00:00— report_created — created