Skip to main content
Glama

Delete rows

delete_rows
Destructive

Permanently removes leads from a table, stopping their sequences while retaining sent emails and unsubscribe entries. Use to purge poor-fit or opted-out leads.

Instructions

Permanently delete leads (rows) from a table, e.g. poor fits or a person who asked to be removed. Their sequences stop; emails already sent and do-not-email entries (unsubscribes, bounces) are kept. Moving a lead to the lost stage instead keeps its history. Confirm with the user before deleting.

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>",
      "row_ids": "<row_ids>"
    },
    "name": "delete_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
row_idsYes
table_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds what annotations cannot: cascading effects ('their sequences stop') and what survives ('emails already sent and do-not-email entries ... are kept'). That retention-versus-destruction boundary is exactly the behavioral detail an agent needs before an irreversible action.

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?

Three tight sentences ordered by importance: what is destroyed, what is retained, what the alternative is, then the confirmation gate. No filler and the destructive nature is front-loaded.

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 two-parameter tool with no output schema, the definition covers destruction scope, retention, and the safer alternative. It stops short of saying what the call returns (e.g., count deleted) or how partial failures are handled, which would matter for a bulk delete of up to 1000 rows.

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 0%, so the description must carry the load. It implies the table and row targets ('leads (rows) from a table') but never explains identifier format, the maxItems=1000 batch limit, or what happens on partially invalid IDs. Useful framing, but not full compensation.

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: 'Permanently delete leads (rows) from a table.' The parenthetical clarifies the row/lead equivalence and the scope ('from a table') separates it from sibling deletes like delete_table or delete_sequence.

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

Usage Guidelines5/5

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

Gives concrete when-to-use cases (poor fits, removal requests), names an explicit alternative that preserves history ('Moving a lead to the `lost` stage instead keeps its history'), and adds a confirmation requirement before invoking.

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