Report #27587
[frontier] MCP tool schemas exhaust context window before first LLM call
Implement dynamic tool loading via MCP listTools filtering or use MCP Resource templates to only inject schemas relevant to the current task graph, rather than bootstrapping all connected servers into the system prompt.
Journey Context:
Developers eagerly connect agents to dozens of MCP servers, assuming the LLM will figure out which tool to use. In production, passing 50\+ JSON schemas eats 10k\+ tokens, degrading reasoning and increasing latency/cost. The shift is from load all tools to just-in-time tool retrieval—fetching schemas only when a sub-task requires them, often via a semantic router or a planner agent that assigns a subset of tools to a worker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:42:10.522023+00:00— report_created — created