Skip to main content
Glama

delete_rows

Delete rows from a dataset by ID or filter. Preview affected rows first; set confirm=true to permanently remove them after user approval.

Instructions

Delete rows by explicit ids, or in bulk for every row matching a filter.

Destructive: without confirm=true the tool only returns a preview listing the rows that would be deleted. Call it with confirm=false first, tell the user what will be lost, and only re-invoke with confirm=true after they agree.

Args: dataset: Exact dataset name, e.g. "Candidates". row_ids: Explicit row ids to delete, e.g. ["4"]. Mutually exclusive with conditions. conditions: Filter selecting rows to delete, e.g. [{"column": "experience", "op": "lt", "value": 2}]. confirm: Must be true to actually delete (default false = preview only).

Returns: {"ok": true, "dataset", "deleted": , "row_ids": [...], "not_found": [...]} after confirmation, {"ok": true, "requires_confirmation": true, "preview": {...}} without.

Example: delete_rows(dataset="Candidates", conditions=[{"column": "stage", "op": "eq", "value": "Rejected"}])

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
datasetYes
row_idsNo
conditionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries the full behavioral disclosure burden and does so thoroughly. It labels the operation as destructive, explains the preview vs. actual deletion behavior, documents the confirm default, and specifies both return shapes. This is far beyond what the bare input schema conveys.

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?

The description is compact yet information-dense: purpose, safety workflow, args, return values, and example are clearly labeled and easy to parse. The destructive warning is front-loaded, and every sentence contributes to safe and correct invocation.

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?

The description covers all needed context: how to preview, how to confirm, what arguments to pass, what responses to expect, and a concrete example. Despite having no annotations, an agent has everything necessary to invoke the tool safely and interpret its output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description fully compensates by providing a dataset example, row_ids example with mutual exclusivity, a structured conditions example, and confirm default semantics. Each parameter is given practical meaning beyond its raw type definition.

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?

The description starts with a specific verb and resource: 'Delete rows by explicit ids, or in bulk for every row matching a filter.' This clearly distinguishes it from siblings like delete_dataset, add_rows, and update_rows, and identifies the two supported deletion modes.

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?

The description gives explicit workflow guidance: call with confirm=false first, tell the user what will be lost, then re-invoke with confirm=true after agreement. It also clarifies that row_ids and conditions are mutually exclusive. It doesn't explicitly name alternative sibling tools for when not to use it, but the usage context is otherwise strong.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kanishk393/mdm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server