x402-remove-whitespace
Remove Whitespace: Remove Whitespace
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to process | |
| input | No | Input to process |
Remove Whitespace: Remove Whitespace
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to process | |
| input | No | Input to process |
Changes observed during successful MCP inspections.
Input schema / properties / textAdded value: +{
+ "description": "Text to process",
+ "type": "string"
+}Input schema / properties / inputAdded value: +{
+ "description": "Input to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full behavioral burden, and it discloses nothing. It does not state whether whitespace is stripped entirely, collapsed to single spaces, or trimmed at edges, nor what the return value looks like or how the two string parameters interact.
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?
The text is short, but that brevity is under-specification rather than conciseness — it duplicates the title verbatim and front-loads no useful information. It does not earn its (minimal) space.
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 text transform, only a bare minimum is needed, but the definition fails even that: no annotations, no output schema, no clarification of the ambiguous duplicate parameters, and no statement of the transformation's semantics. An agent could call it, but not confidently.
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 100%, but the schema descriptions are effectively empty ('Text to process' / 'Input to process') and the two optional parameters are near-duplicates. The description does nothing to disambiguate which parameter to use or why both exist, so the baseline 3 for high coverage is not warranted here.
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?
The description 'Remove Whitespace: Remove Whitespace' is a tautology that merely restates the tool name twice. It does convey the basic resource (whitespace) but adds no verb precision, scope, or differentiation from siblings like x402-collapse-spaces or x402-normalize-whitespace.
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 guidance on when to use this tool, what counts as whitespace, or how it differs from the many sibling whitespace tools (collapse-spaces, normalize-whitespace, trim-lines, whitespace-count). Usage is left entirely to inference from the name.
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.