Home / MCP Tools / Whitespace Normalizer
Live MCP tooldeveloper

Whitespace Normalizer

Collapse runs of spaces/tabs, trim line edges, and cap consecutive blank lines in plain text.

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
textstringrequiredText to normalize
collapse_spacesbooleanoptionalCollapse space/tab runs within a line to one space (default true)
trim_linesbooleanoptionalStrip leading/trailing whitespace from each line (default true)
max_blank_linesintegeroptionalMax consecutive blank lines to keep, 0-10 (default 1)

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "whitespace_normalize", "arguments": {"text": "hello from an agent"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/whitespace_normalize \
  -H 'Content-Type: application/json' \
  -d '{"text": "hello from an agent"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/whitespace_normalize from your browser.

Related tools in Developer