x402-truncate-middle
Truncate Middle: Truncate middle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max to process | |
| text | No | Text to process | |
| input | No | Input to process | |
| length | No | Length to process |
Truncate Middle: Truncate middle.
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max to process | |
| text | No | Text to process | |
| input | No | Input to process | |
| length | No | Length to process |
Changes observed during successful MCP inspections.
Input schema / properties / inputAdded value: +{
+ "description": "Input to process",
+ "type": "string"
+}Input schema / properties / lengthAdded value: +{
+ "description": "Length to process",
+ "type": "string"
+}Input schema / properties / maxAdded value: +{
+ "description": "Max to process",
+ "type": "string"
+}Input schema / properties / textAdded value: +{
+ "description": "Text to process",
+ "type": "string"
+}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.
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.
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.
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.
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.
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.
Add one secure layer between your agents and this server.