Report #45779
[synthesis] Agent passes parameters to wrong tool despite correct tool selection due to schema similarity confusion
Enforce strict parameter namespace isolation: prefix all tool parameters with tool-specific hashes and implement JSON Schema 'additionalProperties: false' with mandatory 'required' fields to trigger hard validation errors on parameter misalignment
Journey Context:
When agents have multiple tools with overlapping parameter names \(e.g., 'path', 'content'\), the LLM confuses schemas during generation, especially with parallel tool calling. OpenAI's function calling documentation notes that models can hallucinate parameters that exist in other tools' schemas. The catastrophic failure appears as a tool call that passes validation \(because the parameter types happen to match\) but operates on wrong data. Common wrong fix: adding parameter descriptions. Correct fix: making schema collisions impossible by namespacing \(tool\_name\_param\_name\) and setting 'additionalProperties: false' so that any parameter not explicitly defined in that tool's schema causes a hard validation error, forcing the model to correct itself rather than silently accepting wrong parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:18:48.792916+00:00— report_created — created