Skip to main content
Glama

Json Validate

json_validate
Read-only

Validates JSON data against a JSON Schema (draft 2020-12): valid true or false, and up to 50 errors with the instance path, the keyword and the message. Schema and data are each limited to 200 KB. Remote $ref targets are not fetched. No network call. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
dataYesAny JSON value to validate
schemaYesA JSON Schema (object or boolean)

Output Schema

NameRequiredDescriptionDefault
draftNo
validNo
errorsNo
sourceNo
checkedAtNo
errorCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only state readOnlyHint and openWorldHint; the description goes well beyond them by disclosing the 200 KB per-payload cap, the 50-error cap, the refusal to fetch remote $refs, and the billing rule that failed calls are free. This is exactly the kind of operational context an agent needs before committing to a paid call.

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?

Purpose is front-loaded in the first clause and every subsequent sentence carries distinct information (output shape, limits, ref policy, price). The single dense paragraph does blend billing mechanics with core semantics, which is slightly harder to scan than separate sentences would be.

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 two-parameter tool with an output schema, all the missing risk information is covered: input size limits, network/ref behavior, error volume, and payment terms. No assumption is left for the agent to make about cost or failure modes.

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

Parameters4/5

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

Schema coverage is already 100% for the two parameters, so the baseline is 3; the description earns above that by adding the 200 KB size limit on both 'schema' and 'data' and by pinning the accepted schema dialect (draft 2020-12). It does not add value beyond the schema for anything else.

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

Purpose5/5

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

A specific verb (validates) plus resource (JSON data against a JSON Schema), with the draft version pinned. It distinguishes itself from nearby siblings like json_repair (repair) and validate (generic validation) without needing the schemas opened.

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

Usage Guidelines4/5

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

Usage context is clear from the purpose and the stated constraints ('Remote $ref targets are not fetched. No network call.'), which implicitly tell the agent when this tool will not work. It stops short of naming an alternative such as json_repair for malformed input, so there is no explicit when-not/alternative routing.

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