Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-truncate-middle

Truncate Middle: Shorten text to max characters, 20 by default, by replacing the middle with three dots and keeping both ends. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
maxNo
textNo
inputNo
lengthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / allOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "required": [
      -          "max"
      -        ]
      -      },
      -      {
      -        "required": [
      -          "length"
      -        ]
      -      }
      -    ]
      -  },
      -  {
      -    "anyOf": [
      -      {
      -        "required": [
      -          "input"
      -        ]
      -      },
      -      {
      -        "required": [
      -          "text"
      -        ]
      -      }
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "required": [
      +          "input"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "text"
      +        ]
      +      }
      +    ]
      +  }
      +]
  2. Changed2 schema fields changed
    • addedInput schema / allOf
      Added value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "required": [
      +          "max"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "length"
      +        ]
      +      }
      +    ]
      +  },
      +  {
      +    "anyOf": [
      +      {
      +        "required": [
      +          "input"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "text"
      +        ]
      +      }
      +    ]
      +  }
      +]
    • removedInput schema / required
      Removed value: -[
      -  "input",
      -  "text"
      -]
  3. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "input",
      +  "text"
      +]
  4. Changed4 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / length / description
      Removed value: -"Length to process"
    • removedInput schema / properties / max / description
      Removed value: -"Max to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  5. First observed

TDQS

C2.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does disclose the core algorithm (middle replaced by three dots, both ends kept, 20-char default) and useful pricing context (5 free trial calls per signed wallet), but says nothing about what happens when the input is already shorter than the limit or whether the ellipsis counts toward the limit.

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 sentences, front-loaded with the operation and its algorithm. The trailing emoji/promo line is minor noise but does not obscure the definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with zero schema description coverage and no output schema, the description leaves the `length` parameter and the `input`/`text` aliasing entirely unexplained, and the string typing of numeric-looking parameters is unaddressed. That is a real ambiguity for correct invocation.

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% across 4 parameters, and the description only clarifies `max` (default 20). It never explains `length`, nor the alias relationship between `input` and `text`, nor why `max` and `length` are typed as strings despite describing counts.

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?

The description gives a specific verb+resource ("Truncate Middle", "Shorten text") and explains the actual transformation: replace the middle with three dots while keeping both ends. It implicitly separates itself from siblings like x402-truncate and x402-truncate-words by naming the middle-truncation behavior, but never explicitly contrasts with them.

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 exclusion conditions, and no mention of the sibling truncation tools as alternatives. An agent must infer from the name alone whether this or x402-truncate is appropriate.

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.