create_pivot_table
Creates a pivot table from source data and adds aggregated results to a new sheet.
Instructions
Create a pivot table from source data. Creates a new sheet with the aggregated results.
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": {
"workbookId": "<workbookId>",
"sourceSheet": "<sourceSheet>",
"sourceRange": "<sourceRange>",
"rowFields": "<rowFields>",
"dataFields": "<dataFields>"
},
"name": "create_pivot_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rowFields | Yes | Column headers to use as row grouping fields | |
| dataFields | Yes | Fields to aggregate with their aggregation functions | |
| workbookId | Yes | The workbook ID | |
| sourceRange | Yes | Range of source data including headers (e.g., 'A1:D100') | |
| sourceSheet | Yes | Sheet containing source data (name or index) | |
| destinationSheet | No | Name for the pivot table sheet (optional, auto-generated if not provided) |