Skip to main content
Glama
json-minifiy-formatter-mcp

json-minifiy-formatter-mcp

by masx200

format_json

Formats raw JSON strings with configurable indentation and optional key sorting to make the data easier to read.

Instructions

把 JSON 字符串格式化为带缩进的漂亮格式

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": {
      "raw": "<raw>"
    },
    "name": "format_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawYes原始 JSON 字符串
indentNo缩进空格数
sort_keysNo是否对键排序

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full disclosure burden. It says nothing about behavior on malformed JSON (error vs. partial output), no size/performance limits, and no warning that sort_keys defaults to true and will reorder keys in the output — a material change an agent should know about.

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 short sentence with no filler, and the core action is front-loaded. It is efficient, though almost too terse given the behavioral gaps elsewhere.

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?

For a simple, side-effect-free transform with a fully documented schema and no output schema, the description is nearly adequate. It is missing error behavior for invalid input and any note that key sorting alters output ordering, which matter for correct invocation.

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%, so all three parameters (raw, indent, sort_keys) are already documented with defaults in the schema. The description adds no extra meaning about them, which matches the baseline for a fully covered schema.

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 states a specific verb and resource: formatting a JSON string into an indented/pretty form. Combined with the sibling name minify_json, the contrast is implicit (pretty vs. compact), but the description itself never names that alternative, so it stops 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 Guidelines3/5

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

Usage is only implied: '带缩进的漂亮格式' signals the pretty-print use case, which an agent could contrast with minify_json. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools