Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-json-pretty

JSON Pretty: Returns JSON from value pretty-printed with an indent of indent spaces, defaulting to 2 🆓 5 free trial calls per signed wallet

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "value": "<value>"
    },
    "name": "x402-json-pretty"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
indentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "value",
      -  "indent"
      -]New value: +[
      +  "value"
      +]
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "value"
      -]New value: +[
      +  "value",
      +  "indent"
      +]
  3. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "value"
      +]
  4. Changed2 schema fields changed
    • removedInput schema / properties / indent / description
      Removed value: -"Indent to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  5. Changed2 schema fields changed
    • addedInput schema / properties / indent
      Added value: +{
      +  "description": "Indent to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  6. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the default indent of 2 and the pricing/rate limit ('5 free trial calls per signed wallet'), which an agent could not infer elsewhere. It says nothing, however, about what happens when `value` is not valid JSON, or whether output is wrapped in an object or returned raw.

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?

The core behavior is front-loaded in a single sentence with no wasted preamble. The phrasing 'an indent of indent spaces' is slightly circular, and the trailing promotional clause is tangential but short and carries real information about call limits.

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?

With no output schema and no annotations, the description must cover both input and return behavior; it does state the return is pretty-printed JSON, and gives the default indent. It is still incomplete on error handling for malformed JSON and on the exact output envelope, which matters for a transformation 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 0%, so the description must carry parameter meaning. It does explain that `indent` is a count of spaces with a default of 2, which the schema does not state. It leaves `value` ambiguous (a JSON string versus an arbitrary value) and does not address the schema's `indent: string` type, which conflicts with the numeric 'indent spaces' phrasing.

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?

The description names a specific operation and output: it returns the JSON in `value` pretty-printed with a given indent. That is enough to distinguish it from siblings such as x402-json-minify or x402-json-keys by implication. It never names an alternative tool, so it falls short of a 5.

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?

There is no explicit guidance on when to use this tool versus the many formatting siblings (x402-json-format, x402-json-minify, x402-json-toml, etc.), and no exclusions or prerequisites. The pretty-printing use case is only implied by the tool name and the word 'pretty-printed'.

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