Skip to main content
Glama

mint utilities

JSON Schema validator

json_schema_validate
Read-onlyIdempotent

Validate a JSON document, or up to 1000 of them, against a JSON Schema (draft 7, 2019-09 or 2020-12) and list every error with its path. Cost: 1 credit per call. Output: JSON. {valid, errors: [{index, path, message, validator}], count}; meta: {draft, instances, truncated?}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
draftNoJSON Schema draft. auto follows the schema's $schema and defaults to 2020-12.auto
schemaYesThe JSON Schema to validate against.
instanceNoOne JSON value to validate (any type, including null). Use this or instances.
instancesNoUp to 1000 JSON values validated against the same schema. Use this or instance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely new behavioral context: cost of 1 credit per call, the supported draft versions, and a truncation indicator in the meta output. These extend well beyond what structured fields disclose.

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?

Extremely compact and front-loaded: purpose first, then cost, then output shape. Every clause carries information with no filler.

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?

With no output schema, the description compensates by documenting the exact return shape ({valid, errors, count} and meta), plus drafts, cost, and the truncation flag. An agent has everything needed to call and interpret the result.

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 coverage is 100%, so the schema already documents draft, schema, instance and instances, including the enum and the 1000-item limit. The description adds nothing per-parameter beyond echoing the draft list and the instance count, so baseline 3 is appropriate.

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 (validate) and resource (JSON document(s) against a JSON Schema) with scope (single or up to 1000 instances). An agent can immediately tell this apart from the conversion-oriented siblings like json_yaml_convert.

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?

The description implies batching is supported ('or up to 1000 of them') but gives no explicit when-to-use, when-not, or routing guidance, since no sibling directly competes. Usage is inferable but not spelled out.

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