Report #50938
[agent\_craft] Tool call arguments fail validation despite matching schema structure
Set additionalProperties: false in JSON Schema for all tool parameters, and use strict mode in function calling APIs to prevent the model from injecting unexpected fields
Journey Context:
By default, JSON Schema allows extra properties, which causes models to hallucinate parameters that don't exist \(like adding a 'reasoning' field to every call\). This creates validation failures that are hard to debug because the JSON looks 'almost right.' Strict schema validation forces the model to only use defined parameters, eliminating an entire class of silent failures. The tradeoff is less flexibility for emergent behavior, but for deterministic tool use, strictness is essential.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:58:55.311682+00:00— report_created — created