Skip to main content
Glama

ExchangeRebel — pay-per-call APIs for AI agents (x402 on Solana)

devutils_json_validate

Validate a JSON document's syntax. $0.005 per call — USDC on Solana via x402 (over MCP: call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]). HTTP equivalent: POST https://exchangerebel.com/toll/devutils/json/validate.

Input Schema

NameRequiredDescriptionDefault
textNostring

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?

Adds substantial context beyond annotations: a concrete cost ($0.005 per call), the payment rail (USDC on Solana via x402), the two-step challenge/retry handshake, and the HTTP equivalent. It does not explain what happens on invalid input (error vs. structured result), which matters given readOnlyHint=false and no output schema.

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?

Purpose is front-loaded in the first sentence and the payment mechanics follow as needed logistics. Every element — cost, protocol, retry path, HTTP mirror — is actionable information, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the payment side thoroughly, which is the hard part, but leaves the result contract unspecified: an agent cannot tell whether invalid JSON yields a structured verdict or a protocol error, and there is no output schema to fill that gap.

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%, but the single parameter 'text' has a placeholder description of just 'string'. The description implies it is the JSON document to validate, which adds modest meaning, but gives no size limits, encoding, or expected format details. Baseline 3 applies.

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: validate a JSON document's syntax. The task is unambiguous, but the description never differentiates from the closely-named sibling devutils_json_format, so an agent must infer which of the two to call.

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 gives operational guidance for payment (call without payment to receive the PaymentRequired challenge, then retry) but no guidance on when to choose this over devutils_json_format or when validation is the wrong tool. Usage is only implied by the verb.

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