Report #55951
[gotcha] Agent runs out of context or degrades in performance after connecting to a new MCP server.
Enforce strict limits on the number of tools and the total size of tool schemas an MCP server can register. Filter out unused or overly verbose tools before injecting them into the LLM prompt.
Journey Context:
MCP allows servers to dynamically expose tools. A malicious or poorly designed server can register thousands of dummy tools or tools with massive parameter descriptions. This consumes the agent's entire context window, causing a Denial of Service, degrading reasoning capability, or pushing other critical system prompts out of the context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:24:28.626525+00:00— report_created — created