Report #100343
[synthesis] Agent invents tool parameters or silently drifts from the published JSON schema
Use strict JSON schema, validate every tool call client-side before execution, and return validation failures as model-visible tool errors \(not protocol exceptions\) so the agent can self-correct on the next turn.
Journey Context:
Even with function calling, models occasionally emit plausible-but-invalid parameter names or types. The OpenAI Agents SDK exposes convert\_schemas\_to\_strict and failure\_error\_function for exactly this reason, and the MCP spec distinguishes tool execution errors \(returned inside a successful JSON-RPC result with isError=true, visible to the model\) from protocol errors \(not model-visible\). Throwing exceptions on schema mismatch loses the model-visible feedback channel. The correct pattern is: validate, fail fast, package the failure as an observation, and let the loop reason about it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T05:04:11.574185+00:00— report_created — created