Text Processing
Quickly sort lines alphabetically, numerically, or by their length
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/text-basic-sorter' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter text to sort...","sortBy":"alphabetical","sortOrder":"ascending","caseSensitive":false,"removeDuplicates":false,"trimLines":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/text-basic-sorter| Name | Type | Required | Description |
|---|---|---|---|
| textInput | textarea | Yes | — |
| sortBy | select | Yes | — |
| sortOrder | select | Yes | — |
| caseSensitive | checkbox | No | Sort with case sensitivity (Aa-Zz) |
| removeDuplicates | checkbox | No | Remove duplicate lines while sorting |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-text-basic-sorter": {
"name": "text-basic-sorter",
"description": "Quickly sort lines alphabetically, numerically, or by their length",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-basic-sorter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "text-basic-sorter",
"arguments": {
"textInput": "Enter text to sort...",
"sortBy": "alphabetical",
"sortOrder": "ascending",
"caseSensitive": false,
"removeDuplicates": false,
"trimLines": false
}
}
}Questions or issues? Contact [email protected]
| trimLines | checkbox | No | Remove leading/trailing whitespace from lines before sorting |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}