Skip to content

feat: add deleteSheet and renameSheet tools #71

@a-pedraza

Description

@a-pedraza

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.batchUpdate with their respective request types (DeleteSheetRequest, UpdateSheetPropertiesRequest)
  • Both require the numeric sheetId (available via getSpreadsheetInfo)
  • renameSheet additionally takes newName (string, min length 1)
  • Follow existing tool patterns (Zod schemas, getSheetsClient, UserError)
  • No changes to helper files — only clients.ts is imported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions