-
Notifications
You must be signed in to change notification settings - Fork 135
feat: add deleteSheet and renameSheet tools #71
Copy link
Copy link
Closed
Description
Description
Two new sheet management tools:
- deleteSheet — Deletes a sheet (tab) from a spreadsheet
- renameSheet — Renames a sheet (tab) in a spreadsheet
Motivation
Currently there's no way to delete or rename sheet tabs through the MCP tools. These are basic spreadsheet management operations needed for workflows that involve creating temporary sheets, cleaning up, or reorganizing tabs.
Implementation Details
- Both use
spreadsheets.batchUpdatewith their respective request types (DeleteSheetRequest,UpdateSheetPropertiesRequest) - Both require the numeric
sheetId(available viagetSpreadsheetInfo) renameSheetadditionally takesnewName(string, min length 1)- Follow existing tool patterns (Zod schemas,
getSheetsClient,UserError) - No changes to helper files — only
clients.tsis imported
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels