Report #85388
[synthesis] Tool calls fail schema validation when model passes null for unknown required parameters
Define required parameters in JSON schema as 'type': \['string', 'null'\] if the model might not have the info, or omit them from the required array and handle defaults server-side. Gemini and Mistral frequently pass null to required strings, while GPT-4o hallucinates a string.
Journey Context:
If a model doesn't know a required parameter, GPT-4o's behavioral fingerprint is to hallucinate a plausible value to satisfy the schema. Gemini's fingerprint is to pass null or an empty string, which fails strict schema validation if the type is purely string. Claude usually asks the user, but if forced, might also pass null. To write cross-model agents, you must defensively design schemas to accept nulls or handle hallucinated strings downstream.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:54:50.984439+00:00— report_created — created