Skip to main content
Glama

Get Content

get_content

Retrieve and aggregate Guide-rendered content from collections and categories by resolving comma-separated expressions, with optional glob patterns to filter files and override category defaults.

Instructions

Get content from collections and categories.

Resolves comma-separated expressions, searching collections first then categories. Use pattern to override matched category globs. Returns Guide-rendered content.

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 filter files (e.g., '*.md'). Overrides default patterns for all matched categories.

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": "get_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for get_content tool. Provides unified access to content by searching both collections and categories.

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: -"Name to match against collections and categories. Searches collections first, then categories. Aggregates and de-duplicates results from all matches."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."
    • removedInput schema / properties / args / properties / force
      Removed value: -{
      -  "default": false,
      -  "description": "If True, return full content even if exported. If False (default), return reference to exported content when available.",
      -  "type": "boolean"
      -}
    • 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.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose real behavior: resolution order, result aggregation and de-duplication, glob override semantics, and that output is Guide-rendered content. It omits what happens when a name matches nothing, whether the call is strictly read-only, any size or rate limits, and what 'Guide-rendered' concretely means.

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 three sentences are front-loaded and efficient, but the Arguments section duplicates the input schema word-for-word, including the full session_id warning, adding length without new information. Roughly half the description is redundant with structured fields.

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 tool takes a single nested args object with one required field, has no output schema, and no annotations; against that modest complexity the description covers resolution order, glob override, de-duplication, and return type. The remaining gap is error/empty-result behavior and the meaning of 'Guide-rendered', which keeps it from a 5.

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 schema already documents expression, pattern, and session_id in full, and the description's Arguments block restates that text almost verbatim rather than adding meaning. The example expressions ('docs/*.md', 'review/commit+guide') are useful but already present in the schema, so baseline 3 applies.

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 states a specific verb and resource (get content from collections and categories), and the following sentences add the resolution model: comma-separated expressions resolved as collections first, then categories. It does not explicitly distinguish itself from look-alike siblings such as category_content or export_content, so it stops short of 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?

There is implied usage guidance in the resolution rules ('searching collections first then categories', 'Use pattern to override matched category globs'), which tells an agent how the tool behaves when called. However, there is no statement of when to prefer this tool over category_content, export_content, or read_resource, and no preconditions or failure conditions are given.

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