x402-sort-lines
Sort Lines: Sort lines of text (alpha, numeric, reverse).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to process | |
| order | No | Order to process |
Sort Lines: Sort lines of text (alpha, numeric, reverse).
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to process | |
| order | No | Order to process |
Changes observed during successful MCP inspections.
Input schema / properties / textAdded value: +{
+ "description": "Text to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden. It says nothing about case sensitivity, stability of the sort, how blank or duplicate lines are handled, line-delimiter expectations, or what the tool returns. For a pure text transform the risk is low, but the disclosure is still minimal.
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?
One short, front-loaded sentence with no filler, and the mode enumeration is placed where it is most useful. The 'Sort Lines:' prefix mildly duplicates the tool name but costs almost nothing.
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 trivial two-parameter stateless utility with no output schema and no annotations, the definition is adequate but not complete — an agent still cannot tell how input lines are delimited, whether sorting is case-insensitive, or which sibling to prefer. Adequate minimum viable coverage.
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 coverage is 100%, so the baseline is 3, but the schema's own 'order' description ('Order to process') is uninformative and lacks an enum; the description supplies candidate values (alpha, numeric, reverse) that meaningfully clarify that parameter. 'Lines of text' also clarifies the expected shape of 'text'.
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?
States a specific verb and resource ('Sort lines of text') and lists the supported sort modes (alpha, numeric, reverse), so an agent can identify the operation immediately. It does not, however, distinguish itself from near-identical siblings such as x402-sort-strings, x402-sort-numbers, or x402-csv-sort, which is the remaining gap for a 5.
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 choose this tool over x402-sort-strings, x402-sort-numbers, or x402-csv-sort, and no mention of prerequisites or input constraints. The mode list hints at usage but is not framed as 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.