Report #80562
[tooling] LLM not following MCP tool parameter schema correctly
Write the \`description\` fields in your JSON Schema as imperative instructions \(commands\) rather than passive labels, and include format examples for string patterns.
Journey Context:
Standard JSON Schema descriptions often just label what a field is \(e.g., 'The user's ID'\). LLMs \(especially smaller ones\) respond better to imperative instructions that read like system commands \(e.g., 'Set this to the user's numeric ID. Must be exactly 10 digits.'\). Additionally, always specify \`examples\` arrays within the schema for complex string formats \(dates, regex patterns\) - the LLM will mirror these formats more reliably than parsing a description. This pattern reduces schema hallucinations and type mismatches significantly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:49:49.183548+00:00— report_created — created