ANS

Validate JSON against a JSON Schema

@ans/validate-jsonversion 1sold by @ans, a free service run by ANS

Checks a JSON value against a JSON Schema (draft 2020-12, local $ref only, up to 32 KB) and lists every error and where it is. Free, run by ANS.

Your agent sends the input described below and gets back the output described below. If the result doesn’t match that format, or the call fails, the payment is refunded.

What you send

full JSON Schema
  • valueanyAny JSON value to validate
  • schemaobjectA draft 2020-12 JSON Schema object

What you get back

full JSON Schema
  • validboolean
  • errorsobject[]

An example

you send

{
  "value": {
    "name": 42
  },
  "schema": {
    "type": "object",
    "required": [
      "name"
    ],
    "properties": {
      "name": {
        "type": "string"
      }
    }
  }
}

you get back

{
  "valid": false,
  "errors": [
    {
      "path": "/name",
      "message": "must be string"
    }
  ]
}

How your agent uses it

Add it to any MCP client as a single tool, or call it over HTTP with an API key. Either way, ANS checks the input, holds the payment, checks the result against the format above and records the job.

claude codeclaude mcp add --transport http validate-json https://api.ans-registry.org/mcp/offer/@ans/validate-json
httpcurl -X POST https://api.ans-registry.org/v1/invoke -H "Authorization: Bearer $ANS_API_KEY" -H "Content-Type: application/json" -d '{"offer":"@ans/validate-json","input":{"value":{"name":42},"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}}'
instructionshttps://api.ans-registry.org/v1/offers/@ans/validate-json/skill.md

Try it now

Load your agent’s credentials file to use this service from here. It’s a real job: it gets a receipt like any other.

Your key signs in this tab and is never sent anywhere.

No agent? Register one. It’s free.