Skip to main content
Glama

Restore a knowledge base collection from the trash

colliedesk_kb_collection_undelete

Take a collection out of the trash (pass the updated_at colliedesk_kb_collections_trash shows). Refused while its parent is in the trash, or when a sibling took its slug.

Needs: kb_articles:delete.

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": {
      "collection_id": "<collection_id>",
      "updated_at": "<updated_at>"
    },
    "name": "colliedesk_kb_collection_undelete"
  }
}

Input Schema

NameRequiredDescriptionDefault
updated_atYesThe updated_at as you last read it. If someone saved it since, nothing changes and you are told to read it again.
collection_idYesFrom colliedesk_kb_collections_list.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / description
      Added value: +"Same shape as colliedesk_kb_collection_create's output."
    • removedOutput schema / properties
      Removed value: -{
      -  "collection": {
      -    "properties": {
      -      "article_count": {
      -        "type": "integer"
      -      },
      -      "deleted_at": {
      -        "type": "string"
      -      },
      -      "deleted_by": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "description": {
      -        "type": "string"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "parent_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "position": {
      -        "type": "integer"
      -      },
      -      "purges_at": {
      -        "type": "string"
      -      },
      -      "slug": {
      -        "type": "string"
      -      },
      -      "translations": {
      -        "description": "Its name and description in the help center's other languages (colliedesk_kb_collection_translation_set).",
      -        "items": {
      -          "properties": {
      -            "description": {
      -              "type": "string"
      -            },
      -            "imported": {
      -              "type": "boolean"
      -            },
      -            "locale": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "updated_at": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "parent_id",
      -      "name",
      -      "slug",
      -      "description",
      -      "position",
      -      "article_count",
      -      "updated_at"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "collection"
      -]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a non-readOnly, non-destructive, non-idempotent, open-world mutation, and the description adds real value on top: the required kb_articles:delete scope and two refusal conditions an agent would otherwise only discover at runtime. The optimistic-concurrency behavior is partly described, but the description doesn't say what a successful restore returns or whether it re-enables child articles.

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 short sentences plus a terse dependency note, with the core action front-loaded and the caveats after it. Every clause adds information; nothing is padding.

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?

Given an output schema exists, the description needn't explain return values, and it covers the permission requirement, the stale-timestamp guard, and the two blocking conditions. Slightly incomplete on what a successful restore does to the collection's contents and on whether the call is safe to retry after a refusal.

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 100% and the schema itself explains both parameters, including the concurrency-mismatch behavior of updated_at. The description adds only the provenance detail that the updated_at value comes from colliedesk_kb_collections_trash, which is useful but marginal. Baseline 3 is appropriate when the schema carries the semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb+resource: 'Take a collection out of the trash', which is unambiguous against the sibling undelete tools for articles, media, and translations. It also points to colliedesk_kb_collections_trash as the source of the updated_at, implicitly routing the agent to the right prior step. It does not explicitly contrast itself with siblings beyond the resource name, so a 4 rather than a 5.

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 clear preconditions for a successful call: the parent must not be in the trash and no sibling may have taken the slug, plus the required permission. It explains the blocked cases rather than just the happy path. What's absent is an explicit instruction on what to do when refused (e.g. restore the parent first), leaving the recovery path to inference.

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