Report #66499
[synthesis] Model generates invalid tool call arguments when schema fields are optional or missing
For OpenAI, enforce strict mode in the tool schema and make all fields required \(using null enums if necessary\) to prevent silent omission. For Anthropic, explicitly instruct the model in the system prompt on how to handle missing optional parameters to prevent hallucinated values.
Journey Context:
Developers often define a single tool schema with optional fields and expect it to work everywhere. OpenAI's function calling silently strips optional parameters if they aren't strictly required, leading to downstream KeyErrors. Anthropic's models might try to fill them with hallucinated data if not told otherwise. The synthesis is that schema strictness configuration is model-dependent: OpenAI needs API-level strict mode, Anthropic needs prompt-level instruction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:05:48.882660+00:00— report_created — created