docs-search
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DOCS_DIR | No | Path to the folder of Markdown documentation to index. Alternatively, the path can be passed as a positional command-line argument (e.g. `node dist/index.js /path/to/docs`). If neither is provided, the server serves `./corpus`. | ./corpus |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_documentsA | List every indexed markdown document with its title and number of sections. |
| search_docsA | BM25 keyword search over documentation sections. Returns section ids usable with read_section. |
| read_sectionA | Return the full text of one section by id, e.g. 'query-params.md#defaults'. |
| answer_questionA | Retrieve the top-k sections for a question and answer with numbered citations. Uses MCP sampling when the client supports it; otherwise returns the grounded context for the caller's model. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
List, search, and read operate on clearly different granularities (corpus, section index, single section) and are easy to distinguish. answer_question is a composite that overlaps with search_docs for retrieval, but its citation/synthesis behavior makes its niche clear enough.
All four tools use a consistent verb_noun snake_case pattern (list_documents, search_docs, read_section, answer_question). Verb choices map predictably to the operation performed.
Four tools is a tight, well-scoped surface for a read-only documentation search server. Each tool covers a distinct retrieval step and none feels redundant or missing.
The discover-search-read-answer lifecycle is fully covered for a read-only docs server. Minor gaps exist (no document-level metadata fetch or stats beyond section count, no filtering by path/tag), but agents can work around these with search_docs.