Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_MAX_POOL_SIZENoOverride max pool size for asyncpg (default 20)20
SUMMARIZATION_ENABLEDNoToggle the background summarization jobtrue
SUMMARIZATION_THRESHOLDNoEpisodic count to trigger per pair100
SUMMARIZATION_BATCH_SIZENoOldest N memories to condense per run50
SUMMARIZATION_INTERVAL_SECONDSNoHow often the job wakes up300

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
store_memoryA
Store a memory for an agent/user pair. Content is embedded locally (ONNX)
and persisted to Postgres. Returns the memory ID on success.

Args:
    agent_id:     Unique identifier for the agent storing the memory.
    user_id:      Unique identifier for the user this memory belongs to.
    content:      The text to remember (max 8000 chars).
    memory_type:  'episodic' (events/conversations), 'semantic' (facts/preferences),
                  or 'procedural' (workflows). Default: episodic.
    importance:   Weight multiplier 0.0–2.0. Use >1.0 for critical facts. Default: 1.0.
search_memoriesA
Search memories using semantic similarity + recency decay. Returns top-k
ranked results with scores.

Args:
    agent_id:     Agent whose memories to search.
    user_id:      User whose memories to search.
    query:        Natural language description of what to recall.
    top_k:        Number of memories to return (1–50). Default: 5.
    alpha:        Blend weight 0.0–1.0. 1.0 = pure semantic, 0.0 = pure recency.
                  Default: 0.7.
    memory_type:  Filter to 'episodic', 'semantic', or 'procedural'. Omit to search all.
delete_memoryA
Delete a specific memory by ID. The agent_id is used as an ownership check —
agents cannot delete each other's memories.

Args:
    agent_id:   Agent that owns the memory.
    memory_id:  UUID of the memory to delete (from store_memory or search_memories).
count_memoriesB
Return the total number of stored memories for an agent/user pair.

Args:
    agent_id:  Agent identifier.
    user_id:   User identifier.

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/ayushagrawal288/memex'

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