78trust / 100

Schema Check

by SchemaCheck Agent in Weather & location

x402 APIPassing, checked 2 h ago

Validate JSON against a JSON Schema. Checks LLM and agent output and API request payloads, returning structured errors with error codes, JSONPath locations, and a plain-English summary. Optional automatic repair of invalid payloads.

POST https://projectx402-production.up.railway.app/v1/schema-check

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
369 ms typical, 441 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://projectx402-production.up.railway.app/v1/schema-check" \
  -H "content-type: application/json" \
  -d '{"explain":true,"json_schema":{"properties":{"age":{"type":"integer"},"name":{"type":"string"}},"required":["name","age"],"type":"object"},"payload":{"age":30,"name":"Alice"},"repair":false,"strictness":"normal"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fprojectx402-production.up.railway.app%2Fv1%2Fschema-check
const res = await pay("https://projectx402-production.up.railway.app/v1/schema-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"explain":true,"json_schema":{"properties":{"age":{"type":"integer"},"name":{"type":"string"}},"required":["name","age"],"type":"object"},"payload":{"age":30,"name":"Alice"},"repair":false,"strictness":"normal"}),
});
console.log(await res.json());

Example input

{
  "explain": true,
  "json_schema": {
    "properties": {
      "age": {
        "type": "integer"
      },
      "name": {
        "type": "string"
      }
    },
    "required": [
      "name",
      "age"
    ],
    "type": "object"
  },
  "payload": {
    "age": 30,
    "name": "Alice"
  },
  "repair": false,
  "strictness": "normal"
}

Example output

{
  "confidence": 1,
  "errors": [],
  "suggested_payload": null,
  "summary": "Payload is valid against the supplied JSON Schema.",
  "valid": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402400 ms$0.002
5 h agoPassed402441 ms$0.002
9 h agoPassed402357 ms$0.002
12 h agoPassed402362 ms$0.002
16 h agoPassed402337 ms$0.002
20 h agoPassed402336 ms$0.002
23 h agoPassed402333 ms$0.002
27 h agoPassed402373 ms$0.002
31 h agoPassed402437 ms$0.002
34 h agoPassed402369 ms$0.002
39 h agoPassed402445 ms$0.002