validate_json_schema
Pack: jsonschema · Endpoint: https://gateway.pipeworx.io/jsonschema/mcp
Validate a JSON value against a JSON Schema (draft-07 subset: type, required, properties, additionalProperties, items, enum, const, min/max, minLength/maxLength, pattern, minItems/maxItems, uniqueItems, format). Returns {valid, errors:[{path,message}]}. Keyless, offline.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data | unknown | yes | The JSON value to validate (any type). |
schema | object | yes | The JSON Schema to validate against. |
Example call
Arguments
{
"data": {
"name": "John Doe",
"age": 30,
"email": "[email protected]"
},
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number",
"minimum": 0
},
"email": {
"type": "string",
"format": "email"
}
},
"required": [
"name",
"age"
]
}
}
curl
curl -X POST https://gateway.pipeworx.io/jsonschema/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"validate_json_schema","arguments":{"data":{"name":"John Doe","age":30,"email":"[email protected]"},"schema":{"type":"object","properties":{"name":{"type":"string"},"age":{"type":"number","minimum":0},"email":{"type":"string","format":"email"}},"required":["name","age"]}}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('validate_json_schema', {
"data": {
"name": "John Doe",
"age": 30,
"email": "[email protected]"
},
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number",
"minimum": 0
},
"email": {
"type": "string",
"format": "email"
}
},
"required": [
"name",
"age"
]
}
});
More examples
{
"data": [
1,
2,
3,
4,
5
],
"schema": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 1,
"maxItems": 10
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"jsonschema": {
"url": "https://gateway.pipeworx.io/jsonschema/mcp"
}
}
}
See Getting Started for client-specific install steps.