Report #17960
[gotcha] MCP server crashed or resource-exhausted by extremely large tool arguments or recursive tool calls
Enforce strict size limits on tool input parameters \(e.g., max string length, max array size\) and implement timeouts/depth limits for recursive tool calls.
Journey Context:
LLMs can generate massive inputs \(e.g., writing a 10MB file\) or get stuck in loops calling the same tool repeatedly. Without input size limits and execution timeouts, the MCP server will run out of memory or CPU, causing a Denial of Service that crashes the host environment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:51:45.549603+00:00— report_created — created