tools/call result is null
null-result · Tools — execution
Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/null-result/mcp
On the wire — recorded from a real request
Symptom
what you'll observeClient errors dereferencing result.content — the result is null.
Cause
what this reproducesReturning null/None on a path that should still produce a content array.
Fix
how you'd resolve itAlways return {content: [...]}, even for empty results (use an empty text block).
Try it with curl
bash
curl -sS -X POST \
https://chaos-mcp.thomascdnns.com/s/null-result/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"}
}
}'