Skip to main content
Glama

Delete table rows

table_delete_rows
DestructiveIdempotent

Delete up to 1000 rows by their own ids (ids), all of one table (rows of two tables are INVALID_INPUT). An id that names no row you can read is skipped. Workspace tables need why; expectedRevisions is optional and refuses (CONFLICT) a row that changed since. Send expectedTableRevision to refuse the whole delete (CONFLICT) if the table changed since; when none of the named rows exists any more, nothing names the table, so the reply is deleted: 0 with no tableRevision and the guard is not checked. Otherwise the reply's tableRevision is the next one to send.

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": {
      "ids": "<ids>"
    },
    "name": "table_delete_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesThe rows, by their own ids: at most 1000, all of one table. An id that names no row is skipped.
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
expectedRevisionsNoOptional, per row (keyed by an id of ids): refuse (CONFLICT) if that row changed since this revision or no longer exists.
expectedTableRevisionNoOptional: refuse the whole call (CONFLICT, with currentTableRevision) if the table changed since this tableRevision, from a rows page, the table read or the last receipt.

Output Schema

NameRequiredDescriptionDefault
deletedYes
tableRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed2 schema fields changed
    • addedInput schema / properties / expectedTableRevision
      Added value: +{
      +  "description": "Optional: refuse the whole call (CONFLICT, with currentTableRevision) if the table changed since this tableRevision, from a rows page, the table read or the last receipt.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / tableRevision
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
  3. Changed4 schema fields changed
    • changedInput schema / properties / expectedRevisions / description
      Previous value: -"Optional, per row (keyed by an id of rowIds): refuse (CONFLICT) if that row changed since this revision or no longer exists."New value: +"Optional, per row (keyed by an id of ids): refuse (CONFLICT) if that row changed since this revision or no longer exists."
    • addedInput schema / properties / ids
      Added value: +{
      +  "description": "The rows, by their own ids: at most 1000, all of one table. An id that names no row is skipped.",
      +  "items": {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +    "type": "string"
      +  },
      +  "maxItems": 1000,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / properties / rowIds
      Removed value: -{
      -  "description": "At most 1000 row ids, all of one table. An id that names no row is skipped.",
      -  "items": {
      -    "format": "uuid",
      -    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -    "type": "string"
      -  },
      -  "maxItems": 1000,
      -  "minItems": 1,
      -  "type": "array"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "rowIds"
      -]New value: +[
      +  "ids"
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, yet the description adds substantial behavior beyond that: unreadable/missing ids are skipped rather than erroring, per-row and whole-table revision guards refuse with CONFLICT, and the edge case where no named row still exists yields deleted: 0 without checking the table guard. That last disclosure is non-obvious and materially changes how an agent should interpret a result.

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 with the core verb and limits, and every sentence carries information. The trailing sentence about the table guard and the deleted: 0 case is dense and requires re-reading, but the content justifies its length.

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

Completeness5/5

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

A destructive, guard-bearing batch mutation with nested per-row revisions and an output schema; the description covers skip semantics, both conflict paths, and the shape of the receipt (deleted count plus next tableRevision). Nothing an agent needs to invoke or interpret it safely is missing.

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, but the description adds real meaning: 'why' is scoped to workspace tables (task operations exempt), expectedRevisions is per-row keyed by ids, and expectedTableRevision is chained from the previous receipt. The final sentence explaining that the returned tableRevision is the next value to send is not derivable from the schema.

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 rows by their own ids) and immediately bounds the scope: at most 1000, all from one table, with two-table input called out as INVALID_INPUT. An agent can tell this apart from table_update_row or table_append_rows from the description alone.

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?

Clear about conditions and exclusions: batch by id, single-table constraint, workspace tables require a 'why', and optional revision guards. It does not name a sibling alternative (e.g. table_update_row) for the single-row edit case, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.