Skip to main content
Glama

x402-dedent

Dedent: Remove common leading whitespace from every line of multi-line text. Provide text or input; useful for cleaning indented code blocks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoText to process
inputNoInput to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/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 the core behavior (removing the common leading whitespace, the dedent semantics) which is the important trait for a pure text transform. It omits edge-case behavior that matters here: whether blank/whitespace-only lines are ignored when computing the common prefix, and whether tabs are treated like spaces.

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 short sentences, front-loaded with the operation definition before the usage hint. Efficient overall, though the 'Provide text or input' clause is slightly redundant given the schema already lists both fields.

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 simple string transform with no output schema and no annotations, the definition covers the essential what and a hint of why. It falls short on handling of whitespace-only lines/tabs and on routing between this tool and near-identical siblings such as x402-dedent-lines, which is the main ambiguity an agent would face.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds 'Provide text or input', acknowledging both parameters, but since both schema descriptions are identical boilerplate ('Text to process' / 'Input to process') it never explains whether they are aliases or which wins if both are supplied, so no real semantic value is added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Remove) and resource (common leading whitespace from every line of multi-line text), so the operation is unambiguous. However, it does not distinguish itself from the very close sibling x402-dedent-lines, nor from adjacent tools like x402-indent or x402-trim-lines, leaving sibling differentiation to the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The clause 'useful for cleaning indented code blocks' implies a usage context, which is more than nothing. But there is no explicit when-to-use versus when-not, and no mention of the obvious alternative x402-dedent-lines, so an agent must infer selection from the name.

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