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 / allOfAdded value: +[
+ {
+ "anyOf": [
+ {
+ "required": [
+ "input"
+ ]
+ },
+ {
+ "required": [
+ "text"
+ ]
+ }
+ ]
+ }
+]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 behavioral burden. It does disclose a real operational fact — 5 free trial calls per signed wallet, implying a paywall and wallet authentication — but says nothing about defaults (e.g. whether ellipsis is appended), what happens when the string is shorter than the length, or what the response looks like.
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 padding; the purpose comes first and the quota note second. The only waste is the redundant "Truncate:" prefix echoing the tool name.
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 zero schema descriptions, no annotations and no output schema, the description is far too thin. An agent could not resolve the alias parameters or predict the truncation/ellipsis behavior from what is written here.
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 string parameters, and the description compensates barely at all: it only implies that a string and a length are involved. It never clarifies that n, max and maxLength are aliases for the length, that text and input are aliases for the source string, or what ellipsis controls or defaults to — all of which an agent must know to call this correctly.
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?
"Truncate a string to a length" gives a verb and a resource, but it largely restates the tool name and adds almost no scope. With siblings named x402-truncate-middle, x402-truncate-words and x402-truncate-decimal, the description never explains what kind of truncation this is (plain end-truncation, presumably) or how it differs from those neighbors.
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 when-to-use guidance, no condition that selects this tool over its truncate siblings, and no note on preconditions. The only non-purpose sentence concerns free trial calls, which is billing information rather than usage 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.