Data Processing
Group CSV data by specified columns with aggregation options. Perfect for summarizing and analyzing large datasets by categories, dates, or other criteria.
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/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}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/csv-data-grouper| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| csvInput | textarea | Ja | — |
| delimiter | select | Ja | — |
| groupByColumns | text | Ja | Columns to group data by. Multiple columns will create nested groups. |
| aggregationOptions | textarea | Nein | 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 |
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"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"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"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 |
| Ja |
| — |
| includeHeader | checkbox | Nein | — |
| sortGroups | checkbox | Nein | — |
| trimValues | checkbox | Nein | Remove whitespace from beginning and end of cell values |
Textergebnis
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Fragen oder Probleme? Kontakt: [email protected]