Report #22991
[agent\_craft] Agent selecting wrong tool when presented with many similar functions
Limit the number of tools visible to the model at any one time to < 10. Use a two-step routing process: first route to a domain/category, then present the specific tools for that domain.
Journey Context:
As you add more tools \(e.g., 20 different file operations, 10 different API calls\), the tool descriptions start to overlap in the model's latent space. The model confuses search\_code with read\_file. By implementing a tool router that first identifies the intent \(e.g., file operation\) and then injects only the relevant tool definitions, you reduce noise and improve selection accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:00:06.043547+00:00— report_created — created