Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTNoPostgreSQL host (required if DB_BACKEND=postgres)
DB_NAMENoPostgreSQL database name (required if DB_BACKEND=postgres)
DB_PORTNoPostgreSQL port (required if DB_BACKEND=postgres)
DB_USERNoPostgreSQL user (required if DB_BACKEND=postgres)
DB_BACKENDNoDatabase backend: sqlite or postgres. Default: sqlitesqlite
LORE_RRF_KNoRRF constant for hybrid search. Default: 1010
DB_PASSWORDNoPostgreSQL password (required if DB_BACKEND=postgres)
LORE_EMBEDDING_MODELNoModel for embeddings. Default: all-MiniLM-L6-v2all-MiniLM-L6-v2
LORE_SEMANTIC_SEARCHNoMaster switch to enable semantic search (true/false). Default: falsefalse

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
kb_addC

Add a knowledge base entry

kb_searchA

Search knowledge base. Lexical FTS5 (or LIKE fallback) by default; set semantic=true / hybrid=true / search_mode=hybrid to use vector embeddings + RRF fusion (requires LORE_SEMANTIC_SEARCH=true).

kb_getA

Get full KB entry by ID

kb_listB

List KB entries

kb_updateB

Update existing KB entry content and metadata

kb_deleteB

Delete existing KB entry from database

investigation_addC

Add an investigation entry (open or append to an ops investigation)

investigation_listC

List investigations

investigation_getC

Get a single investigation entry by ID

investigation_log_experimentB

Log a structured experiment within an investigation (hypothesis, methodology, results, conclusion)

investigation_list_experimentsA

List logged investigation experiments

journal_appendD

Append journal entry

journal_listC

List journal entries

journal_getC

Get journal entry

snapshot_configC

Snapshot current config

kb_ingest_docB

Ingest single markdown file into KB with change detection

kb_ingest_dirC

Batch ingest directory of markdown files

kb_sync_statusB

Check sync state between source docs and KB

kb_backfill_embeddingsA

Embed any KB entries that are missing or stale (model/content changed). Idempotent: skips entries whose stored content_hash still matches. Requires LORE_SEMANTIC_SEARCH=true.

kb_embedding_statusA

Report embedding coverage: total entries, embedded count, missing count, current model, and per-model breakdown.

mcp_index_scanB

Scan all MCP servers and index their tools. By default, scans only configured servers (66% token savings).

mcp_index_searchC

Search for MCP tools by description/capability

mcp_index_get_serverA

Get all tools for a specific MCP server

mcp_index_get_toolB

Get detailed information about a specific tool

mcp_index_rebuildC

Force rebuild of entire MCP index (same as mcp_index_scan)

search_localC

Search local files by content (lexical mode)

search_corporaB

Search across corpus manifests (JSONL files)

search_transcriptsC

Search transcript segments from Whisper outputs

multi_searchA

Combined search across all sources (local, knowledge, corpora, transcripts)

deduplicate_resultsB

Remove duplicate search results based on text similarity

cluster_resultsB

Cluster search results by topic/source type

log_retrieval_feedbackA

Score or annotate a prior kb_search result by its query_id (retrieval telemetry, issue #5). Supply user_feedback_score, notes, or both; an omitted field is left unchanged (cannot be reset to null). No effect unless LORE_HARD_NEGATIVE_MINING=true on a PostgreSQL backend.

get_retrieval_telemetryA

Read retrieval telemetry rows (issue #5). Selector precedence: query_id > session_id > topic > recent. Returns newest-first.

get_telemetry_statsA

Aggregate retrieval telemetry stats (issue #5): totals, feedback coverage, requery count, average score, oldest/newest timestamps. Optionally scoped by session_id and/or topic.

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/davidgut1982/lore-mcp'

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