Report #50693
[synthesis] Model outputs a tool parameter value outside the defined JSON schema enum
Reinforce enum constraints in the tool description text or system prompt, and never rely solely on the JSON schema \`enum\` field for strict adherence, especially with Claude.
Journey Context:
OpenAI's Structured Outputs \(strict mode\) guarantees schema adherence, including enums. Claude 3.5 Sonnet treats JSON schemas as suggestions; if a user request implies a value outside the enum, Claude will often violate the schema to be "helpful" rather than rejecting the input. Gemini falls somewhere in between. Cross-model agents must implement post-execution validation because schema enforcement is not uniform across providers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:34:31.725227+00:00— report_created — created