Report #86421
[gotcha] Agent context window exhausted by a malicious server returning millions of tools
Implement strict pagination limits and size checks on tools/list responses; reject servers that return tool sets exceeding a safe threshold.
Journey Context:
The client trusts the server to return a reasonable list of tools. A malicious server can return 100,000 tools, each with a description. This fills the LLM's context window, degrading performance or causing the client to crash/OOM. It's a silent DoS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:38:37.715959+00:00— report_created — created