create_pivot_table
Create a Google Sheets pivot table from a source range, specifying row and value columns, optional column grouping, and summary function.
Instructions
Create a native Google Sheets pivot table from a bounded source range.
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": {
"spreadsheet_id": "<spreadsheet_id>",
"source_range": "<source_range>",
"target_cell": "<target_cell>",
"row_columns": "<row_columns>",
"value_columns": "<value_columns>"
},
"name": "create_pivot_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row_columns | Yes | ||
| show_totals | No | ||
| target_cell | Yes | ||
| source_range | Yes | ||
| value_columns | Yes | ||
| column_columns | No | ||
| spreadsheet_id | Yes | ||
| summarize_function | No | SUM |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||