Skip to main content
Glama

DocParse

Validate / format JSON

json_tool
Read-only

Validate JSON and report the exact error line/column, or pretty-print / minify it. Price: $0.001 per successful call via x402 (eip155:8453); 5 free calls/day across all tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNovalidate (default), pretty or minify
inputYesJSON text
indentNoIndent for pretty (default 2)

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 only declare readOnlyHint and openWorldHint; the description adds the pricing model ($0.001 per successful call via x402 on eip155:8453) and a 5 free-calls/day cap, which is genuinely decision-relevant behavior an agent cannot get from structured fields. It also discloses that validation returns exact error line/column. No contradiction with the read-only annotation.

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?

Two sentences, front-loaded with the core capability and error behavior, with the pricing constraint placed last. Every element carries information relevant to invoking the tool, though the pricing clause is slightly dense with chain identifiers.

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?

For a simple 3-parameter stateless string transformer with no output schema and only two annotations, the description covers what is done, the three modes, error output, and cost, which is sufficient. Only minor gaps remain (e.g. size limits or whether validation short-circuits formatting).

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%, with mode, input, and indent all documented in the schema (including enum values and the indent default of 2). The description adds no format or syntax detail beyond the schema, so the baseline 3 for full schema coverage is correct.

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 specific verbs (validate, pretty-print, minify) and the resource (JSON text), plus the error-reporting behavior with exact line/column. Siblings such as base64, hash, and jwt_decode are unrelated utilities, so no sibling differentiation is needed.

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 three modes are named, which implicitly tells the agent the three use cases, but there is no explicit when-to-use guidance, no statement of when this tool is preferable to another, and no mention that mode defaults to validate beyond what the schema already says. Usage remains implied rather than stated.

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