Data Processing
Group CSV data by specified columns with aggregation options. Perfect for summarizing and analyzing large datasets by categories, dates, or other criteria.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/csv-data-grouper' \
-H 'Content-Type: application/json' \
-d '{"csvInput":"Enter your CSV data (first row should contain headers)...","delimiter":",","groupByColumns":"Enter column names separated by commas (e.g., \"Category,Year\")","aggregationOptions":"[{\"column\": \"\", \"function\": \"count\"}]","outputFormat":"csv","includeHeader":true,"sortGroups":true,"trimValues":true}'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-data-grouper| Nom | Type | Requis | Description |
|---|---|---|---|
| csvInput | textarea | Oui | — |
| delimiter | select | Oui | — |
| groupByColumns | text | Oui | Columns to group data by. Multiple columns will create nested groups. |
| aggregationOptions | textarea | Non | JSON format: [{"column": "Amount", "function": "sum", "as": "Total_Amount"}] Simple format: Amount:sum,Name:count Default: Count records per group Available functions: count, sum, avg/average, min, max, first, last, join, unique, count_unique |
| outputFormat |
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-data-grouper": {
"name": "csv-data-grouper",
"description": "Group CSV data by specified columns with aggregation options. Perfect for summarizing and analyzing large datasets by categories, dates, or other criteria.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-data-grouper",
"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-data-grouper",
"arguments": {
"csvInput": "Enter your CSV data (first row should contain headers)...",
"delimiter": ",",
"groupByColumns": "Enter column names separated by commas (e.g., \"Category,Year\")",
"aggregationOptions": "[{\"column\": \"\", \"function\": \"count\"}]",
"outputFormat": "csv",
"includeHeader": true,
"sortGroups": true,
"trimValues": true
}
}
}| select |
| Oui |
| — |
| includeHeader | checkbox | Non | — |
| sortGroups | checkbox | Non | — |
| trimValues | checkbox | Non | Remove whitespace from beginning and end of cell values |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]