Report #83605
[synthesis] Tool call execution fails due to missing keys or stringified nulls in arguments
Implement provider-specific argument sanitization: expect GPT-4o to omit null required keys entirely; expect Claude to pass explicit \`null\` values; expect Gemini to occasionally pass the string \`"null"\` or \`"None"\`.
Journey Context:
When a model decides not to provide a required parameter, providers diverge in how they serialize the JSON. OpenAI's function calling often omits the key from the JSON object entirely, breaking strict schema validators that require the key. Anthropic's Claude includes the key with a JSON \`null\`. Gemini sometimes hallucinates string representations of null. A robust agent framework must intercept tool call arguments, check for missing keys vs null keys, and cast stringy nulls before executing the local function.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:54:49.795897+00:00— report_created — created