Engineering brief
Context Bloat Will Drain Your AI Budget—Fix It with Just-in-Time Tools
At a glance
- Relevance
- Practical value
- Warnings
- None
A demo showed token usage jump from 20 to 3,500 simply by attaching unused MCP servers. Gateway-based tool filtering and dynamic registry discovery can deliver tools “just in time,” shifting the cost burden from developers to infrastructure—but production evidence is missing.
Unmanaged MCP tool bloat will silently sink AI budgets and latency; gateway-mediated just-in-time tooling offers a scalable fix.
Summary
The talk’s main signal is that attaching MCP servers “just in case” creates hidden cost and latency. A demo shows a prompt using 20 tokens jumps to 3,500 tokens when three unused MCP servers are connected—a 175x increase. This context bloat affects every call, draining budgets and increasing reasoning time without added value.
The proposed fix combines two infrastructure patterns: an MCP gateway that filters tools by identity, reducing the exposed tool surface for each caller, and an MCP registry that lets agents discover relevant tools at runtime. Together, they shift from static tool attachment to dynamic, just-in-time provisioning.
However, the evidence is entirely demo-scale. There’s no production data, no cost comparisons, and no discussion of failure modes. Identity propagation for agents (on-behalf-of) remains incomplete. The registry’s semantic search is currently rudimentary—regex-based in the Anthropic implementation—and embedding-based improvements are still speculative.
For engineering leaders, the takeaway is that architecture, not prompting, will control token economics. Investing in API-level governance now can prevent tool bloat as MCP adoption scales. The gateway-registry pattern mirrors service-mesh lessons, but it’s early; treat the approach as a promising direction, not a proven solution.
Watch the video
This video is blocked due to your privacy settings. To watch this video, please accept YouTube marketing cookies.
Related breakdowns
AI’s Real Bottleneck: Context, Not Compute
CAST’s graph halved token use and doubled accuracy, letting a team cut a mainframe modernization from 7.5 years to 3.
eBPF’s Pre-Hook Enforcement Changes Vulnerability Management
eBPF blocks exploits before they run—live CVE mitigation without reboots. Complexity is hidden behind tools like Tetragon/Cilium. Ready?
How Two Sigma Tames Cloud Agents by Running Them as You
Shu Fang explains how Two Sigma lets agents run as the user's identity, using attribution headers and a cached web index to reduce risk. A practical approach…
Get TL;DW
Too Long; Didn't Watch.
A concise breakdowns of the AI and devtools videos that actually matter for engineering leaders.
Free. Weekly. No hype.
Video and thumbnails remain the property of their respective creators. tldw.news provides editorial analysis, commentary, and discovery links to original content.