create_pivot_table
Creates a pivot table from a source range and places it at a destination cell, with customizable rows, columns, values, and filters.
Instructions
Create a pivot table at a destination cell.
rows, columns, values, and filter_specs use the Sheets API
PivotGroup/PivotValue/PivotFilterSpec shapes.
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>",
"destination_cell": "<destination_cell>"
},
"name": "create_pivot_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| values | No | ||
| columns | No | ||
| filter_specs | No | ||
| source_range | Yes | ||
| value_layout | No | HORIZONTAL | |
| spreadsheet_id | Yes | ||
| destination_cell | Yes |