Skip to main content
Glama

docgraph_context

Destructive

Build relevant documentation context for a task or topic by combining governance-aware search, node details, cross-references, and source content in a single call.

Instructions

PRIMARY TOOL. Build relevant documentation context for a task or topic. Composes governance-aware search + node details + cross-references + bounded source content in one call. For a single known document, use docgraph_node instead. For broad queries, set includeContent=false or reduce maxContentBytes (default 2000, hard cap 6000) to avoid large responses; a 10-node query with default settings can produce 20–50 KB of output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allowed_audienceNoFilter to documents available to an audience label. Public documents are included.
analyst_statusNoFilter by research analyst_status.
as_of_dateNoEvaluate effective_date and valid_until against YYYY-MM-DD.
canonical_sourceNoFilter by canonical source marker or value.
claim_idNoFilter by research claim_id.
confidenceNoFilter by research confidence.
formatNoOutput format: summary (default), context_pack for a reviewable evidence pack, or drift_audit for a drift audit report (finding codes: policy.stale_review, policy.superseded_referenced, policy.duplicate, policy.non_canonical, policy.conflicting, research.stale_assessment, research.unverified_evidence, research.competing_interpretations, research.superseded_claim, research.impacted_deliverable; doc.stale_by_git when git history is present; when code_doc is enabled: code.missing_symbol, code.undocumented_export, code.unanchored_feature).
impactDepthNoContext pack impact depth for incoming references (default 1, max 3).
includeContentNoInclude bounded source content for each result (default true)
maxContentBytesNoMax source bytes per result (default 2000, hard cap 6000)
maxNodesNoMax documents to return (default 10)
projectNoWorkspace mode only: scope results to a single project by name (the directory name shown in docgraph_status). Omit to query all projects. No-op in single-store mode.
referenceLimitNoContext pack max incoming/outgoing references per item (default 5, max 20).
sensitivityNoFilter by sensitivity.
source_typeNoFilter by research source_type.
statusNoFilter by governance status.
taskYesDescription of the task/topic to find context for
Behavior4/5

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

Annotations already indicate destructiveHint=true and openWorldHint=true. The description adds behavioral context by warning about potential large responses and suggesting parameter adjustments (includeContent, maxContentBytes) to manage output size. It does not contradict annotations.

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?

The description is concise with two sentences. The first sentence clearly states the primary purpose. The second sentence provides essential usage guidance and a warning about response sizes. No redundant information.

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?

Given the tool's complexity (17 parameters, no output schema), the description provides a high-level overview but lacks detail on governance-awareness, cross-references, and output formats (covered in the schema but not reiterated). Some gaps remain for fully informing the agent.

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 100%, so all parameters have descriptions. The tool description adds limited new parameter information beyond the schema, only implicitly referencing includeContent and maxContentBytes in the size warning. Baseline is 3 for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states 'PRIMARY TOOL. Build relevant documentation context for a task or topic.' It uses a specific verb ('build') and resource ('documentation context'), and distinguishes itself from the sibling tool docgraph_node by advising to use that for a single known document.

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

Usage Guidelines4/5

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

The description gives clear guidance on when to use an alternative ('For a single known document, use docgraph_node instead') and provides advice on configuring parameters to avoid large responses. However, it does not explicitly exclude other sibling tools or mention when not to use this tool beyond that specific case.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Detective-XH/DocGraph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server