Skip to main content
Glama

Export Content

export_content

Returns rendered content and delivery frontmatter for a client-owned file write, using a destination within configured write paths.

Instructions

Return rendered content and delivery frontmatter for a client-owned file write.

The destination must be covered by configured write paths. Guide neither writes the client file nor records an export or grants new permissions.

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').

  • path (required): string

    • Client-supplied destination within configured allowed write paths. Guide does not select a directory or add an extension.

  • force: boolean

    • Overwrite existing file. Default is create-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": "export_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for export_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: -"Name to match against collections and categories."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 / path / description
      Previous value: -"Output filename. If no directory component, uses resolved export directory. Extension .md added if missing."New value: +"Client-supplied destination within configured allowed write paths. Guide does not select a directory or add an extension."
    • 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
Behavior4/5

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

With no annotations present, the description carries the behavioral burden and does real work: it discloses the permission gate (destination must be in configured write paths) and explicitly states three things it does NOT do — write the client file, record an export, grant permissions. What is missing is failure behavior when the path is outside allowed write paths, and whether the operation has any side effects on server state.

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 three-sentence opening is well front-loaded and tight. However, the '## Arguments' section duplicates all five parameter descriptions verbatim from the input schema, which adds length without adding information and dilutes the useful opening prose.

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?

For a tool with no annotations and no output schema, the definition covers the essentials: what is returned ('rendered content and delivery frontmatter'), the permission boundary, and the non-write guarantee. The main gap is the shape of the returned content and what happens on a path violation, but the core contract is stated.

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 is 3. The arguments block reproduces the schema descriptions verbatim rather than adding meaning, so it earns no credit beyond the schema — though the expression resolution order (collection first, then category, aggregated and de-duplicated) is genuinely useful semantics that also appears in the schema.

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 description names a specific verb and output ('Return rendered content and delivery frontmatter') and scopes it to a client-owned file write. The explicit note that 'Guide neither writes the client file' separates it from write/delivery siblings like send_file_content, though the phrasing is slightly indirect for a first read.

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 implied through constraints: the destination must fall within configured write paths, Guide does not pick a directory or add an extension, and force defaults to create-only. There is no explicit when-to-use-this-vs-alternative statement naming any sibling, so the agent must infer its position relative to get_content or send_file_content.

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