Skip to main content
Glama

x402-truncate-middle

Truncate Middle: Truncate middle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoMax to process
textNoText to process
inputNoInput to process
lengthNoLength to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / input
      Added value: +{
      +  "description": "Input to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / length
      Added value: +{
      +  "description": "Length to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / max
      Added value: +{
      +  "description": "Max to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

D1.5/5.0
Behavior1/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, and it discloses nothing: it does not say what marks the truncation (ellipsis, character count), whether max/length is enforced, or what happens when input is shorter than the limit. For a 4-parameter operation with zero annotation coverage this is a serious gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is short, but it is short by under-specification rather than conciseness; the single repeated clause carries no information an agent can act on.

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

Completeness1/5

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

With four parameters, no annotations, no output schema, and two pairs of ambiguous parameter names, the description should explain input interpretation, the truncation rule, and the result shape. It explains none of these.

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 nominally 100%, which sets a baseline of 3, but the schema strings are placeholders ('Max to process', 'Text to process', 'Input to process', 'Length to process') and give no meaning. The description compounds this by not clarifying the overlap between text vs input or max vs length, so it adds no disambiguating value.

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

Purpose2/5

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

The description restates the name almost verbatim ('Truncate Middle: Truncate middle.'), which is a tautology. It does name a verb (truncate) and a resource region (middle), but it does not distinguish this from close siblings such as x402-truncate, x402-truncate-words, or x402-truncate-decimal, so an agent cannot tell which one applies.

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

Usage Guidelines1/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 statement of prerequisites, and no mention of the sibling tools that perform adjacent truncation tasks. The agent is left to guess whether 'truncate middle' means character-based, byte-based, or token-based.

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