Skip to main content
Glama

Move knowledge base media to the library's trash

colliedesk_kb_media_trash
Idempotent

Move up to 100 library items to the trash by id, each only while no live article's current text names it; each id answers trashed, already_in_trash, in_use or not_found. all_unused with before (when you listed them) instead moves up to 500 unused items a call (kept ones only with include_kept); call again with the batch_id while more is true. Pass the batch_id of an earlier call to add to its batch; colliedesk_kb_media_undelete with it restores the whole batch. Items stay 30 days in the trash, still counting toward storage, and saving an article that names one takes it out.

Needs: kb_media:delete.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "colliedesk_kb_media_trash"
  }
}

Input Schema

NameRequiredDescriptionDefault
beforeNoWith all_unused: only items added before this, such as when you listed them.
batch_idNo
media_idsNo
all_unusedNoMove the unused items instead of media_ids.
include_keptNo

Output Schema

NameRequiredDescriptionDefault
moreNo
resultsNo
trashedNo
batch_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the in-use guard, the four per-id outcomes (trashed, already_in_trash, in_use, not_found), the 100/500 batch caps, the 30-day retention, continued storage accounting, and the side effect that saving an article naming a trashed item revives it. That is exactly the recoverability context the destructiveHint=false annotation implies but does not explain.

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?

Front-loaded with the primary id-based mode, then secondary modes, then retention semantics; nearly every clause carries operational information. It is a dense single paragraph with some run-on punctuation, but there is little filler to cut.

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?

Covers authorization (kb_media:delete), retention, batch continuation, and per-id result semantics, and the output schema handles return shape. The one gap is that it never states that media_ids and all_unused are mutually exclusive or what happens if neither is supplied, leaving required-parameter behavior to inference despite 0 required params.

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

Parameters5/5

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

Schema coverage is only 40%, so the description must carry meaning and it does: it defines media_ids' 100-item cap, explains all_unused paired with before ('when you listed them'), clarifies include_kept ('kept ones only'), and gives batch_id dual semantics (continuation vs. appending to an earlier batch) that the bare schema leaves entirely undocumented.

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 ('Move ... library items to the trash by id') and immediately distinguishes two operating modes (explicit ids vs. all_unused sweep). An agent can tell this apart from siblings like colliedesk_kb_media_undelete and colliedesk_kb_media_purge without opening another schema.

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?

Gives concrete conditional routing: media_ids for targeted moves, all_unused with before for bulk sweeps, and batch_id to continue or extend an earlier batch. It also names colliedesk_kb_media_undelete as the restore path. It stops short of saying when to prefer purge/delete over trash, but the in-scope alternatives are well covered.

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