x402-truncate
Truncate: Truncate a string to a length. 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| max | No | ||
| text | No | ||
| input | No | ||
| ellipsis | No | ||
| maxLength | No |
Truncate: Truncate a string to a length. 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| max | No | ||
| text | No | ||
| input | No | ||
| ellipsis | No | ||
| maxLength | No |
Changes observed during successful MCP inspections.
Input schema / properties / ellipsis / descriptionRemoved value: -"Ellipsis to process"Input schema / properties / input / descriptionRemoved value: -"Input to process"Input schema / properties / max / descriptionRemoved value: -"Max to process"Input schema / properties / maxLength / descriptionRemoved value: -"MaxLength to process"Input schema / properties / n / descriptionRemoved value: -"N to process"Input schema / properties / text / descriptionRemoved value: -"Text to process"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 add a quota/payment signal ('5 free trial calls per signed wallet'), which is genuinely useful behavioral context, but it never explains whether an ellipsis is appended by default, whether length is measured in characters or bytes, or what happens when input is shorter than 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short, front-loaded sentences with no wasted wording. The leading 'Truncate:' label is redundant with the tool name but costs very little, and the pricing note is compactly placed.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a six-parameter tool with 0% schema description coverage, no annotations, and no output schema, this description is far too thin. An agent cannot determine which of the duplicated parameter names to populate or what the default truncation behavior is, so it is not complete enough to call reliably.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% across six parameters, and the schema itself exposes obvious aliases (text vs. input, max vs. n vs. maxLength) with zero guidance. The phrase 'truncate a string to a length' loosely implies two of the six parameters, but which alias to use and what 'ellipsis' does are entirely undocumented.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Truncate a string to a length.' An agent immediately knows the operation. It does not, however, distinguish this from sibling tools like x402-truncate-words, x402-truncate-middle, or x402-truncate-decimal, which occupy adjacent intent space, so differentiation is missing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this vs. the several sibling truncate variants (word-level truncation, middle truncation, decimal truncation), and no prerequisites or exclusions are stated. The only usage-adjacent text is a pricing note about free trial calls, not selection guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.