Skip to main content
Glama

x402-truncate-words

Truncate Words: Keep the first max words of text, 20 by default, and append three dots when anything was cut. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
maxNo
textNo
inputNo
wordsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / max / description
      Removed value: -"Max to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
    • removedInput schema / properties / words / description
      Removed value: -"Words to process"
  2. Changed4 schema fields changed
    • addedInput schema / properties / input
      Added value: +{
      +  "description": "Input 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"
      +}
    • addedInput schema / properties / words
      Added value: +{
      +  "description": "Words to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does reasonably well: it discloses the default value (20 words), the exact output convention (three dots appended only when text was actually cut), and even the commercial constraint (5 free trial calls per signed wallet). It does not describe what happens with empty input or invalid `max` values, which is the main remaining gap.

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 front-loaded sentences with the core semantics first and the trial-pricing note last; nothing is buried. The emoji pricing fragment is arguably marketing noise but does convey a real cost constraint, so it earns a marginal place.

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?

No annotations and no output schema, so the description is the only behavioral source, and for a 4-parameter tool with 0% schema coverage it leaves the `input`/`words`/`text` overlap unexplained. An agent still cannot determine with confidence which parameter to populate, which is a material completeness gap for such a simple tool.

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 four parameters, so the description must compensate entirely, and it only partially does: `max` (word count, default 20) and `text` are clarified. The remaining parameters `input` and `words` are ambiguous aliases that the description never mentions, leaving an agent to guess which field carries the source text and whether they conflict.

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 states a specific verb+resource ('Truncate Words') and spells out the exact semantics: keep the first `max` words, default 20, append three dots when anything was cut. That is enough to distinguish it from word-adjacent siblings like x402-word-wrap or x402-truncate-middle, though it never names those alternatives explicitly.

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?

Usage is implied by the operation itself and by the disclosed default of 20 words, so an agent can infer this is the tool for capping long text. There is no explicit when-to-use/when-not guidance and no pointer to x402-truncate (character-based) or x402-truncate-middle as the alternatives when different truncation semantics are needed.

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