Report #49563
[tooling] Agent provides wrong parameter format despite verbose natural language instructions in the tool description
Move all formatting constraints into the \`inputSchema\` JSON Schema \(using \`enum\`, \`pattern\`, \`minLength\`\) and keep the natural language description under 100 tokens.
Journey Context:
LLMs follow structured schema constraints far better than they parse ambiguous natural language instructions. A long description wastes tokens in the context window and introduces confusion \(e.g., "use ISO 8601" vs actually specifying the regex\). Instead, use \`enum\` for fixed choices \(avoids hallucinated values\), \`pattern\` for regex validation \(enforces formats like phone numbers\), and \`description\` fields within the schema properties. This allows compatible clients to use constrained decoding or structured output enforcement, eliminating retries due to schema validation errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:40:26.381630+00:00— report_created — created