Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RRF_KNoRank-fusion constant.60
WATCHNoWatch the filesystem.false
INDEX_DBNoSQLite file.<WIKI_ROOT>/.llm-wiki/index.db
MODEL_IDNoEmbedding model.Xenova/multilingual-e5-small
RAW_ROOTNoSource layer, read-only.<WIKI_ROOT>/../raw
LOG_LEVELNodebug, info, warn, error, silent.info
MAX_DEPTHNoMaximum folder depth.8
WIKI_ROOTYesWiki root.
ALLOW_WRITENofalse disables all write tools.true
CHUNK_CHARSNoTarget chunk size.1200
IGNORE_GLOBSNoComma-separated extra ignore patterns.
CHUNK_OVERLAPNoOverlap when splitting long sections.180
SCHEMA_STRICTNoReject unknown frontmatter fields.false
MAX_READ_BYTESNoRead size cap.2097152
STRUCTURE_HINTNoInjected into tool descriptions.
MAX_PATH_LENGTHNoMaximum path length.240
MODEL_CACHE_DIRNoModel cache.<INDEX_DB-dir>/models
DEFAULT_CONFIDENCENoDefault for confidence.
ALLOW_REMOTE_MODELSNoAllow download.true

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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
wiki_searchA

Hybrid search over the wiki: BM25 (SQLite FTS5) and local CPU vectors combined with Reciprocal Rank Fusion. Returns the best hit per page with path, heading path, line range, and a frontmatter excerpt. Use mode='bm25' for exact terms, mode='vector' for semantic paraphrases, otherwise 'hybrid'.

wiki_read_pageA

Read a wiki page. With no extra args the full file including frontmatter is returned; section returns that heading's section; startLine/endLine return a line range.

wiki_list_pagesA

List indexed wiki pages with path, id, title, summary, type, status, tags, and updated date. Filterable by folder, type, status, and tag.

wiki_list_foldersA

Show the wiki folder tree with page counts per folder. Call before creating a page so the path matches the existing structure.

wiki_list_tagsA

List all tags used in the wiki with counts, highest first.

raw_listA

List files in the immutable source layer (RAW_ROOT). This layer is strictly read-only.

raw_readB

Read a file from RAW_ROOT, optionally as a line range. There is no write access here.

wiki_write_pageA

Create or fully overwrite a wiki page. The path is deliberately NOT derived by the server: you choose the folder and filename. Missing folders are created automatically. Call wiki_list_folders first so the path matches the existing structure. The YAML header is completed (id, title, type, created, updated); existing fields are kept. An existing file is replaced only with overwrite=true - use wiki_patch_page for partial edits.

wiki_patch_pageB

Change an existing page without rewriting it. Modes: 'replace-section' and 'append-section' (require section with the heading text), 'append', 'prepend', 'replace-body'. Omit mode to update frontmatter only. 'updated' is always refreshed.

wiki_move_pageA

Move or rename a page or a whole folder and rewrite relative Markdown links (id-based wikilinks stay valid). With dryRun=true you get the planned changes without writing anything.

wiki_delete_pageA

Move a page to the trash (.trash//) and drop it from the index. Requires confirm=true. Check wiki_backlinks first to see if other pages link here.

wiki_update_indexA

Create or refresh an index.md catalogue. With no scope this is the root index; with scope it writes /index.md. Entries come from indexed page titles and summaries - keep frontmatter current before calling.

wiki_append_logA

Append an entry in the form '## [YYYY-MM-DD] | ' to log.md at the wiki root. Call after every content change (ingest, update, merge, split, delete, refactor) so history stays chronological.

wiki_read_logA

Return the latest log.md entries, newest first - useful at the start of a session.

wiki_backlinksA

Show which pages link to this page (inbound), where it links (outbound), and which of its links are dead. Call before delete, move, or merge.

wiki_lintA

Check the wiki for frontmatter errors, invalid dates, duplicate ids, dead links, unresolved sources, orphan pages, and empty folders. Nothing is changed - the result is a work list. Folder layout is not judged, only technical limits (depth, path length).

wiki_reindexA

Refresh the search index. 'incremental' (default) processes changed files only; 'full' rebuilds everything. Usually unnecessary because write tools update the index - needed after filesystem changes made outside this server.

wiki_index_statusA

Show index configuration and state: root directories, embedding model and dimension, counts of pages/chunks/tags/links, and last index time. A good first call in a session.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/RickyKleinhempel/mcp-llm-wiki'

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