Skip to main content
Glama

deleteTable

Deletes a table from a spreadsheet and removes its formatting while preserving cell data by default; optionally clears the table's data too.

Instructions

Deletes a table from a spreadsheet. By default, only removes the table object and formatting while keeping the cell data. Optionally clears the data as well. Modern deleteData calls require a readSpreadsheet handle that contains the table data range; data-preserving deletes use getSpreadsheetInfo.

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>",
      "tableIdentifier": "<tableIdentifier>"
    },
    "name": "deleteTable"
  }
}

Input Schema

NameRequiredDescriptionDefault
deleteDataNoIf true, also clears the cell data in the table range. If false (default), only removes the table object and formatting.
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.
tableIdentifierYesThe table name or table ID to delete. Use listTables to see available tables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the safety burden and does well: it clearly discloses that deletion is destructive to the table object and formatting but preserves cell data by default. It adds prerequisite context about readHandle requirements, though it does not discuss reversibility, permissions, or return behavior.

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?

Three sentences, front-loaded with the core action and default behavior, followed by the optional mode and handle requirements. There is no filler and the structure supports quick decision-making.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description covers the critical behavioral distinction between table removal and data clearing, plus the read-handle prerequisite. A note on irreversibility or expected response would improve completeness, but the essentials are present.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents all parameters. The description still adds useful meaning by explaining that readSpreadsheet is needed for modern deleteData calls while getSpreadsheetInfo supports data-preserving deletes, going beyond the raw parameter descriptions.

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

Purpose5/5

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

The description states a specific verb and resource: "Deletes a table from a spreadsheet." It also immediately clarifies the default scope, distinguishing this from broader destructive operations by noting that cell data is preserved unless requested otherwise.

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

Usage Guidelines4/5

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

It explains the two modes of use: default data-preserving deletion versus optional data clearing with deleteData. It also maps read-handle sourcing to context, naming getSpreadsheetInfo for data-preserving deletes and readSpreadsheet for modern deleteData calls, though it does not explicitly compare against sibling tools like deleteRange.

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