add_rows
Adds a specified number of rows to a Google Spreadsheet sheet and lets you set the starting 0-based row index, enabling structured sheet updates via the Sheets API.
Instructions
Add rows to a sheet in a Google Spreadsheet.
Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet count: Number of rows to add start_row: 0-based row index to start adding. If not provided, adds at the beginning.
Returns: Result of the operation. Returns {"error": ...} without calling the Sheets API if start_row is negative or count isn't positive.
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>",
"sheet": "<sheet>",
"count": "<count>"
},
"name": "add_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| sheet | Yes | ||
| start_row | No | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||