Skip to main content
Glama
fitz2882

learned-experience

by fitz2882

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYNoUsed as the default for LEARNED_EXPERIENCE_EMBED_API_KEY when remote embeddings are enabled
LEARNED_EXPERIENCE_DBNoExplicit database path$LEARNED_EXPERIENCE_HOME/experiences.db
LEARNED_EXPERIENCE_HOMENoData directory (database and model cache)~/.learned-experience
LEARNED_EXPERIENCE_EMBEDDINGSNoEmbedding provider: local, openai, ollama, or none (lexical only)local
LEARNED_EXPERIENCE_HOOK_QUIETNoSet to 1 to make the failure hook silent when nothing matchesunset
LEARNED_EXPERIENCE_EMBED_MODELNoEmbedding model: Xenova/all-MiniLM-L6-v2, text-embedding-3-small, nomic-embed-textprovider default
LEARNED_EXPERIENCE_TRANSFER_DIRNoThe only directory the transfer tool may read or write .jsonl files in$LEARNED_EXPERIENCE_HOME/transfers
LEARNED_EXPERIENCE_EMBED_API_KEYNoKey for remote embedding providers$OPENAI_API_KEY
LEARNED_EXPERIENCE_EMBED_BASE_URLNoAny OpenAI-compatible endpoint, or the Ollama base URLprovider default

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": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
recallA

Check whether this problem (or a similar one) has been solved before. Call BEFORE investigating. Returns ranked hits with fix, avoid-list and confidence. Exact error text in signals enables deterministic matching; semantic + lexical search catches near matches. Read-only.

recordA

Store what happened after solving (or failing to solve) a non-trivial problem. Duplicates are merged automatically: the response says whether the record was created, merged into an existing one, or linked to one with a different fix. Keep it terse and never include secrets.

reinforceA

Feedback loop. After applying a fix from recall, report whether it worked. Updates the record's confidence, which drives future ranking. If it failed, pass a short note and it is added to the record's avoid-list.

amendA

Patch fields of an existing record (better fix, extra avoid items, corrected context). Only supplied fields change.

forgetA

Permanently remove a record that is wrong or obsolete.

consolidateA

Deterministic clustering of episodes that look like the same underlying lesson. For each cluster, write ONE record with kind='rule' that generalises them. Read-only; nothing is changed by this call.

statsA

Counts, success rate, duplicates prevented, embedding status, most common context tags.

transferA

Portability. mode='export' writes every record as JSONL (to path if given, else returned inline). mode='import' reads JSONL from path or jsonl and merges it idempotently: newer wins on id clash, duplicates are merged. Paths are .jsonl files inside the transfer directory (relative names are resolved there). Embeddings are not transferred; they are recomputed by whichever model the destination uses.

Prompts

Interactive templates invoked by user choice

NameDescription
solveWraps a problem in the recall -> apply -> reinforce -> record loop.

Resources

Contextual data attached and managed by the client

NameDescription
protocolThe recall -> apply -> reinforce -> record loop

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/fitz2882/learned-experience'

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