Skip to main content
Glama

Lordevo Shop: website checks for agents (x402)

JSON Schema validator: check JSON (or LLM output) against a schema ($0.0021/call)

json_validate
Read-onlyIdempotent

$0.0021 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Data utilities] JSON Schema validator. Validates a JSON document against a JSON Schema (draft-07, 2019-09 or 2020-12, formats included) and returns valid true/false with every error as a JSON Pointer, keyword and message. Input: json and schema (POST for large documents). Limits: 1 MB JSON, 200 KB schema, 100 errors listed; remote $ref is not fetched. Offline.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "json": "<json>",
      "schema": "<schema>"
    },
    "name": "json_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesJSON text to validate, up to 1 MB, e.g. {"name":"Ada","age":36} (a JSON value is also accepted in a POST body or MCP arguments)
trialNoOptional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms.
schemaYesJSON Schema (draft-07, 2019-09 or 2020-12) as JSON text or object, up to 200 KB

Output Schema

NameRequiredDescriptionDefault
toolNo
cacheNo
draftNo
validNo
_trialNoPresent when the call was a free trial call.
errorsNo
providerNo
price_usdNo
error_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms."New value: +"Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms."
  2. Changed1 schema field changed
    • changedInput schema / properties / json / description
      Previous value: -"JSON text, up to 1 MB (a JSON value is also accepted in a POST body or MCP arguments)"New value: +"JSON text to validate, up to 1 MB, e.g. {\"name\":\"Ada\",\"age\":36} (a JSON value is also accepted in a POST body or MCP arguments)"
  3. Changed2 schema fields changed
    • addedInput schema / properties / trial
      Added value: +{
      +  "description": "Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "required": [
      +        "tool",
      +        "valid",
      +        "errors"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "accepts": {
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "charged": {
      +          "type": "boolean"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "properties": {
      +    "_trial": {
      +      "description": "Present when the call was a free trial call.",
      +      "type": "object"
      +    },
      +    "cache": {
      +      "type": "object"
      +    },
      +    "draft": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "error_count": {
      +      "type": "integer"
      +    },
      +    "errors": {
      +      "items": {
      +        "properties": {
      +          "keyword": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "pointer": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "price_usd": {
      +      "type": "number"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "valid": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description still adds real behavior: 1 MB document and 200 KB schema limits, a 100-error listing cap, that remote $refs are not fetched, and that the service is offline. It stops short of describing performance or large-document streaming behavior beyond suggesting POST.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is dense and front-loads the price and purpose, then packs limits and constraints into a few sentences. The leading pricing/trial sentence is somewhat promotional but does map to the supported trial parameter, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-purpose validator with full schema coverage and a declared output schema, the description covers everything an agent needs: input format, size limits, draft versions, error reporting granularity, $ref non-fetching, payment/trial mechanics, and offline operation. Return values are documented by the output schema, so no further explanation is required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description largely restates the json and schema parameters already documented. The one addition is 'POST for large documents', which gives minor invocation context beyond the input schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — 'Validates a JSON document against a JSON Schema' — and names supported draft versions and the return shape (valid true/false plus JSON Pointer/keyword/message errors). It never explicitly distinguishes itself from nearby tools such as json_schema_infer or json_repair, so it is clear but not sibling-differentiating.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the purpose ('check JSON (or LLM output) against a schema'), and the free-trial flag is explained. There is no explicit when-to-use/when-not guidance or named alternative for adjacent tasks like inferring a schema or repairing JSON.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources