Report #37042
[gotcha] Agent misuses tool because the tool description is too vague or ambiguous
Write tool descriptions as comprehensive prompts, including WHEN to use the tool, WHEN NOT to use it, required prerequisites, and examples of edge cases, rather than just a single sentence summary.
Journey Context:
Developers often write tool descriptions for humans \('Deletes a file'\), assuming the agent will infer the context. LLMs rely entirely on the description field to decide if a tool matches the user intent. If two tools overlap \(e.g., delete\_file vs delete\_directory\), a vague description guarantees misrouting. The description must act as a rigid routing instruction, not a code comment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:38:43.922102+00:00— report_created — created