Skip to main content
Glama

Tidy Byte Tools API

Format or minify JSON

json_format
Read-onlyIdempotent

Pretty-print or shrink valid JSON.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "json_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoUse "pretty" (the default) to indent the JSON, or "minify" to remove all extra spaces.
textNoThe valid JSON text to pretty-print or shrink.
indentNoSpaces per indent level for pretty mode: 0, 1, 2, 3, 4, or 8. Default 2.

Output Schema

NameRequiredDescriptionDefault
okYes
toolYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / indent
      Added value: +{
      +  "description": "Spaces per indent level for pretty mode: 0, 1, 2, 3, 4, or 8. Default 2.",
      +  "type": "number"
      +}
    • addedInput schema / properties / mode / description
      Added value: +"Use \"pretty\" (the default) to indent the JSON, or \"minify\" to remove all extra spaces."
    • addedInput schema / properties / text / description
      Added value: +"The valid JSON text to pretty-print or shrink."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only the 'valid JSON' precondition, hinting at input validation, and says nothing about error behavior on invalid input or output size. Minimal but non-contradictory added value.

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?

A single compact sentence with zero wasted words, and the verb pair is front-loaded. It is a fragment rather than a structured sentence, so there is no room for the kind of front-loaded guidance that would justify a 5.

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 two-mode text transformation with rich annotations, a 100%-covered schema and an output schema, the description only needs to establish purpose and scope, which it does. Nothing an agent needs to call it correctly is missing, though a note on malformed-input handling would have made it complete.

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% and every parameter (mode, text, indent) carries its own description including the default and the pretty/minify options, so the description has nothing left to add. Baseline 3 applies; the description does not explain mode or indent behavior at all.

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 pair of operations (pretty-print, shrink) on a specific resource (JSON), and the qualifier 'valid' implicitly carves out the json_repair sibling. It stops short of naming the alternative, so an agent must infer the boundary from the word 'valid' rather than being told outright.

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?

Usage is only implied: restricting input to 'valid JSON' suggests this tool is not the one to reach for when input is malformed, which points at json_repair, but no alternative is named and no when-not condition is stated. It's enough to route an attentive agent, but nothing is explicit.

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.