Skip to main content
Glama

Delete data

delete_data
DestructiveIdempotent

Delete records by id or WHERE condition. Returns the count of deleted records. System records (e.g. the built-in user groups) are never deleted.

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": "<table>"
    },
    "name": "delete_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoDelete a single record by id (e.g., '42'). Either 'id' or 'conditions' must be provided.
tableYesTable name, e.g. ng_invoice.
historyNoRecord the deletion in the change history and let it take part in synchronization, exactly as a deletion made in the user interface does; the records are then deleted one by one. Default false — the deletion itself is not recorded in the history and is not synchronized. Deleting a rights group clears it in the users who had it, and that change of the users is recorded in the history and synchronized either way.
conditionsNoDelete multiple records by WHERE condition (without the WHERE keyword). String values use plain single quotes ('Archived'); write dates between # # (e.g. #2020-01-01#). Subqueries are not allowed. Example: ng_status = 'Archived' AND ng_datum < #2020-01-01#. Either 'id' or 'conditions' must be provided.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=true, so the safety profile is covered. The description still adds real value beyond them: it discloses the return value (count of deleted records) and a protective behavioral rule that built-in system records are never removed, which an agent cannot learn from the annotations.

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 short sentences, front-loaded with the action and selection modes, then the return value, then the safety caveat. Nothing is redundant or buried.

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 mutation with rich annotations and a fully documented schema, the description covers action, targeting, return value, and the system-record guardrail. There is no output schema, but the count return is explained; only history/synchronization side effects are left entirely to the parameter description.

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 quoted-string and #date# formatting rules and the history/synchronization semantics, so the schema carries the parameter burden. The description only restates the id/condition choice already documented in the schema, adding no new meaning — baseline 3 is appropriate.

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 gives a specific verb and resource ("Delete records") plus the two selection mechanisms (id or WHERE condition) and the return value. It is unambiguous against siblings like write_data or read_data, though it never states that differentiation explicitly.

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 is implied rather than stated: the agent can infer it should use this rather than write_data when removing rows, and knows system records are off-limits. There is no explicit when-to-use/when-not framing, no mention of prerequisites, and no named alternative for scenarios this tool does not cover.

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.

Resources