Home / Servers / Data Formats / json_schema_validate

Json schema validate

An MCP tool from the Data Formats server, hosted on mcp.hjlabs.in.

Validate a JSON value against a JSON Schema and list every violation with its path. Supports type, properties, required, additionalProperties, patternProperties, items, enum, const, min/max (numbers, lengths, items, properties), pattern, format (email, uri, date, date-time, uuid, ipv4, hostname), uniqueItems, allOf/anyOf/oneOf/not and if/then/else.

Name on the gateway: data__json_schema_validate · read-only.

Parameters

NameTypeDescription
json requiredstringThe value to check, as JSON text or an object.
schema requiredstringThe JSON Schema, as JSON text or an object.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "data__json_schema_validate",
  "arguments": {
    "json": "…",
    "schema": "…"
  }
}

Or connect the Data Formats server directly, which lists 26 tools including this one:

Run in your terminal
claude mcp add --transport http hj-data https://mcp.hjlabs.in/mcp/data \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the json schema validate tool with json set to ….

More from Data Formats