Skip to main content
Glama

Take knowledge base media out of the library's trash

colliedesk_kb_media_undelete
Idempotent

Take up to 100 items out of the library's trash by id, or every item of a batch_id from colliedesk_kb_media_trash (its Undo). Each id answers restored, not_in_trash or not_found.

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_undelete"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idNo
media_idsNo

Output Schema

NameRequiredDescriptionDefault
resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the restorative, non-destructive character is covered. The description adds real value with the 100-item cap, the per-id outcome vocabulary (restored / not_in_trash / not_found) and the required scope kb_media:delete. However, with annotations doing much of the work, this lands at a modest 3.

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?

Three short sentences, front-loaded with the action and the two modes, followed by the outcome list and the permission requirement. The '(its Undo)' parenthetical and the scope line are compact; nothing is wasted, though it reads as a dense run-on of clauses.

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 2-parameter restorative tool with annotations and an output schema, this covers what an agent needs: how to select items, the item cap, the permission scope, and the per-id result values. Return-format detail is legitimately left to the output schema.

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% and both parameters are optional, so the description must carry the load — and it does name both selection modes and the 100 cap, mapping them to the schema properties. It does not clarify whether media_ids and batch_id may be combined, nor what happens on an empty body, so partial compensation only.

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 ('Take ... items out of the library's trash') and explicitly defines the two operating modes (by media id, up to 100, or by batch_id). It also names the sibling it reverses (colliedesk_kb_media_trash) so the agent can distinguish it from trash/purge operations without opening the 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?

The description makes clear this is the Undo for colliedesk_kb_media_trash and that either per-id or per-batch restoration is possible, which is enough context to choose this over the trash and purge siblings. It stops short of explicitly ruling out purge (permanent deletion) or stating the mutual exclusivity/at-least-one requirement for the two optional parameters.

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