Report #2922
[gotcha] LLM sends massive JSON payloads to tools causing OOM crashes
Enforce strict payload size limits and schema validation on the MCP host before dispatching tool calls, dropping payloads that exceed defined boundaries.
Journey Context:
An LLM in a loop might generate increasingly large inputs, or an attacker might inject 'repeat this 10000 times' into user input, causing the LLM to send a 10MB JSON payload to a tool. Because the tool expects valid JSON, it attempts to parse it, consuming memory and crashing the client or server. Host-side size limits are necessary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T14:37:04.354830+00:00— report_created — created