Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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

Tools

Functions exposed to the LLM to take actions

NameDescription
searchA

Recall relevant knowledge by ranked keyword and semantic (hybrid) relevance. Returns ranked results with heading, snippet, matched terms, level, parent, and sectionType. Sections from the same document receive a sibling score boost when multiple sections match. Use multiple short keyword queries for best coverage. Use recall for full content. A retrieval_verdict of "unanswered" means kbdb does not have it: investigate, do not guess.

learnA

Store durable knowledge in the agent's second brain. Store decisions, corrections, and facts that cost real effort to find. Do not store what the code or docs already say, chat summaries, guesses, or secrets. When a stored fact is wrong, fix it with revise, not a second copy. Structured content (Markdown, HTML, TOML) splits into sections sharing a docid, each carrying a level and a parent. Attach tags for scoping. replace matches on title within its document and heading path; a title with neither matches on title alone, so name things distinctly.

unlearnA

Remove a section from the knowledge base by its kb-id, or an entire document (and its member sections) by docid.

retrieveA

Low-level fetch of a section or document by identifier. For AI agent workflows, prefer recall which includes metadata, context, and back-references.

recallA

Expand remembered context after search. Retrieves full content and context for sections by identifier, returning section text, level, parent, metadata, references, and back-references. Call it on the kbids search returned. Use maxTokens to bound the payload, and format: compact when you only need the content.

statusA

Get knowledge base status including document count, section count, index size, and cache statistics.

contentB

Compose a rendered Markdown document from one or more kbid or docid identifiers.

checkA

Verify the integrity of the knowledge base. Reports checksum mismatches, orphan sections, broken references, and circular reference chains.

gcA

Remove unreferenced sections from the knowledge base. A section is eligible when no document manifest references it.

rebuildA

Reconstruct all index files from section files and document manifests on disk. Use this to recover from index corruption.

exportA

Export the knowledge base as a self-contained directory snapshot (sections, documents, catalog -- no indexes).

skill-learnA

Shorthand for learn with sectionType: skill. Skills are prompt templates; use {{argName}} placeholders for arguments. Deprecated; removal in 2.0.0.

skill-searchA

Shorthand for search with sectionType: skill. Deprecated; removal in 2.0.0.

skill-unlearnA

Shorthand for unlearn with sectionType: skill. Deprecated; removal in 2.0.0.

skill-recallA

Shorthand for recall with sectionType: skill. Deprecated; removal in 2.0.0.

skill-contentC

Shorthand for content with sectionType: skill. Deprecated; removal in 2.0.0.

agent-learnB

Shorthand for learn with sectionType: agent. The content is the persona text. Deprecated; removal in 2.0.0.

agent-searchA

Shorthand for search with sectionType: agent. Deprecated; removal in 2.0.0.

agent-unlearnB

Shorthand for unlearn with sectionType: agent. Deprecated; removal in 2.0.0.

agent-recallA

Shorthand for recall with sectionType: agent. Deprecated; removal in 2.0.0.

agent-contentB

Shorthand for content with sectionType: agent. Deprecated; removal in 2.0.0.

auto-capture-reviewA

Propose knowledge for storage and let the user confirm it, when the host supports elicitation.

save_evalsA

Validate and persist retrieval eval cases drafted via the eval-generate prompt. Rejects cases whose kbids do not resolve, and drops duplicates. Call it only with kbids a search actually returned; invented ids fail the whole batch.

reviseA

When a stored fact is wrong, fix it with revise, not a second copy. Content addressing means the correction gets a NEW kb-id. The old one is retired, not deleted: it stops appearing in search, still reads by kb-id, and "history" walks between them. Fields you omit keep their existing values.

historyA

List every revision of a section, oldest first, and name the current one. Call it when a kb-id you hold no longer appears in search: revisions are retired, not deleted, so a stale kb-id still leads to the text that replaced it. A section revised once has two revisions; one never revised has one.

neighbourhoodA

List what relates to a section and HOW, so you can decide what to read next. Eight relations: supersedes, superseded-by, parent, child, sibling, references, referenced-by, similar. Seven are recorded facts; only "similar" is inferred from a cosine. Related is not relevant -- judge these against your task.

consolidateA

Propose groups of stored sections that could become one, so a knowledge base of twenty overlapping notes can become a few good ones. Proposes ONLY -- nothing is merged. Each group reports its weakest link. Without an entailment judge kbdb CANNOT tell whether a group disagrees with itself; read every section before merging it.

contradictionsA

Report pairs of stored sections covering the same ground, to read together before trusting either. Similarity finds pairs; it cannot judge agreement. Without an entailment model every pair reads "related", and no "contradicts" means nothing was asked, not that nothing conflicts.

gapsA

Report what this knowledge base is repeatedly asked and answers badly, worst first. Call it to decide what to learn next. Ranking is triage, not measurement: the log records how each search went, never whether the answer helped.

mark_resultA

Record whether a recalled section answered a query. Accumulates real usage into an eval dataset. Call it once you know whether a result helped, including when it did not -- a wrong answer is the more useful judgement.

Prompts

Interactive templates invoked by user choice

NameDescription
eval-generateDraft retrieval eval cases for stored sections, in kbdb schema
rememberReview this session and propose what is worth storing in kbdb
memory-protocolGuidelines for what to store in this knowledge base and when. Read this before using the learn tool.
query-guidanceHow to effectively search this knowledge base. Read this before issuing search queries.

Resources

Contextual data attached and managed by the client

NameDescription
memory-protocolGuidelines for what to store in this knowledge base and when. Read this before using the learn tool.
query-guidanceHow to effectively search this knowledge base. Read this before issuing search queries.

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/diko316/knowledge-base-db'

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