Data Processing
Importez un fichier CSV ou collez du texte CSV, supprimez les lignes en double avec correspondance exacte ou floue, puis telechargez un CSV nettoye.
Appelez cet outil depuis votre code en trois langages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/csv-deduplicate-rows' \
-H 'Content-Type: application/json' \
-d '{"filename":"csvFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/fr/api/tools/csv-deduplicate-rows' \
-F 'csvFile=uploads/2026/01/01/your-tool-1700000000000-abc123.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'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/csv-deduplicate-rows| Nom | Type | Requis | Description |
|---|---|---|---|
| csvFile | fileupload requis | Non | Importez un fichier CSV si vous preferez ne pas coller les donnees |
| csvText | textarea | Non | Collez ici le contenu CSV si vous travaillez depuis du texte copie |
| deduplicationColumns | textarea | Non | — |
| strategy | select | Non | — |
| fuzzyMatching | checkbox | Non | — |
| fuzzyThreshold | range | Non | — |
| caseSensitive | checkbox | Non | — |
| trimValues | checkbox | Non | — |
| preserveOriginalOrder | checkbox | Non | — |
| outputFileName | text | Non | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-csv-deduplicate-rows": {
"name": "csv-deduplicate-rows",
"description": "Importez un fichier CSV ou collez du texte CSV, supprimez les lignes en double avec correspondance exacte ou floue, puis telechargez un CSV nettoye.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-deduplicate-rows",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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"
}
}
}Des questions ou un problème ? Contactez [email protected]