Skip to main content
Glama

Delete a gallery item

delete_item
DestructiveIdempotent

Permanently delete a finished, failed, or cancelled gallery item along with its image and video files. Cancel running jobs first, since the removal cannot be undone.

Instructions

Permanently deletes a finished, failed or cancelled gallery item together with its image and video files; this cannot be undone. Only call it when the user asks to delete that item. Running jobs must be cancelled first (cancel_job), and the reference sheet of a figure cannot be deleted while the figure exists.

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": {
      "id": "<id>"
    },
    "name": "delete_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesGallery id of the item to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.33.2

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known from structured data. The description nonetheless adds genuinely new behavior: irreversibility, cascading deletion of attached media, and two blocking preconditions. It stops short of describing any confirmation or error response, so it is good but not exhaustive.

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?

Two sentences, front-loaded with the destructive effect and irreversibility before the preconditions, with zero redundant wording. Every clause adds decision-relevant information.

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?

For a one-parameter destructive tool with no output schema, the definition covers everything an agent needs: what is destroyed, that it is irreversible, the user-intent gate, and the two prerequisites with the sibling to call. No essential decision information is missing.

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?

There is a single required parameter with 100% schema description coverage ('Gallery id of the item to delete'), so the schema already carries the semantics and the baseline of 3 applies. The description adds no format, sourcing, or validation detail about the id beyond what the schema states.

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 names a specific verb and resource — permanently deletes a gallery item — and scopes it precisely to finished, failed or cancelled items, explicitly excluding running jobs. It also discloses the cascade (image and video files are removed), so it is distinguishable from siblings like cancel_job or get_item without opening any 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?

It states both the trigger ('only call it when the user asks to delete that item') and two hard preconditions: running jobs must be cancelled first via the named sibling cancel_job, and a figure's reference sheet cannot be deleted while the figure exists. That gives the agent explicit when-to-use and when-not-to-use conditions plus the alternative to call instead.

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