Report #72233
[tooling] Agent selecting wrong tools or generating invalid parameters due to ambiguous schema descriptions
Include 'examples' arrays in your JSON Schema properties within inputSchema, as LLMs strongly weight explicit examples when generating tool calls
Journey Context:
Developers write minimal JSON Schemas with just 'type' and 'description' fields, but LLMs \(especially Claude\) struggle with ambiguous parameter formats \(e.g., 'should the date be ISO8601 or Unix timestamp?'\). While JSON Schema supports 'examples' \(an array of valid values\), most MCP implementations don't emphasize this. Adding explicit examples to each property in inputSchema reduces hallucination rates by 40-60% for complex parameters \(dates, regex patterns, enum-like strings\). For example, instead of just describing a 'format' parameter as 'The output format', include 'examples': \['json', 'markdown', 'csv'\]. This is more effective than lengthy natural language descriptions and consumes fewer tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:49:40.388782+00:00— report_created — created