Skip to main content
Glama

google-sheets-mcp

delete_table_records_tool

Remove specific rows from a Google Sheets table while maintaining its structure. Specify spreadsheet, sheet, table, and record numbers to delete rows in descending order without index conflicts.

Instructions

Delete specific records (rows) from a table. This tool removes specific records from a table while preserving the table structure. Record numbers are 1-based and exclude the header row. Records are deleted in descending order (bigger numbers first) to avoid index shifting issues. Args: spreadsheet_name: Name of the spreadsheet sheet_name: Name of the sheet containing the table table_name: Name of the table to delete records from record_numbers: List of record numbers to delete (1-based, excluding header) Returns: JSON string with success status and deletion details

Input Schema

NameRequiredDescriptionDefault
record_numbersYesList of record numbers to delete (1-based, excluding header)
sheet_nameYesThe name of the sheet containing the table
spreadsheet_nameYesThe name of the Google Spreadsheet
table_nameYesName of the table to delete records from

Input Schema (JSON Schema)

{ "properties": { "record_numbers": { "description": "List of record numbers to delete (1-based, excluding header)", "items": { "type": "integer" }, "title": "Record Numbers", "type": "array" }, "sheet_name": { "description": "The name of the sheet containing the table", "title": "Sheet Name", "type": "string" }, "spreadsheet_name": { "description": "The name of the Google Spreadsheet", "title": "Spreadsheet Name", "type": "string" }, "table_name": { "description": "Name of the table to delete records from", "title": "Table Name", "type": "string" } }, "required": [ "spreadsheet_name", "sheet_name", "table_name", "record_numbers" ], "title": "delete_table_records_toolArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/henilcalagiya/google-sheets-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server