Skip to main content
Glama

Category Collection Remove

category_collection_remove

Delete a named category or collection from the current project. This action is permanent and may break references from other collections.

Instructions

Remove a category or collection from the current project.

Deletes the specified category or collection by name. This operation cannot be undone. Use with caution as removing a category referenced by collections may cause errors.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • type (required): enum: 'category', 'collection'

    • Type of item to remove

  • name (required): string

    • Name of the item to remove

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": {
      "args": "<args>"
    },
    "name": "category_collection_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for category_collection_remove tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the two most important behaviors for a delete: 'This operation cannot be undone' and the dangling-reference error risk. It does not cover permission requirements or what happens to content inside the removed item, which keeps it from a 5.

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 purpose and irreversibility warning are correctly front-loaded, but the Arguments block duplicates structured schema content line for line, padding the definition without adding information.

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 simple one-argument destructive tool with no output schema and no annotations, the description covers intent, irreversibility and reference risk. It stops short of describing the outcome (e.g., whether contained documents or collections are orphaned), which is the one remaining gap an agent would care about.

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 description coverage is 100% and the '## Arguments' section restates the schema text nearly verbatim (including the session_id blurb), adding no new meaning such as name-matching rules, case sensitivity, or whether a fully qualified path is accepted.

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 and resource ('Remove a category or collection from the current project') and the enum-qualified target makes it unambiguous against siblings like category_collection_add, category_collection_update and document_remove.

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

Usage Guidelines3/5

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

It offers a caution ('Use with caution as removing a category referenced by collections may cause errors') but gives no explicit routing guidance such as when to prefer category_collection_update or how to check for referencing collections first. Usage is implied rather than instructed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.