Skip to main content
Glama

Category Collection Change

category_collection_change

Replace entire property values for an existing category or collection—name, description, directory, patterns, or categories—when you need to change definitions, not incrementally update them.

Instructions

Change properties of an existing category or collection.

Replaces entire property values (name, description, directory, patterns, or categories). For incremental updates (adding/removing patterns or categories), use category_collection_update instead.

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 modify

  • name (required): string

    • Name to modify

  • new_name: string | null

    • New name

  • new_description: string | null

    • New description

  • new_dir: string | null

    • New directory path (category only)

  • new_patterns: array[string] | null

    • New file patterns (category only)

  • new_categories: array[string] | null

    • New category list (collection only)

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

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for category_collection_change 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

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden, and it does disclose the critical trait that values are replaced wholesale rather than merged. It also flags field applicability by type (new_dir/new_patterns category-only, new_categories collection-only). Gaps remain: it never says whether null/omitted fields are preserved or cleared, nor whether the target must already exist or what error results.

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 two opening sentences are front-loaded and earn their place. The subsequent Arguments block, however, is a near-verbatim duplicate of the input schema and inflates the definition without adding information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the replacement-vs-incremental distinction well for a mutation tool, and no output schema exists so return values need not be described. But with no annotations, the description should still resolve the null-vs-clear ambiguity and the precondition that the item exists — both are left to inference.

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%, so the schema already documents every argument including the category-only/collection-only constraints. The Arguments section restates those descriptions verbatim and adds no new semantics, so baseline 3 applies.

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-plus-resource ("Change properties of an existing category or collection") and immediately distinguishes itself from the sibling that does partial edits. An agent can pick between this and category_collection_update without opening either schema.

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

Usage Guidelines5/5

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

Explicit routing rule: use this for wholesale replacement of property values, use category_collection_update for incremental add/remove of patterns or categories. The condition that selects the alternative is named directly.

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