Skip to main content
Glama

delete_features

Deletes rows from an ArcGIS Pro layer or table using a SQL where clause, with optional edit-session handling, immediate saving, and delete-all confirmation.

Instructions

Delete rows matching a where clause. Switches editing on if the project requires it.

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": {
      "layer_name": "<layer_name>"
    },
    "name": "delete_features"
  }
}

Input Schema

NameRequiredDescriptionDefault
whereNoSQL where clause selecting rows to delete.
map_nameNoMap to act on; defaults to the active map.
layer_nameYesLayer or table name as shown by get_layers, or a full dataset path.
save_editsNoCommit the edits immediately instead of leaving them pending.
allow_delete_allNoRequired confirmation when no where clause is given.
use_edit_sessionNoWrap in an edit session.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden for a destructive mutation. It discloses one useful trait (editing is switched on automatically when the project requires it), but says nothing about whether deletes are permanent or undoable, what permissions are required, or how an edit session affects the outcome — significant gaps for an irreversible operation.

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?

Two short sentences, front-loaded with the core action and the editing side effect. Nothing is wasted, though the brevity leaves destructive-operation context unaddressed.

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

Completeness3/5

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

An output schema exists and the input schema is fully documented, so return values and parameters need no prose. However, for a destructive tool with zero annotations, the description omits data loss warnings, reversibility, and permission requirements, leaving the risk profile underspecified.

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%, so all six parameters are already documented, establishing a baseline of 3. The description adds only a mild gloss on edit-session behavior and no syntax or format detail for the where clause beyond what the schema states.

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?

The description names a specific verb and resource ("Delete rows") and scopes it with a where clause, which distinguishes it from delete_dataset or delete_field that operate on whole datasets or schema objects. It stops short of naming any sibling explicitly, so differentiation is inferable rather than stated.

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?

Usage context is only implied: the where-clause framing suggests filtered deletion and the schema's allow_delete_all hints at the unfiltered case, but the description never says when to use this versus delete_dataset, update_features, or other siblings, nor does it state prerequisites.

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

Deploy Server

Other Tools