Skip to main content
Glama
devkit-mcp

devkit-mcp

by RaihNoDev2

json_format

Read-onlyIdempotent

Validates and formats JSON strings with pretty-print or minified output, using a configurable indent. Use it to fix malformed JSON and return structured, readable results.

Instructions

Valida e formata uma string JSON (pretty-print e minificado).

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": {
      "text": "<text>"
    },
    "name": "json_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesString JSON.
indentNoIndentação em espaços (padrão: 2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (read-only, idempotent, non-destructive, closed-world), so the description's added burden is light. It usefully discloses the two formatting behaviours it performs, but says nothing about what happens with invalid JSON (error vs. partial output) or what the response contains.

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 front-loaded sentence with zero filler, naming the operation and both output variants up front. It is tight, though the terseness leaves little room for the behavioural detail an agent might want.

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-parameter, fully documented, annotated formatting utility with no output schema, this is nearly complete. The only gap is how validation failure surfaces, which matters for an agent deciding between this and json_validate.

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%, so both parameters (text, indent with default 2) are already documented. The description adds only indirect meaning about indent through the 'minificado' mode; no explicit mapping of indent values to output modes is given, so the 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?

The description states a specific verb and resource ('Valida e formata uma string JSON') and names both output modes (pretty-print and minified), so an agent knows exactly what the tool produces. It does not, however, differentiate itself from the sibling json_validate, which occupies overlapping validation territory.

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 json_validate, nor any stated prerequisites or exclusions. At best the mention of formatting implies usage; nothing tells the agent which sibling to pick when the goal is validation only.

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