Skip to main content
Glama

deleteSheet

Deletes a sheet (tab) from a Google Sheets spreadsheet using its numeric sheet ID, which you can find with getSpreadsheetInfo before removing the tab.

Instructions

Deletes a sheet (tab) from a spreadsheet. Use getSpreadsheetInfo to find the numeric sheet ID.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "sheetId": "<sheetId>"
    },
    "name": "deleteSheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetIdYesThe numeric sheet ID to delete. Use getSpreadsheetInfo to find sheet IDs.
readHandleNoCapability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio.
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.
valueReadHandleNoAdditional readSpreadsheet handle covering all deleted cells across the full current grid height. Required on the modern runtime. Deletion consumes both handles; reread before another mutation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden for a destructive mutation, and it does not state that the deletion is permanent, whether it can be undone, or what permissions are needed. The important operational detail about read handles being consumed by deletion lives only in the schema, not the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, purpose front-loaded, and the ID-lookup hint immediately after. Nothing is padded or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The schema is rich and fully annotated, which covers the handle mechanics, so the description need not repeat them. However, for a destructive, irreversible operation with no annotations and no output schema, the description should at minimum flag permanence or the need to re-read after mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters (including the readHandle/valueReadHandle contract) are already documented in the schema. The description only restates that sheetId is numeric and points at getSpreadsheetInfo, adding no meaning beyond the schema — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Deletes a sheet (tab) from a spreadsheet' — with the parenthetical disambiguating 'sheet' from a spreadsheet file. This distinguishes it from deleteColumns/deleteRange/deleteChart siblings by resource type, though it never names those alternatives explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one concrete prerequisite: use getSpreadsheetInfo to find the numeric sheet ID. That is lookup guidance, not usage guidance — there is no statement of when to choose this over deleteColumns, deleteRange, or deleteSlide, and no when-not/exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools