Report #16962
[gotcha] Agent selects the wrong tool despite correct tool names
Write tool descriptions as imperative, context-rich sentences explaining when and why to use the tool, not just what it does. Include examples of edge cases.
Journey Context:
Developers often write terse descriptions like Reads a file for read\_file and Gets file info for stat\_file. LLMs rely heavily on the description field for semantic routing, not just the name. If descriptions are too similar or vague, the LLM will conflate them. Explicitly stating Reads the text content of a file. Use this to inspect code. Do NOT use this to check if a file exists \(use stat\_file instead\) drastically reduces selection failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:11:18.443057+00:00— report_created — created