Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLog levelINFO
QDRANT_HOSTNoQdrant server addresslocalhost
QDRANT_PORTNoQdrant port6333
QDRANT_API_KEYNoQdrant API key
DEFAULT_USER_IDNoDefault user IDuser_default
EMBEDDING_MODELNoEmbedding model (OpenAI compatible)doubao-embedding-vision
OPENAI_BASE_URLYesEmbedding API endpoint (required)
EMBEDDING_API_KEYYesEmbedding API key (required)
EMBEDDING_DIMENSIONSNoVector dimensions2048
QDRANT_COLLECTION_NAMENoCollection namememories

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
add_memoryA

Save important information to long-term memory.

When to Use

  • User stated preferences ('User prefers dark mode')

  • Personal context ('User is learning Rust', 'User works on payments team')

  • Project patterns ('API endpoint at /api/v2', 'Uses PostgreSQL for this project')

  • Agreed decisions ('Team decided to use Docker for deployment')

  • Constraints ('Budget is tight', 'Deadline is end of month')

  • Lessons learned ('Don't use library X, it caused issues')

Post-Response Storage Pattern (IMPORTANT)

After responding to user, EVALUATE whether new facts should be stored:

  1. Did user share personal context? → Store it

  2. Did we make a technical decision? → Store it

  3. Did user express a preference? → Store it

  4. Did user correct previous information? → Update existing memory

Deduplication

Search before adding if the info seems routine. Prefer UPDATING existing memories when finding conflicting info. Store each distinct piece as a separate memory with clear, searchable text.

search_memoriesA

Query stored memories to retrieve relevant context.

Pre-Execution Recall Pattern (IMPORTANT)

BEFORE responding to user, search for relevant memories based on context:

  1. User asks about skills/capabilities? → Search 'user programming language', 'user technical skills'

  2. User mentions location/environment? → Search 'user city', 'user location', 'user timezone'

  3. User asks about preferences? → Search 'user preference', 'user coding preference'

  4. User references past decisions? → Search 'user decision', 'user project choice'

  5. User asks about project context? → Search 'user project framework', 'user project database'

Triggers

  • When starting new tasks (check 'has user worked on this before?')

  • Before giving advice on topics from past sessions

  • When user references something you don't recall

  • After any significant decision or preference is stated

At session start, consider searching 'user preferences', 'project architecture', 'agreed approach' to build context.

Use lower limits (1-3) for specific lookups, higher limits (5-10) for broad context.

get_memoryA

Retrieve a specific memory by its ID.

When to Use

  • You have a memory ID from a previous search result

  • After adding a memory and need to verify or get full details

  • User asks for details about a specific memory they referenced

  • After update/delete operations to confirm results

Pre-Execution Recall

Usually you'll use search_memories first to find relevant memories. Use get_memory when you already have an ID and need full details.

Returns full memory details including metadata, timestamps, and the stored content.

update_memoryA

Update an existing memory when information changes or needs correction.

When to Use

  • Same fact changes ('User now prefers light mode instead of dark')

  • More precise info becomes available ('Project uses PostgreSQL 16, not 15')

  • User corrects previous information

  • Correcting errors in stored facts

Post-Response Correction Pattern

After responding, if user provides CORRECTIONS or UPDATED information:

  1. Search for existing memory on the topic

  2. If found → UPDATE the existing memory

  3. If not found → ADD new memory (don't force update on genuinely new topics)

Storage Decision

  • ADD NEW for genuinely new topics

  • UPDATE existing when same fact changes

  • If unsure, prefer ADD - storing multiple perspectives is safer than losing context

The text field replaces content entirely; metadata (runId) preserves linkage.

delete_memoryA

Remove a specific memory when it is no longer relevant, was stored in error, or user requests deletion.

When to Use

  • User requests deletion ('Forget what I said about X')

  • Old version redundant after update

  • Something stored by mistake

  • User explicitly asks to 'forget' or 'delete' specific information

Privacy

Honor all deletion requests promptly. User privacy is paramount.

Cleanup Pattern

After post-response storage evaluation, if a memory is found to be:

  • Redundant with newly updated version

  • Incorrectly stored

  • No longer relevant

→ Delete the old/incorrect memory to maintain clean memory store.

delete_all_memoriesA

Bulk delete all memories for a user, optionally filtered to a specific session.

Use Cases

  • User starts fresh on a project ('Clear all my memories')

  • Complete privacy wipe requested

  • Abandoned/debug session cleanup

  • User explicitly requests full memory reset

Caution

Destructive and irreversible. Confirm with user if request seems broad.

Without agent_id: deletes ALL user memories With agent_id: deletes only that session's memories

Pre-Deletion Recommendation

Before bulk delete, consider:

  1. Informing user how many memories will be deleted

  2. Confirming they want to proceed

  3. Suggesting targeted delete if they only want to remove specific memories

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/JoeXie/remember-me'

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