Skip to main content
Glama

Batch Permanently Delete Items

purge_items

Permanently remove multiple soft-deleted items in a single batch. Provide filters or explicit item IDs, then confirm the deletion after reviewing the summary.

Instructions

Permanently and irreversibly delete many soft-deleted items at once (batch purge from the trash). Provide either an explicit items list (entity_type + entity_id pairs, e.g. gathered from list_deleted) OR filters: entity_type, older_than_days, only_demo (leftover demo/test fixtures), or all. On the first call it returns a confirmation conflict summarizing how many items of each type will be destroyed; pass resolution: "confirm" only after the user explicitly agrees. Only ever touches already-soft-deleted items; cascades to child rows the database cascades. Use restore_items to recover instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoFilter: every recoverable item in the trash. Use with care.
daysNoFilter look-back window in days. Defaults to 30.
itemsNoExplicit items to purge. Provide this OR filters.
only_demoNoFilter: only leftover demo / test fixtures.
resolutionNoPass "confirm" after the user agrees, "cancel" to abort. Omit on the first call to get a confirmation prompt.
entity_typeNoFilter: only this entity type.
older_than_daysNoFilter: only items deleted more than N days ago.
Behavior5/5

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

Discloses critical behavioral traits: deletion is irreversible, only touches already-soft-deleted items, cascades to child rows, and returns a confirmation summary. No annotations exist, so description fully covers safety and side effects.

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?

The description is a single well-structured paragraph with clear sentences. It is concise yet comprehensive, covering all necessary information without redundancy.

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?

Given 7 parameters and no output schema, the description is complete: it covers the purpose, filtering options, confirmation workflow, safety constraints, and alternative tools. No gaps are evident.

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 baseline is 3. The description adds significant value by explaining the purpose of each filter (e.g., older_than_days) and the two-phase confirmation process for the resolution parameter. It clarifies that items list or filters must be provided but not both.

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 clearly states the tool's function: 'Permanently and irreversibly delete many soft-deleted items at once (batch purge from the trash).' It distinguishes from the singular 'purge_item' and references 'restore_items' as an alternative for recovery.

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?

Explicitly describes when to use the tool (for batch deletion of already soft-deleted items) and when not to (use restore_items for recovery). Provides detailed workflow: first call returns a confirmation conflict, then user must explicitly agree before passing 'confirm' as resolution.

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/OurThinkTank/founders-os'

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