Skip to main content
Glama

Delete knowledge base media in the trash for good

colliedesk_kb_media_purge
DestructiveIdempotent

Delete for good up to 100 items that are in the library's trash, with their files, freeing their storage now instead of after 30 days. Each id answers purged, not_in_trash, not_found, or in_use: the help center shows it as its logo or favicon (usage.help_center), so it stays in the trash until colliedesk_help_center_theme_update names another image. An item a replacement not undone keeps as its earlier version refuses the whole call (conflict, naming the articles and the replacement_id): undo it with colliedesk_kb_media_replace_undo first. This cannot be undone: articles in the trash and older versions that named one show "Media no longer exists".

Needs: kb_media:purge.

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": {
      "media_ids": "<media_ids>"
    },
    "name": "colliedesk_kb_media_purge"
  }
}

Input Schema

NameRequiredDescriptionDefault
media_idsYes

Output Schema

NameRequiredDescriptionDefault
resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true, and the description adds substantially more: per-id outcome codes (purged, not_in_trash, not_found, in_use), all-or-nothing conflict behavior naming articles and replacement_id, the irreversibility with the exact 'Media no longer exists' fallout in articles, and the required kb_media:purge scope.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence and the final permission/cannot-be-undone lines are well placed and front-loaded, but the middle clause ('An item a replacement not undone keeps as its earlier version refuses the whole call') is grammatically tangled and forces a re-read. The usage.help_center aside is valuable yet delivered in a hard-to-parse sentence.

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 batch operation it covers irreversibility, conflict semantics, permission scope, and the blocked help-center case, and it names the sibling needed to unblock. With an output schema present it needn't enumerate return values, though the per-id code list is a useful addition rather than a gap-filler.

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 coverage is 0%, so the description must carry the load. It clarifies that ids must reference items already in the trash and what each id can return, but it adds nothing about the UUID format, ordering, or duplicate handling beyond what the schema's pattern and maxItems already express; the batch cap of 100 is a restatement of maxItems.

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 states a specific verb (permanently delete), a specific resource (media items currently in the library's trash), a batch cap (up to 100), and the effect (frees storage now instead of after 30 days). It is clearly distinguished from the trash/undelete siblings by the 'in the library's trash' scoping and the 'for good' framing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit preconditions (items must already be in trash) and routes two edge cases to named siblings: help-center logo/favicon items to colliedesk_help_center_theme_update, and blocked items to colliedesk_kb_media_replace_undo. It never states the inverse routing ('use colliedesk_kb_media_trash to move items to trash first'), which keeps it short of a full when/when-not map.

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