Home / Servers / Text Toolkit / sort_lines
Sort lines
An MCP tool from the Text Toolkit server, hosted on mcp.hjlabs.in.
Sort the lines of a text: alphabetical, natural (numbers in order: file2 before file10), numeric or by length; ascending or descending; optionally case-insensitive and with duplicates removed.
Name on the gateway: text__sort_lines · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
text required | string | Lines separated by newlines. |
mode | alphabetical | natural | numeric | length | How to compare lines. Default "natural". |
descending | boolean | Reverse the order. Default false. |
case_insensitive | boolean | Ignore case. Default true. |
unique | boolean | Drop duplicate lines. Default false. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "text__sort_lines",
"arguments": {
"text": "…"
}
}Or connect the Text Toolkit server directly, which lists 43 tools including this one:
claude mcp add --transport http hj-text https://mcp.hjlabs.in/mcp/text \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the sort lines tool with text set to ….