Skip to main content
Glama

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

NameRequiredDescriptionDefault
textNo
inputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / input
      Added value: +{
      +  "description": "Input to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

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.

Conciseness4/5

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.

Completeness3/5

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.

Parameters2/5

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.

Purpose5/5

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.

Usage Guidelines2/5

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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources