Report #54218
[frontier] Agents hallucinate parameter values when calling tools despite JSON schema validation
Use \`strict: true\` or \`additionalProperties: false\` in tool schemas combined with constrained decoding \(provider-native structured outputs\) to enforce valid tool calls at the token generation level rather than validation layer.
Journey Context:
Post-hoc JSON validation fails because the model has already generated bad tokens. Moving validation into the generation process via constrained decoding ensures the model literally cannot produce invalid JSON or out-of-enum values. This is shifting from 'validate then fix' to 'constrain at generation' using tools like OpenAI's structured outputs, Anthropic's tool use with strict mode, or open-source constrained decoding libraries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:30:03.722011+00:00— report_created — created