Report #7117
[agent\_craft] Model hallucinates parameters when calling tools described in natural language
Use strict JSON Schema with "additionalProperties": false and explicit enum constraints; avoid natural language descriptions in parameter definitions, keeping descriptions in the "description" field only, and enable strict mode if available
Journey Context:
Natural language tool descriptions lead to hallucinated parameters because the model infers types from description semantics rather than schema constraints. Strict schemas with no additional properties and explicit enums force the model to adhere to the contract, eliminating parameter hallucinations. Tradeoff: strict schemas are less flexible for fuzzy matching but reduce error rates by 40%\+ in production tool use. This pattern is why OpenAI introduced "strict" mode for function calling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:48:41.939069+00:00— report_created — created