# AgentsToolsHub JSON Schema Validator

> AgentsToolsHub JSON Schema Validator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-17).

Validates a JSON document against a JSON Schema (draft 2020-12) and returns a valid/invalid result with detailed violation paths and messages

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/json-schema-validator?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstoolshub-json-schema-validator-e3ee03af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K0bZXBmveR_a5cZgTQu3Y

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentstoolshub-json-schema-validator-e3ee03af
```

Example prompt: Can you validate this JSON data against my schema and tell me exactly which fields are invalid and where — I need the full list of violations with their JSON Pointer locations: data is {"name":"Alice","age":"thirty"} and schema is {"type":"object","properties":{"name":{"type":"string"},"age":{"type":"integer"}},"required":["name","age"]}.

## When to prefer this

Choose this endpoint when you need precise, draft 2020-12 compliant JSON Schema validation with full error reporting including JSON Pointer paths for every violation. Ideal for agents that need to verify structured output before trusting or storing it, or developers debugging JSON conformance issues. Prefer this over generic linting tools when exact violation locations and schema-standard compliance matter.

## Known failure modes

- Invalid or malformed JSON in the data parameter — returns parse error
- Invalid or malformed JSON Schema string — returns schema parse error
- Unsupported JSON Schema draft (only draft 2020-12 is supported)
- Missing required query parameters (schema or data) — returns 400 error
- Payment not processed — returns 402 Payment Required

## How this service works

Validate a JSON document against a JSON Schema (draft 2020-12) with precise error paths — the exact check agents need before trusting structured output. Returns valid/invalid plus every violation with its JSON Pointer location and message. Use this when an agent needs to validate JSON against a draft 2020-12 schema.

## Output

Returns a valid/invalid boolean result along with a structured list of every schema violation, each including the JSON Pointer location (e.g. /age) and a human-readable error message describing the constraint that was violated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "schema",
      "data"
     ],
     "properties": {
      "data": {
       "type": "string",
       "description": "JSON data"
      },
      "schema": {
       "type": "string",
       "description": "JSON Schema"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstoolshub-json-schema-validator-e3ee03af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
