delete_rows
Delete one or more rows from a Google Sheets spreadsheet by specifying the spreadsheet ID, sheet name, and start row, with an optional end row for a range.
Instructions
Delete rows from a sheet.
Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet start_row: 0-based index of the first row to delete end_row: 0-based index of the last row to delete (inclusive). If omitted, deletes only start_row.
Returns: Result of the operation. Returns {"error": ...} without calling the Sheets API if start_row is negative or end_row precedes start_row.
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>",
"start_row": "<start_row>"
},
"name": "delete_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | Yes | ||
| end_row | No | ||
| start_row | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||