Skip to main content
Glama

delete_sheet_rows

Permanently removes sheet rows by row ID after explicit confirmation, preventing accidental deletions. Use when you need to delete specific records from a sheet.

Instructions

Permanently delete sheet rows by id. Requires confirm: true — deletion cannot be undone (though the app keeps conflict backups of externally-changed CSVs).

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": {
      "workspace": "<workspace>",
      "sheetPath": "<sheetPath>",
      "ids": "<ids>",
      "confirm": "<confirm>"
    },
    "name": "delete_sheet_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesRow ids to delete (from read_sheet)
confirmYesMust be true to actually delete
sheetPathYesPath to the sheet folder (relative to documents folder)
workspaceYesWorkspace path or name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses irreversibility, the confirm gate, and the nuance that backups exist for externally-changed CSVs. It omits permissions requirements, behavior on invalid or partial ids, and whether deletion is atomic, which keeps it short of a 5.

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 nature and the confirm requirement front-loaded; the parenthetical caveat is short and earns its place by clarifying the degree of recoverability.

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 four-parameter destructive tool with no output schema, it covers the essentials: what is destroyed, the safety gate, and the backup caveat. Missing only edge-case behavior (invalid ids, partial failures) and return expectations, which are secondary for a delete 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 100%, so the baseline is 3; the description adds real meaning by tying ids to row identity and stressing that confirm must be true for actual deletion, reinforcing the schema's "Must be true" note with the consequence of not setting it.

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: "Permanently delete sheet rows by id." The word "Permanently" also conveys the scope of the effect. However, it never distinguishes itself from the sibling delete_rows, so an agent must guess which deletion tool applies to a sheet.

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 description gives a clear precondition (confirm: true) and an implicit context (deleting sheet rows by id), which is enough to call the tool. It does not say when to prefer this tool over delete_rows or delete_content, nor does it list exclusions; usage is only implied.

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