Skip to main content
Glama

Category Collection Update

category_collection_update

Incrementally add or remove patterns from a category or category references from a collection without replacing the full list.

Instructions

Update category or collection incrementally.

Add or remove individual patterns (for categories) or category references (for collections) without replacing the entire list. For complete property replacement, use category_collection_change.

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 update

  • name (required): string

    • Name to update

  • add_patterns: array[string] | null

    • Patterns to add (category only)

  • remove_patterns: array[string] | null

    • Patterns to remove (category only)

  • add_categories: array[string] | null

    • Categories to add (collection only)

  • remove_categories: array[string] | null

    • Categories to remove (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_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for category_collection_update 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.3/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 load, and it does state the key behavioral trait — incremental add/remove rather than wholesale replacement — plus pass-through session_id semantics. It still omits failure behavior (nonexistent name, duplicate entries, idempotency of adds) and what the response confirms, which matters for a mutation with no annotation safety profile.

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?

Front-loaded summary sentence followed by a structured argument list; the addition-vs-replacement distinction appears before any parameter detail. Mildly redundant in restating the schema, but the layout is easy to scan and no sentence is filler.

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?

Covers all seven nested arguments, their type-scoping, and the sibling alternative, which is sufficient for a mutation tool with no output schema. The remaining gap is behavioral edge cases — what happens on missing names, conflicts, or partially applied updates — which the description does not address.

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%, so the baseline applies; the description's argument list largely mirrors the schema descriptions, including the same 'category only' / 'collection only' qualifiers. It adds no syntax or format detail (e.g., pattern grammar, duplicate handling, whether add and remove may be combined in one call) beyond structured fields.

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 ('Update category or collection incrementally') and immediately explains the unit of change: individual patterns for categories, category references for collections, explicitly contrasted with whole-list replacement. An agent can distinguish it from category_collection_change from the text alone.

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?

Gives an explicit routing rule: 'For complete property replacement, use category_collection_change.' It also scopes parameters by type ('category only' / 'collection only'), so the agent knows which arguments apply in which mode.

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