Report #7043
[tooling] Agent calls tools with wrong parameter types or invents extra fields not in the schema
Add \`additionalProperties: false\` to your tool input JSON Schema and mark all required fields explicitly. Use \`enum\` arrays for categorical choices instead of prose descriptions like 'should be one of...'.
Journey Context:
LLMs hallucinate parameters when schemas are permissive. Without \`additionalProperties: false\`, models invent fields they think might help \(like 'reasoning' or 'explanation'\). Without strict \`required\` arrays, they omit critical parameters. Generic string types with descriptive constraints fail frequently; explicit \`enum\` arrays force valid selection. This pattern comes from OpenAI's function calling 'strict mode' research showing significant reduction in invalid calls. While MCP uses JSON Schema, many examples show lax schemas that cause agent loops and validation errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:41:38.729308+00:00— report_created — created