Skip to main content
Glama

AIDataParser

Validate JSON against a schema

validate

Check whether a JSON object conforms to a JSON schema (or a built-in schema_id template) and get back a valid flag plus per-field errors. Use this to verify data you already hold — a prior parse result, your own output, or an upstream feed — before acting on it or spending a credit. Deterministic, free, and needs no API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe JSON value to validate.
schemaNoJSON Schema to validate against. Takes precedence over schema_id.
schema_idNoBuilt-in template id to validate against instead of a hand-written schema (invoice, receipt, resume, etc.). Call list_schemas for the full set.

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?

With no annotations provided, the description carries the full burden. It discloses that the tool is 'Deterministic, free, and needs no API key,' which covers safety, cost, and authentication behavior. It also describes the return shape ('valid flag plus per-field errors'). It could be more explicit about error handling for malformed schemas, but overall it is strong for a no-annotation tool.

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?

The description is three well-organized sentences: core action, usage context, and behavioral traits. It is front-loaded with the primary function, each sentence earns its place, and there is no redundant or vague wording.

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?

Given no output schema and no annotations, the description covers the essential return information ('valid flag plus per-field errors'), when to use it, and cost/auth behavior. It does not mention what happens if both schema and schema_id are provided, but that detail is already in the input schema. Overall it is sufficiently complete for a validation tool.

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 references 'schema' and 'built-in schema_id template', but the input schema already explains precedence and template usage. No additional semantic meaning is added beyond what the schema provides, so the baseline score stands.

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?

The description states a specific verb+resource: 'Check whether a JSON object conforms to a JSON schema (or a built-in schema_id template)' and explicitly describes the output ('valid flag plus per-field errors'). It clearly distinguishes itself from sibling tools like parse_document, infer_schema, and list_schemas by focusing on validation of already-held data.

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?

The description gives clear usage context: 'Use this to verify data you already hold — a prior parse result, your own output, or an upstream feed — before acting on it or spending a credit.' It tells the agent when to use the tool and even hints at cost-related motivation. However, it does not explicitly name alternative tools or state when not to use it, so it stops short of a 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.