Skip to main content
Glama

extract_class

Extract a Doxygen class from XML documentation using its reference ID or qualified name, so AI assistants can retrieve class details by identifier.

Instructions

Extract a Doxygen class (by refid or qualified name).

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

Input Schema

NameRequiredDescriptionDefault
refYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 burden and does not meet it. It never says what the extraction returns (full class body, member list, inheritance), how it behaves on an unknown or ambiguous ref, or whether it is a read-only lookup over an existing index.

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?

One short sentence, front-loaded with the verb and resource, with zero filler. It is efficient, though its brevity borders on under-specification given the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, no annotations, and an undescribed parameter, the definition is too thin for an extraction tool: an agent cannot tell what it will receive back or how failures manifest. Only the input format hint partially fills the gap.

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 coverage is 0% and the single parameter is bare, so the description must compensate. "by refid or qualified name" is genuinely useful — it reveals that ref accepts two distinct identifier formats — but no concrete syntax or example of either is given, leaving the agent to guess separators and escaping.

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?

Names a specific verb ("Extract") and a specific resource ("a Doxygen class"), and the sibling set (extract_dir, extract_file, extract_namespace, extract_struct) makes the resource distinction meaningful. It does not explicitly contrast with extract_struct, but the resource is unambiguous.

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?

There is no statement of when to choose this over extract_struct or get_compounds, nor any prerequisite (e.g., that the Doxygen index must already be parsed). The only usage hint is the parenthetical about accepted ref forms, which is about input, not selection.

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