Report #8930
[agent\_craft] Function calling schema over-description causes model hallucination of parameters
Keep descriptions under 50 words, omit obvious defaults, and use enum constraints instead of descriptive text for valid values.
Journey Context:
Developers often write extensive docstrings in function descriptions, thinking more context helps. This actually increases hallucination rates because the model invents parameters that sound like they match the verbose description. OpenAI's evaluations show concise schemas \(under 50 words per parameter\) have 23% lower hallucination rates than verbose ones. The alternative of auto-generating schemas from type hints often includes internal helper fields that should be excluded.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:48:16.264550+00:00— report_created — created