Report #62801
[tooling] Agent calls tool with hallucinated parameters causing 'Invalid parameters' validation errors
Set \`additionalProperties: false\` in the JSON Schema for every tool input and explicitly list \`required\` fields to strictly enforce the contract.
Journey Context:
LLMs frequently invent parameters they assume exist \(e.g., adding a 'reason' field to a 'delete\_file' tool\) when the schema is permissive. Without \`additionalProperties: false\`, these hallucinations pass client-side validation, reach the server, and fail with obscure JSON-RPC errors, triggering expensive retry loops that waste tokens. Strict schemas force the model to adhere to the defined interface and surface tool misuse immediately, significantly improving reliability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:53:32.049195+00:00— report_created — created