all scenarios

Multi-MB tool result

huge-payload · Tools — execution

Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/huge-payload/mcp
On the wire — recorded from a real request
your clientchaos-mcp01initializePOST /s/huge-payload/mcp200 OK · application/json · 1 ms"jsonrpc""2.0""id"1"result""protocolVersion""2024-11-05""capabilities""tools""serverInfo""name""chaos-mcp/huge-payload""version""1.0.0""instructions""chaos-mcp scenario: huge-payload — Multi-MB tool result"02tools/call dump_everythingPOST /s/huge-payload/mcp200 OK · application/json · 26 ms{"jsonrpc": "2.0", "id": 2, "result": {"content": [{"type": "text", "text": "LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AMET 0123456789 LOREM IPSUM DOLOR SIT AME… 2 more linesbody over 16 KB — recording stopped there, so it is not checked below

Symptom

what you'll observe

One tool call returns megabytes of text and blows the context window / times out.

Cause

what this reproduces

Returning an unpaginated dump (full file, whole table) instead of a summary or page.

Fix

how you'd resolve it

Paginate, truncate, and summarise large results; return handles/links for bulk data.

Try it with curl
bash
curl -sS -X POST \
  https://chaos-mcp.thomascdnns.com/s/huge-payload/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '
"jsonrpc""2.0"
"id"1
"method""initialize"
"params"
"protocolVersion""2024-11-05"
"capabilities"
"clientInfo""name""curl""version""1"

'