Skip to main content
Glama

index_docs

Index markdown documentation files into graph nodes with edges linking sections to code symbols. Supports incremental updates.

Instructions

Discover and index all markdown documentation files (README, ADRs, guides, CHANGELOG, ARCHITECTURE) under the workspace root into DOCUMENT and SECTION graph nodes. Supports incremental mode (skips unchanged files). Emits DOC_DESCRIBES edges linking sections to the code symbols they mention.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceRootNoWorkspace root path (defaults to active session context)
projectIdNoProject ID (defaults to active session context)
incrementalNoSkip files whose hash has not changed (default: true)
withEmbeddingsNoAlso embed section content into Qdrant vector store
Behavior4/5

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

With no annotations, the description takes on full disclosure duty. It explains indexing creates graph nodes and edges, and supports incremental mode. However, it does not mention whether the operation is destructive or requires permissions, which is a notable gap.

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?

Two concise sentences with key information front-loaded. No unnecessary words, and each sentence adds value: first states purpose and scope, second adds behavioral detail and output edges.

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?

Given no output schema, the description adequately covers what the tool produces (graph nodes and edges). It lacks details on prerequisites, error handling, or return values, but with high schema coverage, it is mostly complete for its complexity.

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 description reiterates the incremental parameter and embedding option but does not add meaning beyond the schema's own descriptions. Thus, no extra value.

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 the tool discovers and indexes markdown documentation files into graph nodes, listing specific file types (README, ADRs, etc.) and the output edges. This clearly differentiates it from sibling tools like search_docs or graph_query.

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?

The description mentions incremental mode but does not provide explicit guidance on when to use this tool versus alternatives like graph_rebuild. There is no when-not or comparison to siblings, leaving the agent to infer usage context.

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/lexCoder2/lxDIG-MCP'

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