Skip to main content
Glama
mcp-developer-context-server

mcp-developer-context-server

Validate JSON

validate-json

Validates JSON strings, formats them for readability, or minifies them to reduce size, helping catch syntax errors and standardize data.

Instructions

Validate or format a JSON string

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": {
      "json": "<json>"
    },
    "name": "validate-json"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYes
actionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It does not say whether validation returns a boolean, throws, or returns a list of parse errors, nor what formatting produces (indentation style, key ordering, handling of already-formatted input).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and contains no filler, which is good structure. But at this length it is under-specified rather than concise — brevity here removes information an agent needs rather than removing waste.

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

Completeness2/5

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

With two parameters, a three-value enum, zero schema description coverage, no annotations, and no output schema, the description should explain the action semantics and the result shape. It does neither, leaving the agent to guess at defaults and return values for a tool whose entire value is its output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 compensate, and it only partially does: 'JSON string' loosely maps to the 'json' parameter, but neither parameter is named or explained, the 'action' enum's three values are undocumented, and the default behavior when 'action' is absent is unstated.

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 gives a concrete verb pair and resource ('Validate or format a JSON string'), which clearly separates it from siblings like run-command or search-codebase. However, it omits 'minify', one of the three actions the schema actually supports, so the stated purpose is narrower than the tool's real scope.

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 guidance on when to choose this tool over alternatives, nor any indication of which of the three actions to pick or which is the default when 'action' is omitted. The word 'or' hints at alternatives but doesn't explain the selection criteria.

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