Skip to main content
Glama

jsonvalidate

Validates a JSON string: reports parse errors with position/line, type, depth, key count, and a pretty-printed copy. Costs 0.01 USDC on Base via x402, or 12 sats Cashu ecash (NUT-24), or 12 sats over Lightning (L402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose important behavior: the specific diagnostic fields returned and the fact that the tool is a paid endpoint with three distinct payment rails (x402/USDC, Cashu NUT-24, L402 Lightning) and their exact prices. It stops short of stating error behavior on malformed input, rate limits, or whether the pretty-printed copy is always returned.

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?

Two sentences, zero filler. What the tool does is front-loaded ahead of the ancillary cost information, and every clause (diagnostic outputs, three payment options with prices) carries 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?

For a low-complexity, single-parameter tool with no output schema, the description compensates well by enumerating the return contents and flagging the payment requirement. It would be fully complete if it distinguished the valid vs. invalid JSON response shapes or noted whether payment is per-call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter 'json' is undocumented, so the description must compensate. Phrasing it as 'Validates a JSON string' usefully clarifies that the parameter is a string containing JSON rather than an already-parsed object, which is real added meaning over the bare schema, though no format or size expectations are given.

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?

States a specific verb and resource ('Validates a JSON string') and enumerates the concrete outputs (parse errors with position/line, type, depth, key count, pretty-printed copy), so the agent knows exactly what it returns. No sibling tool does JSON validation, so there is no real sibling to differentiate against, but the definition never explicitly carves out its niche either.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what the tool does and what it costs, but gives no when-to-use context, no prerequisites, and no exclusions or alternatives (e.g., when to pick this over a general 'parse' or 'encode' utility). Usage must be inferred entirely from the tool name and description.

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