Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOCS_DIRNoDocuments folder. Can also be set with the CLI flag --docs-dir. Default: ./docs
DOCS_LOG_LEVELNoLog level (stderr). Default: INFO
DOCS_MAX_CHARSNoDefault get_document page size. Default: 8000
DOCS_MAX_FILE_BYTESNoMax file size indexed. Default: 10485760 (10 MB)

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 gives read-only access to an internal document collection (handbooks, policies, runbooks). Recommended workflow:

  1. search_docs with specific keywords to find relevant passages.

  2. get_document on the best doc_id (optionally with section) to read the full text.

  3. Answer from the retrieved text and cite doc_id + section. If nothing relevant is found, say so rather than guessing. Use list_documents to browse what exists.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_documentsA

List the documents available in the knowledge base, with their section headings. Use this to browse or to discover valid doc_ids.

search_docsA

Full-text search across all documents. Returns the most relevant passages ranked by BM25, each with a doc_id, section and snippet. Specific terms work best (product names, error codes, policy names). Follow up with get_document to read the full section before answering.

get_documentA

Retrieve the text of a document, or of one section of it. Long content is paginated: if truncated is true, call again with offset=next_offset.

Prompts

Interactive templates invoked by user choice

NameDescription
answer_from_docsAnswer a question using only the knowledge base, with citations

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 3 tools

Disambiguation5/5

Each tool maps to a distinct retrieval mode: browse the catalog (list_documents), find passages by query (search_docs), and read content (get_document). Descriptions explicitly chain them (search then get_document, list_documents to discover doc_ids), leaving no realistic misselection risk.

Naming Consistency4/5

All three follow a clean verb_noun pattern (list_, search_, get_ + docs/documents). The only wobble is the noun inconsistency between 'docs' and 'documents' as the resource label, which is cosmetic but slightly unpredictable.

Tool Count5/5

Three tools is exactly right for a read-only knowledge-base server: each covers a distinct step of the browse-search-read workflow and none is redundant. Nothing feels missing at the tool-granularity level for this scope.

Completeness4/5

The retrieve lifecycle (enumerate, search, fetch with pagination) is fully covered, so agents won't hit dead ends on read workflows. Gaps are minor and likely out of scope: no write/index operations and no standalone section enumeration beyond headings returned by list_documents.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues