xlsx_pivot
Reshape a flat Excel table into a pivot-style 2D matrix, grouping rows by index and columns by optional fields with an aggregate value per cell.
Instructions
Use this when you need a pivot-table reshape — reshape a flat table into a 2D matrix of index × columns with an aggregated value per cell.
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>",
"index": "<index>",
"values": "<values>"
},
"name": "xlsx_pivot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agg | No | Aggregation function (default sum). | |
| index | Yes | Row-axis grouping columns. | |
| sheet | No | Sheet name (default: first sheet). | |
| values | Yes | Columns to aggregate. | |
| columns | No | Column-axis grouping columns (optional). | |
| 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). | |
| fill_value | No | Value (number or string) to use for missing index×column cells. Default empty string. | |
| header_row | No | Header row (1-based). 0 = treat row 1 as data, no header. |