Report #90640
[frontier] Agent context window exhausted by MCP tool discovery schemas
Implement MCP tool filtering and lazy schema resolution; only inject tool schemas into the system prompt when the agent's current sub-task aligns with the tool's capability namespace.
Journey Context:
Naive MCP implementations expose all available tools from a server to the agent at once. As tool registries grow to hundreds of tools, the JSON schema definitions consume 50%\+ of the context window, leaving no room for actual reasoning or output, and severely degrading instruction following. Teams are moving from static tool injection to intent-based dynamic tool loading, where an initial fast/cheap LLM call or classifier selects a subset of tools before invoking the heavy reasoning model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:43:58.275499+00:00— report_created — created