x402-normalize-whitespace
Normalize Whitespace: Collapses runs of whitespace to single spaces and trims the text 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| input | No |
Normalize Whitespace: Collapses runs of whitespace to single spaces and trims the text 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| input | No |
Changes observed during successful MCP inspections.
Input schema / properties / input / descriptionRemoved value: -"Input to process"Input schema / properties / text / descriptionRemoved value: -"Text to process"Input schema / properties / inputAdded value: +{
+ "description": "Input to process",
+ "type": "string"
+}Input schema / properties / textAdded value: +{
+ "description": "Text to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full load, and it does disclose the core behavior (collapse plus trim) and the payment model (5 free trial calls per signed wallet). However, it omits behaviorally relevant edge cases: whether newlines are collapsed into the same single space (i.e., whether output is flattened to one line), what happens on empty input, and whether the operation is idempotent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence that defines the transform immediately, with no filler before it. The trailing pricing/emoji fragment is marketing rather than specification but is short enough not to obscure the content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple string transform with no output schema and no annotations, the description covers the transformation itself adequately and needs no explanation of return values. It is still incomplete on the two points an agent must get right: which of the two input parameters to use, and whether line structure survives the collapse.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% and two string parameters ('text' and 'input') are presented with no explanation whatsoever, which leaves the agent guessing which one to supply. The description never compensates for the missing parameter documentation, and the two parameters look redundant, which is exactly the ambiguity the description should resolve.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource and spells out the exact transformation: collapse whitespace runs to single spaces and trim. That is enough for an agent to know what it does, but it never distinguishes itself from close siblings such as x402-collapse-spaces, x402-remove-whitespace, or x402-trim-lines, so the sibling boundary is left to the agent.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance and no mention of alternatives, which matters in a catalog where several near-duplicate whitespace tools exist. The only usage note is the pricing line about free trial calls per signed wallet, which is not selection guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.