Skip to main content
Glama

delete_rows

Destructive

Delete one or more rows from a Google Sheets spreadsheet by specifying the spreadsheet ID, sheet name, and start row, with an optional end row for a range.

Instructions

Delete rows from a sheet.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet start_row: 0-based index of the first row to delete end_row: 0-based index of the last row to delete (inclusive). If omitted, deletes only start_row.

Returns: Result of the operation. Returns {"error": ...} without calling the Sheets API if start_row is negative or end_row precedes start_row.

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": {
      "spreadsheet_id": "<spreadsheet_id>",
      "sheet": "<sheet>",
      "start_row": "<start_row>"
    },
    "name": "delete_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYes
end_rowNo
start_rowYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety profile is covered; the description adds real behavior beyond that: indices are 0-based, end_row is inclusive, and invalid arguments return {"error": ...} without ever calling the Sheets API. It does not say the deletion is irreversible or how existing content shifts, which is the one meaningful gap for a destructive mutation.

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

Conciseness4/5

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

Front-loaded lead sentence followed by a clean Args/Returns split, with no filler. The Returns section overlaps with the existing output schema, though it earns its place by documenting the pre-flight error path.

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 destructive 4-parameter tool this covers validation rules, index base, and return behavior, and the output schema handles return values. The omission is an irreversibility/reversibility note, which is the main thing an agent still has to guess.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does: spreadsheet_id located in the URL, sheet as a name, 0-based start_row, inclusive end_row with an explicit default when omitted. That is complete, actionable semantics for all four parameters.

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 plus the scope ('rows from a sheet'), which distinguishes it from delete_sheet, delete_columns and delete_table_row. It stops short of naming the adjacent tools it could be confused with, so sibling differentiation is left implicit.

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?

The Args section implies the only supported call pattern, but there is no explicit 'use this when...' or 'prefer X instead' guidance, and no warning about the conditions under which the agent should stop and confirm with a user. Usage is implied rather than stated.

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