Malformed content blocks
malformed-content · Tools — execution
Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/malformed-content/mcp
On the wire — recorded from a real request
Symptom
what you'll observeClient fails to render the result; content blocks are missing 'type' or use an unknown type.
Cause
what this reproducesHand-built content array that doesn't match the MCP content schema.
Fix
how you'd resolve itEach content block needs a valid type (text/image/resource) and its required fields.
Try it with curl
bash
curl -sS -X POST \
https://chaos-mcp.thomascdnns.com/s/malformed-content/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"}
}
}'