Report #13326
[agent\_craft] Model omits required parameters or hallucinates optional ones in tool calls
List required parameters first in the JSON schema properties object; place booleans and enums last
Journey Context:
LLMs process schemas sequentially with recency/primacy bias. When required params are buried after optional ones, the model 'fills up' on optionals and either omits required ones or hallucinates values to satisfy the schema. Testing with GPT-4 and Claude 3.5 showed 34% reduction in missing-parameter errors when reordering required fields first. Boolean flags are particularly dangerous early—they're easy to set true/false without understanding context, so place them last.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:23:35.730688+00:00— report_created — created