Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYELIN_DATA_DIRNoDirectory where all data lives. Default: ~/.myelin
MYELIN_LATERAL_KNoMax results per session/scope (0 = off). Default: 1
MYELIN_LOG_LEVELNoLogging verbosity (structured JSON to stderr). Default: INFO
MYELIN_MULTIPROBENo3-probe retrieval (original + keywords + entity-expanded). Default: true
MYELIN_MAX_MEMORIESNoHard memory cap; 0 = unlimited. LRU eviction when exceeded. Default: 0
MYELIN_CHUNK_MAX_CHARSNoMax characters per chunk. Default: 1000
MYELIN_EMBEDDING_MODELNoBi-encoder model. Default: all-MiniLM-L6-v2
MYELIN_NECORTEX_RERANKNoCross-encoder re-ranking. Default: true
MYELIN_NECORTEX_WEIGHTNoCE/bi-encoder blend (0.0–1.0). Default: 0.6
MYELIN_DEFAULT_N_RESULTSNoResults returned per recall. Default: 5
MYELIN_MIN_CONTENT_LENGTHNoMinimum chars to pass the input gate. Default: 20
MYELIN_RECALL_OVER_FACTORNoOver-retrieval multiplier for re-ranking headroom. Default: 8
MYELIN_CHUNK_OVERLAP_CHARSNoOverlap between text chunks. Default: 200
MYELIN_CROSS_ENCODER_MODELNoCross-encoder model. Default: ms-marco-MiniLM-L-6-v2
MYELIN_CONSOLIDATION_INTERVALNoAuto-consolidate every N stores (0 = disabled). Default: 50
MYELIN_DEDUP_SIMILARITY_THRESHOLDNoAbove this = near-duplicate, rejected. Default: 0.95

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
storeA

Store a memory with optional context metadata.

Args: content: The information to remember. project: Cortical region — project name for scoped retrieval. language: Programming language context. scope: Engram cluster — domain scope (e.g. "auth", "database"). memory_type: Memory system (episodic/semantic/procedural/prospective). tags: Comma-separated tags for categorization. source: Which tool stored this ("copilot", "cursor", etc.). overwrite: If True and content is a near-duplicate of an existing memory, replace the old memory instead of rejecting. The response will include "replaced": <old_parent_id> and "status": "updated". agent_id: Namespace of the storing agent or bot. Memories stored with an agent_id are private to that agent; without one they are shared with every agent. Defaults to the server's MYELIN_AGENT_ID setting. relations: JSON-encoded list of [subject, predicate, object] triples to assert as relationship edges immediately, e.g. '[["AuthService","depends_on","JWTHelper"]]'. Malformed input is silently ignored so it never blocks the store.

Returns: JSON with memory ID on success, or rejection reason. Credentials in the content (API keys, private keys, passwords in URLs) are replaced with [REDACTED:<kind>] before it is stored; the response then lists the kinds under "redacted".

recallA

Recall memories relevant to a query.

Args: query: What to search for (semantic similarity). n_results: Maximum number of results to return. project: Filter to a specific cortical region (project). language: Filter to a specific language. scope: Filter to a specific engram cluster (domain scope). memory_type: Filter by memory system (episodic/semantic/procedural/prospective). reference_date: ISO-8601 date for temporal context (e.g. "2026-04-12"), in the server's local time. Defaults to now. agent_id: Namespace of the calling agent — returns that agent's memories plus shared ones. Without one, only shared memories are returned. Defaults to the server's MYELIN_AGENT_ID setting.

Returns: JSON array of matching memories with scores.

forgetB

Remove a specific memory by ID.

Args: memory_id: The ID of the memory to remove.

Returns: JSON confirmation or error.

pin_memoryA

Pin a memory so it is always included in recall results.

Pinned memories model the thalamic relay — sustained activation that keeps critical facts always available to the cortex.

Args: memory_id: The ID of the memory to pin. priority: 0 = identity/system context, 1 = critical facts. label: Optional human-readable label for this pin.

Returns: JSON confirmation.

unpin_memoryB

Remove a pinned memory from the thalamic buffer.

Args: memory_id: The ID of the memory to unpin.

Returns: JSON confirmation or not_found.

decay_sweepB

Prune stale memories that haven't been accessed recently.

Removes memories exceeding the idle threshold with low access counts.

Returns: JSON summary of pruned memories.

statusA

Show memory system status.

Returns: JSON with memory count and configuration.

statsA

KPI dashboard for the memory database.

Returns counts by memory type, project, scope, knowledge domain, access health (hot/warm/cold), age distribution, Hebbian link statistics, and a count of decay candidates. Optionally filter to a specific project or agent namespace.

Args: project: Restrict results to this project name (empty = all projects). agent_id: Restrict results to this agent namespace (empty = all agents).

Returns: JSON with total, entity_count, relationship_count, pinned_count, hebbian stats, by_type, by_project, by_scope, by_region, access, age, decay_candidates, and filter.

consolidateA

Replay episodic memories into the semantic network (offline consolidation).

Extracts entities from stored memories and builds co-occurrence relationships in the neocortex — like hippocampal replay during sleep.

Returns: JSON summary of memories replayed, entities found, and relationships created.

ingestA

Bulk-load memories from a file or directory.

Supported formats:

  • .txt / .md: file body stored as one memory. Optional YAML frontmatter (between --- delimiters) sets project, scope, language, memory_type, tags, and source for that file.

  • .json: array of objects with a "content" key (same shape as myelin export output).

  • directory: recurse and ingest every supported file found.

Args: path: Absolute or relative path to a file or directory. project: Default project tag (overridden by per-file frontmatter). scope: Default scope tag (overridden by per-file frontmatter). source: Source label for all ingested memories. recursive: Descend into subdirectories (default: true).

Returns: JSON summary with stored, skipped, and errors counts.

healthA

Lightweight health check — returns ok without initializing stores.

Returns: JSON with status and version.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 11 tools

Disambiguation4/5

Most tools have clearly distinct purposes: store vs. ingest differ by single vs. bulk loading, recall is retrieval, forget is deletion, and pin/unpin are lifecycle controls. The main overlap is health vs. status, which both report system state, though their descriptions distinguish lightweight liveness from configuration and memory counts.

Naming Consistency3/5

All names use snake_case, but the convention mixes single verbs (store, recall, forget), noun-like diagnostics (health, stats, status), and compound verbs (pin_memory, unpin_memory, decay_sweep). The pattern is readable but not a consistent verb_noun scheme throughout.

Tool Count5/5

Eleven tools is well-scoped for a memory server, covering storage, retrieval, deletion, pinning, bulk ingest, maintenance, and diagnostics. Each tool appears to earn its place without excessive surface area.

Completeness4/5

The surface covers the core memory lifecycle: store, bulk ingest, recall, forget, pin/unpin, consolidation, decay, and status/stats. Minor gaps remain, notably no explicit update/edit-by-ID operation and no export tool despite ingest referencing myelin export output, but these are workaroundable.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues