Skip to main content
Glama
google-sheets-mcp
by ezrazhang7

Delete rows

delete_rows
Destructive

Delete entire rows from a Google Sheet and shift the rows below up, removing the rows themselves rather than clearing only their values.

Instructions

Delete entire rows, shifting the rows below up. This removes the rows themselves, not just their values.

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>",
      "startRow": "<startRow>"
    },
    "name": "delete_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many to affect
sheetNoSheet (tab) name; defaults to the first sheet
startRowYes1-based row number where the operation starts (as shown in the sheet)
spreadsheetIdYesSpreadsheet ID or full Google Sheets URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, so the bar is lower. The description usefully adds that lower rows shift up and that the rows themselves are removed rather than blanked, but it says nothing about irreversibility, permissions/scopes, or what happens to data below the deleted block.

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 tight sentences with the destructive effect front-loaded and zero filler. Every clause carries information an agent needs before invoking a row-deletion tool.

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 simple destructive mutation with full schema coverage and a destructiveHint annotation, the definition covers what is removed and how the sheet reflows. The only meaningful omission is whether the deletion is permanent/undoable.

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 (spreadsheetId, sheet, startRow, count) are already documented in the schema. The description adds no parameter-level meaning such as whether count is capped by sheet bounds, so the 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?

The description gives a specific verb+resource (delete entire rows) and adds a semantic distinction: it removes the rows themselves, not just their values. That implicitly separates it from value-clearing siblings like clear_range, but it never names an alternative, so it stops short of the top score.

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?

Usage is only implied — an agent can infer it should call this when rows must actually disappear rather than be emptied. There is no explicit when-to-use/when-not guidance and no pointer to clear_range or delete_columns for the adjacent cases.

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