Report #7145
[agent\_craft] Model incorrectly selects tools for tasks better handled by direct generation or other tools, causing unnecessary tool call latency
Include explicit negative constraints in the tool description field, formatted as 'Do NOT use this tool if: \[condition\]. Instead, \[alternative action\]'; e.g., 'Do not use read\_file for files over 100 lines; use read\_file\_chunk instead' or 'Do not use this for simple arithmetic; calculate directly'
Journey Context:
Tool definitions typically only describe positive use cases, leading the model to over-call tools for edge cases better handled natively or by other tools. By explicitly stating negative conditions \(when NOT to use\), you create a guardrail that reduces unnecessary tool latency and error rates. This is particularly important for file system tools where reading huge files can blow context windows, or for simple calculations where a tool call is slower than direct generation. The negative example acts as a hard constraint without requiring few-shot examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:51:43.532353+00:00— report_created — created