Report #55146
[agent\_craft] Model hallucinates parameters when tool schema uses 'description' instead of 'enum' for constrained values
Always use 'enum' arrays for categorical parameters in function schemas; avoid relying solely on natural language descriptions in the 'description' field
Journey Context:
Teams often document valid values in the description text \(e.g., 'Valid values: foo, bar'\), but this relies on the model's semantic understanding and leads to hallucinated values under token pressure. The 'enum' field is machine-interpretable and enforced at the API level, eliminating this failure mode. The tradeoff is less flexibility for truly open-ended string parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:03:20.369832+00:00— report_created — created