Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ECHOCACHE_DB_PATHNoSQLite file location~/.echocache/cache.db
ECHOCACHE_MAX_BYTESNoLRU ceiling on retained response bytes268435456
ECHOCACHE_MAX_ENTRIESNoLRU ceiling on retained entries10000
ECHOCACHE_ENCRYPTION_KEYNo64 hex chars (32 bytes); enables AES-256-GCM at rest
ECHOCACHE_DEFAULT_TTL_SECONDSNoFreshness lifetime when a caller omits one86400
ECHOCACHE_LINK_CANDIDATE_POOLNoRecent entries a new write is compared against500
ECHOCACHE_SIMILARITY_THRESHOLDNoSimilarity floor for auto-linking entries0.25

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
}

Tools

Functions exposed to the LLM to take actions

NameDescription
cache_getA

Look up a cached LLM response by exact (model, prompt, params) match, like an HTTP cache checking a request against its cache key. Call this BEFORE issuing an expensive prompt to a model. Returns hit:false on a miss or an expired entry — in that case, run the prompt yourself and store the result with cache_set. On a hit, freshness mirrors HTTP semantics: fresh means use it as-is; stale means it is past its TTL but within its stale-while-revalidate window, so you may still use it but consider refreshing it.

cache_setA

Store a prompt/response pair in the cache. Call this AFTER getting a fresh response from a model that cache_get did not have. New entries are automatically linked in a similarity graph to existing entries with related content, so cache_related and cache_query can surface them later even without an exact key match. Pass derived_from with parent entry ids if this result was built from other cached entries — invalidating a parent with cascade can then clean up anything derived from it.

cache_queryA

Semantic search across all cached entries, independent of exact key matching. Use this when you suspect something related was already computed even though the prompt wording differs — the knowledge-graph equivalent of a cache lookup by meaning instead of by exact key.

cache_relatedA

Traverse the cache graph outward from one entry to find connected entries — ones auto-linked for content similarity ("similar" edges) or explicitly declared as built on top of it ("derived-from" edges). Use this to pull in everything already known that connects to a given cached result.

cache_invalidateA

Delete a cache entry, e.g. because the underlying source it was based on changed. With cascade:true, also deletes every entry that declared this one as a derived_from parent, and recursively theirs — dependency-graph invalidation instead of a manual hunt for stale copies.

cache_statsA

Cache analytics: entry/edge counts, exact-match hit rate, queryHits/queryMisses for semantic recall, and tokensServed — the token count handed back from cache. Note that tokensServed equals tokens saved only for entries that stand in for work which would otherwise be regenerated; serving a cached file read costs the same tokens as re-reading the file, so it saves nothing.

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/kskurtveit/echocache'

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