Skip to main content
Glama

json validate

json_validate
Read-only

Validate JSON against a JSON Schema (draft 2020-12, 2019-09, 7 or 4): valid or not, with every error's path, keyword and message. Check model output or API payloads before you use them. Costs $0.002 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
schemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered, but the description adds genuinely non-obvious behavior: the per-call cost ($0.002 USDC, x402 payment), supported schema drafts, and the granularity of error reporting. It does not explain what happens when the schema itself is invalid or how payment/auth is negotiated, keeping it below 5.

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?

Three tight sentences, front-loaded with the core operation and followed by the use case and the cost disclosure. Every sentence carries information; only slight density of the draft-version enumeration keeps it from being maximally clean.

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

Completeness4/5

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

With no output schema, the description correctly compensates by summarizing the return (validity plus per-error path, keyword, message). Combined with cost and draft support, an agent has enough to call it correctly; only failure modes (invalid schema, malformed data) are unaddressed.

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 0%, so the description must carry the burden for both required parameters. It conceptually names them ('JSON' for data, 'JSON Schema' for schema) but adds no format, default, or shape details beyond what the parameter names already imply, and does not address the nested schema object.

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 precise verb+resource (validate JSON against a JSON Schema), names the supported draft versions, and describes the output shape ('valid or not, with every error's path, keyword and message'). It does not explicitly name the adjacent sibling json_repair or clarify validate-vs-repair, so it stops short of a 5.

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?

'Check model output or API payloads before you use them' gives a concrete when-to-use context that an agent can act on. There is no when-not guidance and no alternative tool is named (e.g. json_repair for malformed input), so it does not reach 5.

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