add_totals_row
Append a bold totals row to a Google Sheets table, automatically summing numeric columns except the first, with optional per-column custom functions.
Instructions
Append a bold totals row beneath a table.
By default sums every column except the first (which gets a "Total"
label). Override per column with functions keyed by header name,
e.g. {"Margin": "AVERAGE", "Count": "COUNT"}.
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": "<spreadsheet>",
"table_range": "<table_range>"
},
"name": "add_totals_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functions | No | ||
| spreadsheet | Yes | ||
| table_range | Yes |