xlsx_aggregate
Group spreadsheet rows by selected columns and aggregate values with sum, mean, min, max, count, or distinct count to produce per-group summaries.
Instructions
Use this when you need to group and aggregate (sum/mean/min/max/count/count_distinct) values on a spreadsheet — reshape rows into per-group summaries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"group_by": "<group_by>",
"aggs": "<aggs>"
},
"name": "xlsx_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aggs | Yes | Aggregations: { column, func, as? }. | |
| sort | No | Sort groups by the first aggregation: asc / desc / none (default none). | |
| limit | No | Max groups to return (default 1000). | |
| sheet | No | Sheet name (default: first sheet). | |
| group_by | Yes | Columns to group by. | |
| file_path | Yes | Absolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64). | |
| header_row | No | Header row (1-based). 0 = treat row 1 as data, no header. |