Xml Formatter

Validation REST API MCP

Beautify or minify an XML document and return the formatted text. The input is checked for well-formedness first (balanced tags, quoted attributes, one root element); a malformed document returns an error that names the problem and its line. Beautify re-indents one element per line; minify removes whitespace between tags.

This page documents the HTTP endpoint POST /api/tools/xml-formatter/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/xml-formatter/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/xml-formatter/execute \
  -H "Content-Type: application/json" \
  -d '{
    "xml": "<root><a>1</a><b/></root>"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/xml-formatter

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
xml string yes The XML source to format or minify.
mode string (beautify | minify) no beautify = indent one element per line, minify = compact. Default: beautify. Default: "beautify".
indent integer no Spaces per indentation level in beautify mode (1-8). Default: 2. Default: 2.

Example arguments (verified)

{
  "xml": "<root><a>1</a><b/></root>"
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:xml_formatter after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Xml Formatter →

More Validation tools