validate_json_schema

Pack: jsonschema · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/validate_json_schema for the schema, then POST the same URL with its arguments for the data.

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

NameTypeRequiredDescription
dataunknownyesThe JSON value to validate (any type).
schemaobjectyesThe 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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the jsonschema pack
{
  "mcpServers": {
    "jsonschema": {
      "url": "https://gateway.pipeworx.io/jsonschema/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 30, 2026