Report #80151
[agent\_craft] Agent confuses tool names or passes arguments to wrong tool when >5 tools available
Use "tool grouping" in system prompt: categorize tools by domain \(Read, Write, Execute, Search\) with explicit "When to use" descriptions. List only 3-4 tools per category and use hierarchical naming \(file\_read vs db\_read\).
Journey Context:
Flat tool lists cause confusion between similar names \(e.g., "search\_code" vs "search\_docs"\). Cognitive load increases exponentially with tool count. Grouping reduces the effective branching factor. Hierarchical naming \(namespace\_action\) helps models understand relationships. This pattern comes from CLI design \(git branch vs git checkout\) applied to agent tools. Common error: providing 20\+ tools without grouping or clear selection guidance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:08:34.998977+00:00— report_created — created