Skip to main content
Glama

delete_records

Delete specific rows from a Grist table by providing the table ID and row IDs, enabling precise record cleanup or data corrections.

Instructions

Delete records from a table by their row IDs.

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": {
      "table_id": "<table_id>",
      "record_ids": "<record_ids>"
    },
    "name": "delete_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoDocument ID
table_idYesTable to delete from
record_idsYesRow IDs to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for an irreversible mutation. It does not state whether deletion is permanent, what happens to rows whose IDs don't exist, whether dependent widgets/views break, or what permissions are required — all material for a destructive tool.

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?

A single front-loaded sentence with no filler; the action and its targeting criterion appear immediately.

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

Completeness2/5

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

For a destructive, no-annotation, no-output-schema tool, the definition is thin: nothing about reversibility, cascading effects, partial-failure behavior, or result shape. An agent can form the call but not predict its consequences.

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%, including table_id and record_ids, so the baseline is 3. The description only restates that the IDs are row IDs and adds nothing about the optional doc_id or about ID format/limits beyond the schema.

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 ("Delete records from a table") plus the selection mechanism ("by their row IDs"), which distinguishes it from sibling mutation tools like delete_columns and add_records. It stops short of naming a sibling or stating scope boundaries explicitly, so it is clear but not maximally differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this instead of alternatives such as update_records or delete_columns, and no preconditions are stated. An agent must infer the usage context entirely from the verb and resource.

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