Skip to main content
Glama

Category Content

category_content

Retrieves and aggregates content from named collections or categories using expressions, with optional glob patterns to target files and override defaults.

Instructions

Get content for a collection or category expression.

Uses the same expression grammar as get_content. An optional pattern overrides default globs for the matched names.

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.

  • expression (required): string

    • Comma-separated collection or category names, each optionally followed by /pattern (for example 'docs', 'docs/*.md', 'docs,examples', or 'review/commit+guide'). Each name is resolved as a collection first, then as a category. Results are aggregated and de-duplicated.

  • pattern: string | null

    • Optional glob pattern to override default patterns for all matched names

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

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for category_content tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • changedInput schema / properties / args / properties / expression / description
      Previous value: -"Category expression (e.g., 'docs', 'docs/api', 'docs/api+guide')"New value: +"Comma-separated collection or category names, each optionally followed by /pattern (for example 'docs', 'docs/*.md', 'docs,examples', or 'review/commit+guide'). Each name is resolved as a collection first, then as a category. Results are aggregated and de-duplicated."
    • changedInput schema / properties / args / properties / pattern / description
      Previous value: -"Optional glob pattern to override category's default patterns"New value: +"Optional glob pattern to override default patterns for all matched names"
    • 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.6/5.0
Behavior3/5

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

With no annotations, the description usefully discloses collection-first resolution, aggregation and de-duplication, global pattern overriding, and opaque session handling. However, read-only behavior remains implicit, and it does not explain output composition, unmatched-name handling, errors, or potential content-size limits.

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?

The purpose and expression relationship are front-loaded, followed by a scannable argument list with useful examples. It is somewhat repetitive of the input schema, and the session_id warning is lengthy, but nearly all of the text supports correct invocation.

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?

The definition provides enough syntax and behavioral detail to invoke a moderately flexible content-retrieval tool correctly, including required and optional arguments. Because there is no output schema, the lack of any return-format description is a notable gap, and no-match or error behavior and the distinction from get_content also remain unspecified.

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?

The argument section covers expression syntax, examples, pattern scope, and session_id handling, making invocation straightforward. Nevertheless, schema description coverage is 100% and this text essentially repeats the structured field descriptions, so it adds little meaning beyond the schema and merits the baseline score.

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 opening sentence gives a specific verb and resource: retrieving content for a collection or category expression. Resolution order, aggregation, and de-duplication further clarify its scope, although referencing get_content only for shared grammar does not distinguish when the two tools differ.

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?

The description establishes the clear use case of retrieving content by collection or category names and supplies concrete expression forms such as 'docs,examples' and 'review/commit+guide'. It also explains pattern overrides and session pass-through, but gives no explicit guidance on when to prefer this tool over get_content or other content siblings.

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