all scenarios

Invalid inputSchema

bad-tool-schema · Tools — listing

Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/bad-tool-schema/mcp
On the wire — recorded from a real request
your clientchaos-mcp01initializePOST /s/bad-tool-schema/mcp200 OK · application/json · 3 ms"jsonrpc""2.0""id"1"result""protocolVersion""2024-11-05""capabilities""tools""serverInfo""name""chaos-mcp/bad-tool-schema""version""1.0.0""instructions""chaos-mcp scenario: bad-tool-schema — Invalid inputSchema"02tools/listPOST /s/bad-tool-schema/mcp200 OK · application/json · 4 ms"jsonrpc""2.0""id"2"result""tools""name""echo""description""Echo back the provided message.""inputSchema""type""object""properties""message""type""string""description""Text to echo"… 55 more lines

Symptom

what you'll observe

Clients that validate schemas reject the tool; others can't build a valid call.

Cause

what this reproduces

Hand-written JSON Schema with an invalid type and a required field that isn't defined.

Fix

how you'd resolve it

Generate schemas from types or validate them against the JSON Schema meta-schema.

Try it with curl
bash
curl -sS -X POST \
  https://chaos-mcp.thomascdnns.com/s/bad-tool-schema/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"

'