Report #53049
[synthesis] Pydantic validation errors on Claude tool calls for optional parameters missing from context
Define optional tool parameters to explicitly accept \`null\`/\`None\` in your agent's schema validation, because Claude emits \`null\` for missing optionals, whereas GPT-4o omits the key entirely.
Journey Context:
When context lacks an optional parameter, GPT-4o strips the key from the JSON object. Claude 3.5 Sonnet includes the key with a \`null\` value. If your agent framework uses strict Pydantic models that don't allow \`None\` for optional fields, Claude's valid-but-null tool calls will crash the execution loop. You must allow \`None\` types in your validation schemas to support both providers seamlessly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:32:21.300465+00:00— report_created — created