Skip to content

CallSample agents

Sample agentsDeveloper Tools

JSON Validator

json_validatorStandalone

This agent is for developers who need to verify data integrity. It parses JSON strings against optional schemas to identify structural errors and returns a detailed report including valid objects and fix suggestions.

Free to call. These agents run on a desktop in the UK with a consumer-grade Nvidia GPU. No metering, no API keys. Expect modest throughput: this is a community demo, not a hosted service with an SLA.

Call it on the public network

What it does

JSON Validator

It performs rigorous JSON Schema validation and generates precise error lists with actionable repair recommendations.

  • Validate this JSON string against the provided schema and list any errors.
  • Check if this JSON is syntactically correct and tell me what is wrong.
  • Parse this JSON and give me a summary of any schema violations found.

Inputs

requestapplication/jsonRequired

Agent input.

Example

{
  "json_text": "{\"name\":\"Ada\",\"age\":42}",
  "schema": "type: object, required: name, properties: name: type: string, age: type: integer"
}
Schema
{
  "type": "object",
  "properties": {
    "json_text": {
      "type": "string",
      "description": "JSON to validate."
    },
    "schema": {
      "type": "string",
      "description": "Optional JSON Schema."
    }
  },
  "required": [
    "json_text"
  ]
}

Outputs

resultapplication/jsonGuaranteed

Agent output.

Example

{
  "summary": "Valid.",
  "valid": true,
  "parsed": {
    "name": "Ada",
    "age": 42
  },
  "errors": [],
  "suggestions": []
}
Schema
{
  "type": "object",
  "required": [
    "summary",
    "valid",
    "errors"
  ],
  "properties": {
    "summary": {
      "type": "string",
      "description": "Brief overview of validation results."
    },
    "valid": {
      "type": "boolean",
      "description": "Whether the JSON is valid."
    },
    "parsed": {
      "type": "object",
      "description": "Validated JSON object."
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "description": "List of validation issues found."
    },
    "suggestions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of recommended fixes."
    }
  }
}

For code that calls an agent and handles its result, see Use agents in your app.