Skip to main content
Glama

Jemeen Agent Services

JSON Schema validation

validate_json
Read-only

Validates a JSON document against a JSON Schema (core 2020-12 keywords incl. $ref/$defs, anyOf/oneOf/allOf, formats) and returns every error with instance path, schema path and a plain-language message. Use it as an independent gate on structured LLM output before acting on it. Free tier: Document and schema up to 1 MB combined (paid) or 100 KB (free tier).

Input Schema

NameRequiredDescriptionDefault
dataYes
schemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered by structured data. The description still adds real context beyond that: full error enumeration with instance path, schema path and plain-language message, plus the 1 MB combined (100 KB free tier) size limit that would otherwise cause surprise failures. It doesn't say what happens when the schema itself is invalid, which keeps 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.

Conciseness5/5

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

Three sentences, front-loaded with capability, then use case, then constraint. No filler; each sentence adds distinct information an agent needs.

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 discloses the return shape (every error with both paths and a message), and it discloses the size limit. The only gap is edge-case behavior, e.g. invalid or unresolvable $ref schema input, which an agent might want to know before relying on it as a gate.

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. It identifies the two inputs conceptually ('JSON document' and 'JSON Schema') and adds the combined 1 MB / 100 KB size constraint, but never clarifies that data accepts any JSON type while schema must be an object, nor the parameter names.

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?

States a specific verb and resource (validates a JSON document against a JSON Schema) and scopes it precisely to core 2020-12 keywords including $ref/$defs, anyOf/oneOf/allOf and formats. That level of specificity clearly separates it from siblings like agent_readiness, csv_quality or verify_citations.

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?

"Use it as an independent gate on structured LLM output before acting on it" gives a concrete trigger and position in the workflow. It doesn't name an alternative tool or state exclusions, but for this tool family there's no close competitor that needs routing away from.

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