[Bug] Anthropic API Error: Tool schema invalid_request_error with oneOf/allOf/anyOf at top level

Resolved 💬 3 comments Opened Apr 7, 2026 by nauriskruzkops Closed Apr 11, 2026

Bug Description
Claude Code return error for all next promts after he return this first error response:

Let me verify it reads back correctly.
⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","me
ssage":"tools.12.custom.input_schema: input_schema does not support oneOf,
allOf, or anyOf at the top
level"},"request_id":"req_011CZpnkmpwNvTGPtRWhYXMV"}

Environment Info

  • Platform: darwin
  • Terminal: phpstorm
  • Version: 2.1.92
  • Feedback ID: 9af08a30-780e-443f-a6bd-65ebf542f277

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\"},\"request_id\":\"req_011CZpoE4trUStrdcwQQmawA\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51680)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T17:22:46.297Z"},{"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\"},\"request_id\":\"req_011CZpoNeNy3c2p1gkKr7gi5\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51680)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T17:24:42.582Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.5.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"},\"request_id\":\"req_011CZpoNgj6qkpfcuVWTeRC2\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51680)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T17:24:43.133Z"},{"error":"Error: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.5.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"},\"request_id\":\"req_011CZpoNgj6qkpfcuVWTeRC2\"}\n    at ZNH (/$bunfs/root/src/entrypoints/cli.js:4206:1495)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T17:24:43.135Z"},{"error":"Error: Error during compaction: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.5.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\"},\"request_id\":\"req_011CZpoNgj6qkpfcuVWTeRC2\"}\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5148:1189)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T17:24:43.136Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗