create_pivot_table
Create a pivot table in an Excel worksheet from a specified data range, summarizing rows, columns, and values with aggregation functions.
Instructions
Create pivot table in worksheet.
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": {
"filepath": "<filepath>",
"sheet_name": "<sheet_name>",
"data_range": "<data_range>",
"rows": "<rows>",
"values": "<values>"
},
"name": "create_pivot_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| values | Yes | ||
| columns | No | ||
| agg_func | No | sum | |
| filepath | Yes | Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing. | |
| data_range | Yes | ||
| sheet_name | Yes | ||
| replace_existing | No |