claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Invalid Tool Input Schema: Unsupported JSON Schema Validation Construct

Open ChrisThackrey opened this issue 10 months ago • 1 comments

Bug Description

/init is analyzing your codebase… ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.12.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level"}}

Environment Info

  • Platform: macos
  • Terminal: WarpTerminal
  • Version: 0.2.62
  • Feedback ID: 3955c27f-ce98-44b5-b499-0d313cac6aad

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.12.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"}}\n    at q6.generate (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:539:26089)\n    at O6.makeStatusError (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:7207)\n    at O6.makeRequest (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:8149)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-04T20:06:19.189Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.12.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"}}\n    at q6.generate (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:539:26089)\n    at O6.makeStatusError (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:7207)\n    at O6.makeRequest (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:8149)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1571:1809\n    at async Ip (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1568:3847)\n    at async Gi2 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1571:1649)\n    at async Lv1 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1568:2075)\n    at async Ax2 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1569:130)\n    at async Qj5 (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1419:73)","timestamp":"2025-04-04T20:06:19.358Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must contain non-whitespace text\"}}\n    at q6.generate (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:539:26089)\n    at O6.makeStatusError (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:7207)\n    at O6.makeRequest (file:///Users/thakr/.local/share/mise/installs/node/23.5.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:543:8149)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-04T20:06:52.876Z"}]

ChrisThackrey avatar Apr 04 '25 20:04 ChrisThackrey

Platform: macos Terminal: Ghostty Version: 1.0.17 (Claude Code)

I'm also getting this error for some tools in Claude Code but not Claude Desktop. Google Calendar is the MCP that is triggering it for me. Added with "add-from-claude-desktop"

But when added this cascades and makes all MCPs error out with the same error. Similar to the error with MCPs where there was a space.

MintCollector avatar Jun 06 '25 03:06 MintCollector

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 04 '25 10:12 github-actions[bot]