build_table
Write a formatted table to Google Sheets at any cell, setting headers, banding, and column number formats in one action.
Instructions
Write a titled table and format it in one shot.
anchor is where the top-left header goes: Sheet1!A1, a bare cell
(first sheet), or a sheet name (its A1). Applies a style preset
(clean/financial/report-header/input) to the header, optionally freezes
the header row, adds banding, auto-fits columns, and applies per-column
number_formats ({"Revenue": "currency"}). Set preview=True to
get the planned ranges/requests without changing anything.
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>",
"anchor": "<anchor>",
"headers": "<headers>",
"rows": "<rows>"
},
"name": "build_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| style | No | clean | |
| anchor | Yes | ||
| autofit | No | ||
| banding | No | ||
| headers | Yes | ||
| preview | No | ||
| spreadsheet | Yes | ||
| freeze_header | No | ||
| number_formats | No |