Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Solving Context Bloat: Semantic Tool Routing in...

Solving Context Bloat: Semantic Tool Routing in Multi-Server MCP Environments

The MCP ecosystem grows more valuable as tool catalogs expand — but that growth creates fragility if context management isn't solved at the architectural level. This session advances a community-owned pattern that any MCP implementer can adopt, regardless of framework or vendor. By sharing reference architectures and open-source implementation guidance, it helps the broader agentic community build systems that scale sustainably as MCP server proliferation continues.

Avatar for Hugo Guerrero

Hugo Guerrero

June 04, 2026

More Decks by Hugo Guerrero

Other Decks in Technology

Transcript

  1. AI CONNECTIVITY 3 The MCP Promise vs. Reality Promise Standardized

    agentic access to all enterprise tools THE CONNECTIVITY EXPLOSION Every new tool added is another paragraph in the system prompt A 'System Prompt' that looks like a legal contract Reality Result
  2. AI CONNECTIVITY 4 4 THE HIDDEN SCALING PROBLEM Context Bloat

    ▪ Too many tools ▪ Large prompts ▪ Slower reasoning ▪ Higher hallucination risk
  3. AI CONNECTIVITY 8 Idealistic Reality-checked MCP Architecture Tool Tool Tool

    Tool Tool Tool Tool MCP Server MCP Server MCP Server MCP Clients / AI Agents 100x 10x
  4. AI CONNECTIVITY ▪ Latency Tax: LLMs take longer to 'reason'

    over massive prompts. ▪ Fiscal Tax: You are paying for those thousands of "Tool Definition" tokens every single turn. ▪ Intelligence Tax: "Lost in the Middle" syndrome, where the LLM misses the right tool because of the noise. 9 3 Tax Hits on AI Performance WHY "JUST IN CASE" FAILS
  5. AI CONNECTIVITY CONFIDENTIAL | NOT TO BE SHARED EXTERNALLY ©

    Kong Inc. Agents should receive tools just in time, not just in case
  6. AI CONNECTIVITY 11 MCP Missing Component Tool Tool Tool Tool

    Tool Tool Tool MCP Server MCP Server MCP Server MCP Clients / AI Agents HELP!!
  7. AI CONNECTIVITY 12 MCP Gateway Architecture Tool Tool Tool Tool

    Tool Tool Tool MCP Server MCP Server MCP Server MCP Clients / AI Agents AI (MCP) Gateway ▪ Au/Az ▪ ACLs ▪ o11y
  8. AI CONNECTIVITY 14 MCP Gateway Architecture Tool Tool Tool Tool

    Tool Tool Tool MCP Server MCP Server MCP Server MCP Clients / AI Agents AI (MCP) Gateway ▪ Au/Az ▪ ACLs ▪ o11y
  9. AI CONNECTIVITY 15 MCP Gateway Architecture Tool Tool Tool Tool

    Tool Tool Tool MCP Server MCP Server MCP Server MCP Clients / AI Agents AI (MCP) Gateway MCP Registry ▪ Service Discovery ▪ Endpoint Resolution ▪ Run Time Discovery & Resolution
  10. AI CONNECTIVITY 16 MCP Gateway Architecture Tool Tool Tool Tool

    Tool Tool Tool MCP Server MCP Server MCP Server MCP Clients / AI Agents AI (MCP) Gateway MCP Registry AI (LLM) Gateway LLMs LLMs LLMs
  11. AI CONNECTIVITY ▪ Agent handles Prompt ▪ Agent searches registry

    for servers ▪ MCP gateway filters tools ▪ Injects relevant authorized tools 17 MCP Tool Selection using the Registry and Gateway patterns HOW IT WORKS 17
  12. AI CONNECTIVITY 19 What we just saw 1 2 3

    We were able to seamlessly manage context scope DEMO We apply identity-based security (Alice vs. Bob) Dynamically added tools without rebuilding
  13. AI CONNECTIVITY ▪ MCP will dramatically increase tool counts ▪

    Prompt injection does not scale ▪ Semantic selection makes agent infrastructure viable at enterprise level 20 The future of agent systems is not bigger prompts; it is smarter context TAKEAWAYS