Report #5320
[gotcha] Tool selection failure because descriptions lack negative constraints or 'when NOT to use'
Write tool descriptions that explicitly state when to use and when \*not\* to use the tool, including preferred alternatives. E.g., 'Use this to search code. Do NOT use this to search for file names \(use find\_file instead\).'
Journey Context:
Developers write tool descriptions like 'Searches the codebase.' When two tools overlap \(e.g., code search vs file search\), the LLM guesses. By adding negative constraints and comparative context to the description, you turn a fuzzy guessing game into a deterministic routing decision.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:04:56.141618+00:00— report_created — created