Skip to main content
Glama

extract_dir

Extract a Doxygen directory by refid or path to retrieve its contents from XML documentation. Use it to access directory-level docs such as 'src/db/til'.

Instructions

Extract a Doxygen directory (by refid or path such as 'src/db/til').

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": {
      "ref": "<ref>"
    },
    "name": "extract_dir"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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. It says 'Extract' and identifies the resource, which weakly implies a read operation, but does not disclose return shape, side effects, errors, permissions, or whether extraction is read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the action and resource, plus a compact parenthetical example. No filler.

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?

The tool is simple (one required parameter), but it has no annotations and no output schema, so the description is the only source of behavioral information. Purpose and parameter meaning are covered, but return behavior and safety profile are absent.

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 0% for the single 'ref' parameter, so the description must compensate. It does so by explaining that 'ref' may be a refid or a path and gives the example 'src/db/til', which is meaningful guidance beyond 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 pairs a specific verb ('Extract') with a specific resource ('Doxygen directory') and clarifies the accepted ref forms with an example path. It differentiates from siblings implicitly through the directory resource, but does not explicitly route to or away from extract_file/extract_class/etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No when-to-use or when-not guidance, no prerequisites, and no mention of alternatives such as extract_file for files. The implied use case is 'when you need a directory', but the agent must infer that from the resource name.

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