Report #22519
[synthesis] GPT-4o includes parameters in tool calls that are not defined in the function schema
Always validate and filter tool call arguments against the schema server-side before execution. Strip extra keys. Never pass raw model-produced arguments directly to underlying functions.
Journey Context:
GPT-4o and GPT-4-turbo have a known tendency to include extra parameters in function calls — especially plausible-sounding defaults for optional parameters or parameters from similar but different APIs the model has seen in training data. Claude is more likely to omit optional parameters it doesn't have values for. This means an agent built on GPT-4o may pass unexpected arguments to underlying functions, causing runtime errors or subtle bugs that are hard to trace. Server-side schema validation is essential regardless of model, but is especially critical for OpenAI models. The common mistake is trusting that the model will only return defined parameters because the schema was provided. The schema is advisory to the model, not a contract.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:12:11.524523+00:00— report_created — created