x402-collapse-spaces
Collapse Spaces: Replaces runs of spaces and tabs in text with a single space, leaving newlines untouched 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| input | No |
Collapse Spaces: Replaces runs of spaces and tabs in text with a single space, leaving newlines untouched 🆓 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"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It does disclose a real behavioral trait (newlines are preserved, only intra-line runs collapse) and the cost/auth context ('5 free trial calls per signed wallet'), but it says nothing about whether the operation is pure/local, whether it's idempotent, or what the response contains. Decent but incomplete for a zero-annotation tool.
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?
Two compact segments with the transformation rule front-loaded; the 'Collapse Spaces:' prefix is mildly redundant with the tool name. The trailing trial/marketing clause is noise relative to the invocation task, though it does carry pricing information.
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 trivial deterministic text transform the purpose is fully covered, and with no output schema the description isn't obliged to explain returns. However, the ambiguous dual-string schema (text vs input, neither documented nor required) is the one thing an agent needs clarified here, and the description is silent on it.
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 description coverage is 0% and the description never names or distinguishes the two identically-typed parameters 'text' and 'input'. With neither required and no schema descriptions, the agent has no way to know which field to populate or whether it should pass both — a concrete usability gap the description fails to close.
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 and resource ('replaces runs of spaces and tabs in text with a single space') and pins down exact scope with 'leaving newlines untouched', which distinguishes it from the broader whitespace-normalizing siblings such as x402-normalize-whitespace and x402-remove-whitespace. An agent can predict the output format without opening anything else.
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, no mention of alternatives (normalize-whitespace, tab-to-space, remove-whitespace all overlap), and no prerequisites or conditions described. The only usage-adjacent sentence is the payment/trial note, which tells the agent nothing about when this tool is the right choice.
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.