Skip to main content
Glama

Category Collection Add

category_collection_add

Create a category with its directory and file patterns, or a collection grouping multiple categories, in the current project.

Instructions

Add a new category or collection to the current project.

Creates a category with directory and file patterns, or a collection grouping multiple categories. Category-specific fields (dir, patterns) and collection-specific fields (categories) are validated based on the type parameter.

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 add

  • name (required): string

    • Name to create

  • description: string | null

    • Optional description

  • dir: string | null

    • Directory path (category only)

  • patterns: array[string] | null

    • File patterns (category only)

  • categories: array[string] | null

    • Category expressions (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_add"
  }
}

Input Schema

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

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses little beyond the fact that fields are 'validated based on the type parameter'. It says nothing about what happens on duplicate names, whether partial creation can occur, what permissions are required, whether the operation is reversible, or what the call returns. For a mutation tool with zero annotation coverage, this is a significant shortfall.

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 opening purpose sentences are well front-loaded and waste no words. However, the Arguments block largely duplicates the input schema verbatim, including the lengthy session_id paragraph, which is the kind of repetition that structured fields already carry. Trimming that block would leave a tighter definition.

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?

With a nested args object of seven fields, an enum type switch, and no output schema, the description covers the parameter space adequately and explains the type-gated validation. What is missing is outcome information an agent would need before mutating project state: duplicate handling, failure modes, and confirmation of what is created. Reasonable but not complete for a nested-parameter mutation tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by stating that dir/patterns and categories are conditionally validated against the type value — a cross-parameter dependency the schema does not express. It also repeats each parameter's purpose cleanly. It does not explain pattern syntax or category expression format, which would be needed for a 5.

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?

The first sentence names a specific verb and resource ('Add a new category or collection') and scopes it to 'the current project'. The second sentence clarifies the two modes (category with dir/patterns vs collection with categories), which is genuinely differentiating. It stops short of contrasting itself with sibling tools like category_collection_update or category_collection_change, 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 Guidelines3/5

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

Usage is only implied: 'Add a new' signals creation as opposed to update, and the session_id text implies a set_project call must precede it. There is no explicit guidance on when to choose this over category_collection_update for an existing item, and no stated prerequisites or exclusions. Adequate but with clear gaps for an agent choosing among six category_collection_* siblings.

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