createTable
Creates a named table with typed columns, headers, and dropdown validation in a Google Sheets spreadsheet, so structured data stays formatted and validated automatically.
Instructions
Creates a new named table with specific column types. Tables provide structured data with typed columns, automatic formatting, and special features like dropdown validation.
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": {
"spreadsheetId": "<spreadsheetId>",
"name": "<name>",
"range": "<range>"
},
"name": "createTable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique name for the table within this spreadsheet. Table names must be unique. | |
| range | Yes | A1 notation range for the table (e.g., "Sheet1!A1:E10"). Must be within existing sheet boundaries. | |
| columns | No | Column definitions. If not specified, columns are auto-detected from first row. | |
| hasFooterRow | No | Whether the table should have a footer row (default: false). | |
| hasHeaderRow | No | Whether the table has a header row (default: true). | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. |