Skip to main content
Glama

extract_struct

Extract a Doxygen struct by refid or qualified name to let AI assistants inspect its documented fields and structure.

Instructions

Extract a Doxygen struct (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_struct"
  }
}

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 behavioral burden, and it discloses almost nothing: no statement that the call is read-only, what the returned extraction contains, or what happens when a ref resolves to nothing or to a non-struct compound. "Extract" weakly implies a read, but that is inference, not disclosure.

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 tight sentence with the resource front-loaded and the parameter forms in a parenthetical; nothing is redundant. It is arguably too terse rather than padded, which the structure dimension should not penalize heavily.

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?

A one-parameter, single-purpose extraction tool is inherently simple, so a short description is defensible. Still, with no output schema and no annotations, the definition says nothing about the returned shape or failure modes, which leaves an agent unable to anticipate results.

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% — the lone "ref" property is an untyped-by-meaning string — but the description compensates by naming the two accepted identifier forms (refid or qualified name), which is real added meaning. It does not say whether a qualified name alone is unambiguous or which form is preferred, leaving the single required parameter only partly specified.

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?

States a specific verb plus resource ("Extract a Doxygen struct") and even the identifier forms accepted, which distinguishes it from extract_class/extract_file by resource type. It stops short of an explicit routing sentence, so an agent must infer that structs go here and classes elsewhere.

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-to-use guidance, and no mention of sibling extractors or get_compounds as an alternative entry point. The only usage hint is that the reference may be a refid or a qualified name, which is really parameter-level information rather than selection guidance.

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