Skip to main content
Glama

delete_table_row

Destructive

Delete a specific row from an existing Google Doc table by providing the document ID, table start index, and zero-based row index.

Instructions

Delete a row from an existing table in a Google Doc.

Use get_doc_structure to find the table's startIndex and the row_index to delete.

Args: doc_id: The Google Doc file ID. table_start_index: The startIndex of the table (from get_doc_structure). row_index: Zero-based index of the row to delete.

Returns: Confirmation with docId, table_start_index, and deleted row_index.

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": {
      "doc_id": "<doc_id>",
      "table_start_index": "<table_start_index>",
      "row_index": "<row_index>"
    },
    "name": "delete_table_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYes
row_indexYes
table_start_indexYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.2/5.0
Behavior3/5

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

The destructiveHint=true annotation already signals the mutation risk, and the description adds the required discovery step plus a return summary. It does not disclose irreversibility, index-shifting effects on subsequent deletions, or permission requirements, which are the meaningful gaps beyond annotations.

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?

Front-loads the action in one sentence, then the prerequisite, then Args and Returns blocks. No padding or repeated information.

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?

With an output schema present, the Returns block is redundant but harmless, and the parameter guidance fully compensates for the empty schema descriptions. A note on side effects of removing the last row or index invalidation would make it complete for a destructive operation.

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 0%, so the description carries the full burden, and it does: each of the three parameters is defined, including that row_index is zero-based and that table_start_index comes from get_doc_structure. It stops short of explaining validation bounds or index behavior after deletion.

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?

States a specific verb and resource ('Delete a row from an existing table in a Google Doc') and scopes it to one row, which clearly separates it from siblings like delete_rows, delete_table_column, and insert_table_row.

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?

Gives an explicit prerequisite workflow: call get_doc_structure first to obtain the table's startIndex and the row_index. It does not state exclusions or edge cases (e.g., deleting the last remaining row), so no fifth point.

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