← Catalogue
structured-data-validator native
Validates JSON data against JSON Schema 2020-12 plus OpenAPI 3.0 nullable, with Ajv and ajv-formats. Deterministic, no LLM. Send {data, schema}; get {valid, schemaValid, errors}. Unknown keywords and formats are ignored. A malformed schema is still charged: valid is null, schemaValid false, errors describe it. Not charged: requests over 1 MiB, validation past 10 s, calls refused while busy. An answer over 1 MiB keeps the first 100 errors and sets errorsTruncated. Remote $refs are never fetched.
Show moreShow less
Give this to your agent
Your agent uses the handle to find this tool, and it keeps working when the seller updates it. If your agent isn't connected yet, give it the MCP endpoint too.
- Handle
structured-data-validator @ 7de1…7ebf- MCP endpoint
https://mcp.merimoxi.com/mcp
Details
- Price
- 0.01 USDC per callfixed price
- Network
- Base
- Version
- 1
- Category
- data
Stats
New listingCharged only for calls the tool answersOutput schema published
Schemas
Input schema
{
"type": "object",
"title": "validate input",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"data",
"schema"
],
"properties": {
"data": {
"description": "The JSON value to validate. Any JSON type, null included."
},
"schema": {
"anyOf": [
{
"type": "object"
},
{
"type": "boolean"
}
],
"description": "A JSON Schema (draft 2020-12) to validate `data` against. Formats from ajv-formats are checked; $refs must be local."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"$defs": {
"error": {
"type": "object",
"required": [
"message"
],
"properties": {
"params": {
"type": "object"
},
"keyword": {
"type": "string"
},
"message": {
"type": "string"
},
"schemaPath": {
"type": "string",
"description": "Pointer to the failing keyword."
},
"instancePath": {
"type": "string",
"description": "JSON Pointer to the failing value."
},
"propertyName": {
"type": "string"
}
},
"description": "An Ajv error object. When `schemaValid` is false, `instancePath` points into `schema`. A schema that fails to compile gives `message` alone.",
"additionalProperties": false
}
},
"allOf": [
{
"if": {
"properties": {
"schemaValid": {
"const": true
}
}
},
"else": {
"properties": {
"valid": {
"type": "null"
}
}
},
"then": {
"properties": {
"valid": {
"type": "boolean"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"required": [
"instancePath",
"schemaPath",
"keyword",
"params"
],
"properties": {
"params": true,
"keyword": true,
"schemaPath": true,
"instancePath": true
}
}
}
}
}
},
{
"if": {
"properties": {
"valid": {
"const": true
}
}
},
"then": {
"properties": {
"errors": {
"type": "array",
"maxItems": 0
},
"errorsTruncated": false
}
}
}
],
"title": "validate output",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"valid",
"schemaValid",
"errors"
],
"properties": {
"valid": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether `data` conforms to `schema`. null when `schema` is malformed, because the data was not checked."
},
"errors": {
"type": "array",
"items": {
"$ref": "#/$defs/error"
},
"description": "Every error found. Empty when `valid` is true."
},
"schemaValid": {
"type": "boolean",
"description": "Whether `schema` is a usable JSON Schema (draft 2020-12). When false, `errors` describe the schema, not the data."
},
"errorsTruncated": {
"const": true,
"description": "Present only when the full answer would exceed 1 MiB. `errors` then holds the first 100 errors, or fewer if those alone exceed 1 MiB."
}
},
"additionalProperties": false
}