Skip to content

Invalid JSON Schema in Tool Definition in Claude CodeΒ #10

@jordanburke

Description

@jordanburke

Invalid JSON Schema in Tool Definition (tool 208)

Error

API Error: 400 {
  "type": "invalid_request_error",
  "message": "tools.208.custom.input_schema: JSON schema is invalid.
              It must match JSON Schema draft 2020-12
              (https://json-schema.org/draft/2020-12)"
}

Reproduction

  1. Configure Dokploy MCP server in Claude Code/Desktop
  2. Start a conversation
  3. Error appears when loading tool definitions

Note: Disabling the Dokploy MCP server resolves the error, confirming the issue is with this server's tool definitions.

Expected

Tool schemas should conform to JSON Schema draft 2020-12 specification.

Suggested Fix

The tool at index 208 has an invalid input_schema. Common issues:

  • Missing or incorrect $schema declaration
  • Invalid type values
  • Malformed required array or properties object
  • Invalid constraint definitions

Please validate the schema at tool 208 against the JSON Schema spec.

Valid schema example:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "param": { "type": "string", "description": "..." }
  },
  "required": ["param"],
  "additionalProperties": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions