Home / Servers / Developer Toolbox / format_json

Format json

An MCP tool from the Developer Toolbox server, hosted on mcp.hjlabs.in.

Validate a JSON document and return it formatted or minified. On failure, reports the parser error including the offset of the problem.

Name on the gateway: devtools__format_json · read-only.

Parameters

NameTypeDescription
json requiredstringThe JSON document as a string.
indentnumberSpaces of indentation, 0-8. Default 2.
minifybooleanReturn the smallest valid form instead of formatting.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "devtools__format_json",
  "arguments": {
    "json": "…"
  }
}

Or connect the Developer Toolbox server directly, which lists 18 tools including this one:

Run in your terminal
claude mcp add --transport http hj-devtools https://mcp.hjlabs.in/mcp/devtools \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the format json tool with json set to ….

More from Developer Toolbox