Data Processing
Upload a CSV file or paste CSV text, remove duplicate rows using exact or fuzzy matching, and download a cleaned CSV.
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/csv-deduplicate-rows' \
-F 'file=@/path/to/csvFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/csv-deduplicate-rows' \
-F 'csvFile=/path/to/file.ext' \
-F 'csvText=name,email,phone
John Doe,[email protected],123-456-7890
John Doe,[email protected],123-456-7890
Jane Smith,[email protected],555-111-2222' \
-F 'deduplicationColumns=email, phone' \
-F 'strategy=first' \
-F 'fuzzyMatching=false' \
-F 'fuzzyThreshold=85' \
-F 'caseSensitive=false' \
-F 'trimValues=true' \
-F 'preserveOriginalOrder=true' \
-F 'outputFileName=crm-clean-list'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/csv-deduplicate-rows| Name | Type | Required | Description |
|---|---|---|---|
| csvFile | fileupload required | No | Upload a CSV file if you prefer not to paste data |
| csvText | textarea | No | Paste CSV content here when working from copied data |
| deduplicationColumns | textarea | No | — |
| strategy | select | No | — |
| fuzzyMatching | checkbox | No | — |
| fuzzyThreshold | range | No | — |
| caseSensitive | checkbox | No | — |
| trimValues | checkbox | No | — |
| preserveOriginalOrder | checkbox | No | — |
| outputFileName | text | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-csv-deduplicate-rows": {
"name": "csv-deduplicate-rows",
"description": "Upload a CSV file or paste CSV text, remove duplicate rows using exact or fuzzy matching, and download a cleaned CSV.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-deduplicate-rows",
"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": "csv-deduplicate-rows",
"arguments": {
"csvFile": "https://example.com/file.ext",
"csvText": "name,email,phone\nJohn Doe,[email protected],123-456-7890\nJohn Doe,[email protected],123-456-7890\nJane Smith,[email protected],555-111-2222",
"deduplicationColumns": "email, phone",
"strategy": "first",
"fuzzyMatching": false,
"fuzzyThreshold": 85,
"caseSensitive": false,
"trimValues": true,
"preserveOriginalOrder": true,
"outputFileName": "crm-clean-list"
}
}
}Questions or issues? Contact [email protected]