Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HF_ENDPOINTNoHuggingFace mirror endpoint, used when downloading local rerank models (e.g., https://hf-mirror.com).
BRAIN_LLM_API_KEYNoAPI key for the LLM provider. Overrides the [llm] section in config.toml.
BRAIN_EMBED_API_KEYNoAPI key for the embedding provider. Overrides the [embed] section in config.toml.

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
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
brain_searchA

Search the personal knowledge base with hybrid retrieval (vector similarity fused with BM25 keyword matching). Behavior: returns up to k ranked excerpts, each with file path, heading breadcrumb and similarity score; no LLM call is made. Usage: reach for this when you need source material to quote, verify a claim, or see what exists on a topic; use brain_ask when you want a synthesized answer instead. Results are limited to the indexed sources — run brain_ingest first if recent files are missing.

brain_askA

Ask the knowledge base a question. Behavior: retrieves the most relevant excerpts, then an LLM synthesizes an answer grounded ONLY in them, ending with [source: path > section] citations. Usage: prefer this over brain_search whenever a question needs synthesis or an explanation; set verify=true to get a claim-by-claim audit (supported / partial / unsupported) when accuracy matters more than speed.

brain_linksA

Show the Obsidian-style [[wikilink]] graph around a note. Behavior: lists every note the given note links to (outbound) and every note that links back to it (inbound), based on the current index. Usage: use to explore how a topic connects to others before asking questions, or to find related notes when search keywords fail.

brain_statsA

Report what the index currently contains. Behavior: returns the store path, total chunk count, chunk count per source file, the embedding and chat models in use, and retrieval settings (hybrid, rrf_k, top_k). Reads local metadata only — no LLM or embedding calls. Usage: call before searching to see what is indexed, after brain_ingest to confirm what changed, or whenever answers seem to be missing a file you expected to be there. Takes no parameters.

brain_wikiA

Generate a wiki page about a topic by distilling everything the index knows into one curated, cross-linked markdown page. Behavior: retrieves up to k source excerpts, an LLM synthesizes a structured page, and the page is written to the wiki directory and indexed immediately (loci's memory-consolidation layer). Requires a working LLM. Usage: use when scattered notes about a topic should become one stable, searchable page; regenerate the same topic to update it.

brain_rememberA

Store a durable memory (decision, fact, preference, lesson learned) into the shared knowledge base. Behavior: writes a markdown note with frontmatter tags into the memories directory and indexes it immediately, so it is searchable within the same call. Memories persist across sessions and are shared by every MCP host that mounts loci — write from one IDE, recall from any other with brain_search or brain_ask. Usage: use for decisions, facts, preferences and lessons worth recording; do not use for ephemeral chit-chat.

brain_graphA

Query the knowledge graph over memories and wiki pages. Behavior: with an entity, returns its outgoing/incoming relations (each cites its source file); without one, returns the top hub entities. The graph is built from loci graph build (LLM-extracted triples in graph.json). Usage: explore how concepts connect before asking questions; see the strongest entities for orientation.

brain_state_saveA

Save structured state (task snapshot, entity record) under an exact key - retrieved later by key, never by semantic search. This is the right place for task state an agent must resume precisely; free-text knowledge belongs in brain_remember. data is stored verbatim as JSON (object or array, max 256 KiB); saving again with the same type+key overwrites.

brain_state_getA

Fetch one structured record by exact type+key - no embedding, no ranking, no dilution by similar-but-irrelevant content. Use this to resume a task or read entity state saved with brain_state_save.

brain_state_listA

List saved structured records (newest first), optionally only those whose type starts with type_prefix. Use it to discover ids before an exact brain_state_get.

brain_state_deleteC

Delete one structured record by exact type+key.

brain_memory_healthA

Report which memory notes are earning their keep: times cited by searches/answers, corrections (bad feedback), age, and flags for review (corrected, never-cited). Use it before brain_forget to prune dead weight with evidence instead of guessing.

brain_forgetA

Retract memories that are wrong or outdated. Behavior: memory notes matching the query move to a .trash folder (recoverable by hand) and their chunks leave the index immediately; nothing is permanently destroyed. Usage: use when a remembered fact was superseded or was a mistake; check with brain_search first if you are unsure what matches.

brain_ingestA

Incrementally (re)index the configured source directories. Safe to call repeatedly; only changed files are re-embedded.

brain_harnessA

Harness memory hub: per-AI-tool (zcode, codex, ...) memory stats, or refresh each one's auto-summary note into the shared memory pool. Unchanged harnesses cost nothing.

brain_governanceA

Read-only lifecycle scan of the configured sources. Reports notes whose frontmatter marks them superseded but which are still indexed, duplicate active notes sharing one title, supersedes: links pointing at missing notes, and old notes that were never cited. Nothing is changed; retire explicitly with brain_forget. Run this when answers look plausible but outdated.

brain_qualityA

Retrieval health from the query log: zero-hit rate, average hits and latency, bad-answer rate from feedback, plus drift against a pinned baseline. Use action=pin on a known-good day, then action=report to see whether quality slid.

Prompts

Interactive templates invoked by user choice

NameDescription
brain-briefingA structured briefing on a topic from your own notes.
study-planTurn scattered notes on a topic into a learning plan.
contradiction-checkFind contradictions and stale claims across your notes.

Resources

Contextual data attached and managed by the client

NameDescription
index-statsWhat is in the index: chunks per source, models, settings.

TDQS

A3.8/5.0

Scored across 17 tools

Disambiguation4/5

Core operations (ask/search/remember/forget/ingest/wiki) are cleanly separated and the descriptions explicitly disambiguate ask-vs-search and remember-vs-state_save. However, the diagnostics cluster (brain_stats, brain_memory_health, brain_quality, brain_governance) overlaps—memory_health and governance both flag never-cited notes—and brain_links vs brain_graph both promise 'explore how concepts connect', which can cause misselection.

Naming Consistency4/5

Every tool uses a uniform brain_ + snake_case pattern, which is highly predictable. The only deviation is grammatical: some are verbs (brain_ask, brain_search, brain_ingest) while others are bare nouns (brain_stats, brain_graph, brain_quality) or noun_verb (brain_state_save), but all remain readable and grouped by family.

Tool Count4/5

17 tools is slightly heavy but justified by the scope: knowledge lifecycle, a full four-tool state CRUD family, and a rich diagnostic/governance layer. No tool looks obviously redundant enough to remove, though the four reporting tools could arguably be consolidated.

Completeness5/5

The domain is well covered end-to-end: ingest, hybrid search, synthesized answers, memory write/retract, consolidation via wiki, graph/link exploration, plus full save/get/list/delete state management and quality/governance diagnostics. The only minor gap is reading a raw note by path rather than via search, which is workable around.

Maintenance

ActivityActive
ResponsivenessLimited data