Skip to main content
Glama

Permanently Delete Item

purge_item
DestructiveIdempotent

Permanently deletes an item already in the trash, bypassing the 30-day recovery window. Requires confirmation before irreversible removal; use instead of restore_item when destruction is intended.

Instructions

Permanently and irreversibly delete a soft-deleted item (purge it from the trash, skipping the 30-day recovery window). Only operates on items that are already soft-deleted - it refuses items that are still active. On the first call it returns a confirmation conflict; pass resolution: "confirm" only after the user explicitly agrees, or "cancel" to abort. Cascades to child rows the database cascades (e.g. a customer's contacts and interactions). To recover an item instead of destroying it, use restore_item.

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": {
      "entity_type": "<entity_type>",
      "entity_id": "<entity_id>"
    },
    "name": "purge_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idYesUUID of the soft-deleted entity.
resolutionNoPass "confirm" to permanently delete after the user agrees; "cancel" to abort. Omit on the first call to receive a confirmation prompt.
entity_typeYesType of soft-deleted entity to purge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description goes beyond them with genuinely new information: irreversibility, skipped recovery window, refusal of active items, the first-call-returns-a-conflict two-step flow, and cascade behavior to child rows. The only gap is the response shape after a successful purge, which is minor since the description does describe the conflict return.

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?

Front-loads the destructive nature and the soft-delete precondition, then the confirmation sequence, then the cascade caveat, then the alternate tool. Every sentence carries a distinct constraint; nothing is repeated from the schema or annotations verbatim.

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 tool with no output schema, it covers preconditions, irreversibility, cascade scope, and the confirmation handshake, which is nearly everything an agent needs. It stops short of saying what a successful purge returns or how to verify the cascade, a small remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds workflow meaning to 'resolution' that the schema alone states more tersely: confirm only after explicit user agreement, cancel to abort, omit on first call. That sequencing context is the main thing an agent can get wrong, and the description covers it.

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 and irreversibly delete a soft-deleted item, skipping the 30-day recovery window') and explicitly scopes it to trash items only. It also names the sibling it is not ('To recover an item instead of destroying it, use restore_item'), so an agent can route between purge_item, restore_item, purge_items, and the remove_* family without opening a schema.

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 an explicit precondition ('only operates on items that are already soft-deleted - it refuses items that are still active') and an explicit alternative for the non-destructive path (restore_item). It also spells out the confirmation protocol, so the agent knows the correct call sequence rather than guessing.

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