delete_columns
Deletes one or more columns from a Google Sheets sheet using spreadsheet ID, sheet name, and start/end column indexes to clean up or restructure tabular data.
Instructions
Delete columns from a sheet.
Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet start_column: 0-based index of the first column to delete (0 = column A) end_column: 0-based index of the last column to delete (inclusive). If omitted, deletes only start_column.
Returns: Result of the operation. Returns {"error": ...} without calling the Sheets API if start_column is negative or end_column precedes start_column.
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_column": "<start_column>"
},
"name": "delete_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | Yes | ||
| end_column | No | ||
| start_column | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||