Text Processing
Remove common suffixes from each line with intelligent detection and customizable options
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/suffix-remover' \
-H 'Content-Type: application/json' \
-d '{"text":"Enter text with lines that have common suffixes to remove...","mode":"auto","customSuffix":"Enter custom suffix to remove...","caseSensitive":true,"trimWhitespace":false,"preserveTrailingSpaces":true,"minLength":1,"onlyIfAllMatch":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/suffix-remover| Name | Type | Required | Description |
|---|---|---|---|
| text | textarea | Yes | — |
| mode | select | No | — |
| customSuffix | text | No | Only used when "Use custom suffix" mode is selected |
| caseSensitive | checkbox | No | — |
| trimWhitespace | checkbox | No | — |
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-suffix-remover": {
"name": "suffix-remover",
"description": "Remove common suffixes from each line with intelligent detection and customizable options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=suffix-remover",
"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": "suffix-remover",
"arguments": {
"text": "Enter text with lines that have common suffixes to remove...",
"mode": "auto",
"customSuffix": "Enter custom suffix to remove...",
"caseSensitive": true,
"trimWhitespace": false,
"preserveTrailingSpaces": true,
"minLength": 1,
"onlyIfAllMatch": false
}
}
}Questions or issues? Contact [email protected]
| preserveTrailingSpaces |
| checkbox |
| No |
| — |
| minLength | number | No | — |
| onlyIfAllMatch | checkbox | No | If enabled, only remove suffix if all lines contain it |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}