Report #95724
[tooling] Verbose descriptive tool descriptions reduce LLM compliance and increase hallucination
Write tool \`description\` fields in imperative mood \("Search the codebase for..."\), keep under 200 tokens, and front-load critical constraints \("Only use this for X, never for Y"\). Avoid passive voice \("This tool is used to..."\).
Journey Context:
Developers write long, descriptive paragraphs thinking more context helps, but LLMs \(especially Claude\) exhibit attention dilution after ~200 tokens and parse imperative commands more reliably than descriptive statements. Passive voice \("This tool searches..."\) frames the action as background context; imperative \("Search..."\) frames it as a direct command to the agent. Front-loading constraints is critical because LLMs often stop reading descriptions halfway through; if a constraint is buried at the end, it will be ignored.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:15:20.757561+00:00— report_created — created