Skip to main content
Glama

mechacut

text_truncate

Truncate to N chars/words/sentences at a real boundary (cut|word|sentence strategy) with configurable ellipsis — the exact tool behind every 'summarize in 200 words' that a model overshoots. Free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>",
      "max": "<max>"
    },
    "name": "text_truncate"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxYes
textYes
unitNochars
ellipsisNo…
strategyNoword

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It hints at boundary safety ("real boundary") and configurable ellipsis, but says nothing about what happens when the text is already under the limit, whether the ellipsis counts toward max, or whether any content is lost beyond the truncated tail.

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?

A single front-loaded sentence that leads with the core operation and the key options. The trailing marketing clause ("the exact tool behind every 'summarize in 200 words' that a model overshoots") and "Free." add flavor rather than 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 five-parameter utility with no annotations and no output schema, the description covers the what but not the operational details an agent would want: return shape, edge-case behavior for short inputs, and per-strategy differences. Adequate but with clear gaps.

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 coverage is 0%, so the description must explain the five parameters. It names the units and lists the strategy values (cut|word|sentence) and mentions a configurable ellipsis, but never explains what each strategy actually does or how max is interpreted per unit — the semantics remain mostly a restatement of parameter names.

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 (truncate) and resource (text) plus the supported units (chars/words/sentences), so the operation is unambiguous. It does not explicitly differentiate itself from sibling text_* utilities such as text_fold_report or text_select, which keeps it short of a 5.

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 phrase "summarize in 200 words" implies the use case (enforcing length limits on model output), but there is no explicit when-to-use/when-not-to-use guidance and no pointer to an alternative tool for related needs. Usage must be inferred from the framing.

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.