# Prosodica: '100-Tool Agent is a Trap' _Prosodica's Sohail Shaikh and Ankush Rastogi explain why the '100-tool agent' is a trap and how semantic routing offers a scalable solution._ **Published:** 2026-06-28 **Source:** https://www.startuphub.ai/ai-news/artificial-intelligence/2026/prosodica-100-tool-agent-is-a-trap --- Sohail Shaikh and Ankush Rastogi of Prosodica present a compelling argument against the common LLM agent design pattern of statically loading all available tool definitions into every prompt. In their talk, "The 100-Tool Agent Is a Trap," they highlight the significant drawbacks of this approach, which they term the 'fat agent trap.' This method, while functional for small-scale demonstrations, quickly becomes inefficient and unreliable in production environments as the number of tools scales. The core issue, as explained by Shaikh and Rastogi, is that the naive approach leads to several critical problems: 'token bloat,' where the prompt becomes excessively large due to the inclusion of all tool schemas; 'accuracy crashes,' as the model struggles to select the correct tool from an overwhelming list; 'cost explosions,' driven by the high token count per request; and 'context crowding,' leaving insufficient space for actual reasoning. ## The 'Fat Agent Trap' Detailed Shaikh and Rastogi illustrate these problems with concrete data. They show that with just 10 tools, an agent's accuracy is around 78%, but this plummets to 40% with 100 tools, and further degrades to a mere 13% accuracy when handling 741 tools. This decline is attributed to the model being forced to process an unnecessarily large amount of information for every single request. The sheer volume of tool schemas within the prompt overwhelms the LLM's ability to accurately identify and utilize the correct tool. The financial and performance implications are equally stark. Loading 741 tools requires approximately 127,000 tokens per request. This not only drives up costs but also significantly increases latency, making the agent slow and unresponsive. The presentation contrasts this with a 'Just-In-Time' (JIT) approach, where only a handful of relevant tool schemas (typically 3-5) are injected into the prompt at runtime. This strategy maintains high accuracy (above 83% even with 700+ tools) and drastically reduces token usage to around 1,000 tokens per request, a 99% reduction, while keeping latency near-flat. ## Semantic Routing as the Solution The key to achieving this efficiency and accuracy lies in semantic routing. Shaikh and Rastogi describe this as akin to Retrieval Augmented Generation (RAG), but for tools instead of documents. The process involves: - **Building a Tool Index:** Offline, tool names, descriptions, and JSON schemas are collected and embedded into vectors. These vectors are then stored in a vector database (like FAISS or Pinecone) for efficient retrieval. - **Routing Each Query:** At runtime, the incoming user query is embedded using the same model. An approximate nearest-neighbor search is then performed against the tool vector database to retrieve the top K most relevant tool schemas. A cosine similarity threshold can also be applied. - **Injecting & Calling LLM:** Finally, the JSON schemas for only the selected tools are fetched and built into the prompt. The LLM then makes a call, returning the result and logging the tool selections for monitoring. This approach ensures that the LLM is presented with only the necessary information, leading to more accurate, faster, and cost-effective tool usage. ## Implementation and Best Practices The presentation also outlined a practical, three-step implementation pattern for building such agents: 1. **Catalog Your Tools:** Gather all tool names, descriptions, and JSON schemas in a structured list. Embed each description and store the vectors in a vector database (FAISS, Pinecone, etc.) for a one-time setup. 2. **Route Each Query:** Embed the incoming user query and run an approximate nearest-neighbor search against the tool index to retrieve the top-K tools. 3. **Inject & Call LLM:** Fetch the JSON schemas for the selected tools, build the prompt with only those schemas, and call the LLM. Log the tool selections for monitoring. They also provided a checklist for implementation, including considerations for choosing the embedding model and vector database, tuning the 'K' parameter (the number of relevant tools to retrieve), and monitoring performance. For small tool sets (under 20 tools), they suggest that static loading might still be sufficient, but for any significant scaling, semantic routing is crucial. The session concluded by emphasizing that many teams are already encountering the 'tool-scaling wall' and that solutions like semantic routing offer a practical path forward, drawing inspiration from advancements like Anthropic's on-demand loading approach. --- Original analysis from [startuphub.ai](https://www.startuphub.ai), the #1 AI startup directory.