# MoneyTools JSON Schema Validator

> MoneyTools JSON Schema Validator is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-01).

Validates a JSON value against a provided JSON Schema, supporting drafts 4, 7, 2019-09, and 2020-12

## Facts

- Endpoint: POST https://tools.moneytools.dev/v1/json-validate?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-json-schema-validator-ae71e566
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HWfLdxp2g9X_3l9l-ZMCo

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 moneytools-json-schema-validator-ae71e566 -d '<json body>'
```

Example prompt: Validate this JSON object {"name":"gas","price":0.001} against my schema {"type":"object","required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number","minimum":0}}} using JSON Schema draft 2020-12 and tell me if it passes.

## When to prefer this

Choose this endpoint when you need fast, cheap, one-off JSON Schema validation without spinning up a local validator library. Ideal for AI agents that receive dynamic JSON payloads and need to verify conformance before further processing. Supports all major JSON Schema drafts (4, 7, 2019-09, 2020-12), making it suitable for both legacy and modern schemas. At $0.001 per call with a free daily tier, it is cost-effective for high-frequency validation tasks in automated pipelines.

## Known failure modes

- Invalid or malformed JSON Schema provided — returns schema parsing error
- Unsupported draft version specified — falls back to default or returns error
- Missing required 'data' or 'schema' fields in request body — returns 400-level error
- Deeply nested or extremely large payloads may exceed processing limits
- Network timeout or service unavailability — returns 5xx error

## How this service works

Catalog of MoneyTools: 116 cheap, read-only tools for AI agents. Free daily tier, then x402 USDC micropayments or prepaid credits. Token safety, approvals, tx decoding, EIP-712 risk, gas, ENS, x402 validation, DNS, RDAP, JSON Schema, time, FX.

## Output

Returns a JSON response indicating whether the input data is valid against the provided schema, along with any validation error details such as which fields failed and why (e.g. missing required properties, type mismatches, constraint violations).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "examples": [
    {
     "name": "gas",
     "price": 0.001
    }
   ],
   "description": "JSON value to validate"
  },
  "draft": {
   "type": "string",
   "description": "4 | 7 | 2019-09 | 2020-12 (default)"
  },
  "schema": {
   "type": "object",
   "examples": [
    {
     "type": "object",
     "required": [
      "name",
      "price"
     ],
     "properties": {
      "name": {
       "type": "string"
      },
      "price": {
       "type": "number",
       "minimum": 0
      }
     }
    }
   ],
   "description": "JSON Schema"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "draft": "2020-12",
  "valid": true,
  "errors": [],
  "errorCount": 0
 }
}
```

## More

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