Past ~40 tools, AI coding agents start picking the wrong one silently
sandeepK1125 · reddit · 2026-11-20
After stacking tools and MCP servers onto a coding agent, the author hit an unexpected failure mode: not context limits, but tool selection. Problems appeared around 40-50 tools, long before the context window filled — the agent would call a similar tool, get a plausible answer, and move on with no error, making it easy to miss.
Practices that work, gathered from Cursor, Claude Code, Codex and custom-agent users:
- The limit is about choosing, not context size — when two tools sound alike, the pick is close to a coin flip
- Say when to use each tool — "search code in this repo" vs "search public docs", not two generic "search" tools
- Flag tools that write — models call anything they believe is read-only freely; never hide a write in a short description
- Load details on demand — keep a short summary in context, pull full schemas only when needed
- Use a searchtools + calltool pair — reportedly keeps idle context under 1k tokens whether you have 30 or 300 tools
- Run the same task twice — different tool picks across runs mean overlapping descriptions
Open questions: merge similar tools into one with a parameter (does the confusion just move into arguments?), and does anyone run 100+ tools without issues?
More from coding & agent
- Sales research agent with 20+ tools broke tool selection: sub-agents vs lazy lookup — throwawayforthegroom · 2026-11-29
- Ben Lorica: AI agents need a new data layer — the agent data runtime — bigdata · 2026-11-29
- rex becomes an iOS daily driver for AI coding with native Tailscale support — viksit · 2026-11-29
- Making a film with Runway Agent + Seedance, step 3: 8 hero props as consistency references — CurieuxExplorer · 2026-11-29
- Which agent framework for a Slack bookkeeping agent that calls n8n workflows as tools? — Asleep_Gur_341 · 2026-11-29
- Demis Hassabis calls 'PhD-level AI' nonsense on stage, puts AGI 5-10 years out — jason_mayes · 2026-11-29