Skip to content

MCP Tools Reference

l0-memory exposes several tools to MCP hosts. These tools allow the assistant to manage its own long-term memory.

ToolDescriptionKey Arguments
memory_saveCreate or update a memorykey, value, scope
memory_getRetrieve a specific memorykey, scope, expand
memory_searchSearch all or specific scopesquery, limit
memory_listList recent memoriesscope, limit
memory_deleteDelete a memorykey, scope
memory_querySlice JSON-valued memorykey, path
memory_pinToggle pinned statuskey, pinned
memory_linkLink two memoriesfrom_key, to_key, rel
memory_unlinkRemove a linkfrom_key, to_key, rel
memory_linksList links for a memorykey, scope
memory_traverseBFS subgraph viewkey, depth, direction
memory_renameAtomic renameold_key, new_key
memory_verifyUpdate freshnesskey, scope
memory_supersedeArchive and replaceold_key, new_key, value

Tool Details

memory_save

Inserts or updates a memory identified by (scope, key). The assistant can also provide tags, origin, and origin_agent to track how the memory was created.

Uses SQLite FTS5 for efficient prefix matching across keys, values, and tags. By default, it returns a compact representation with a text snippet and a relevance score.

memory_query

Allows extracting specific parts of a JSON-valued memory using JSON Pointers (RFC 6901). Supports * wildcards for array/object traversal.

memory_traverse

Enables the assistant to explore the knowledge graph. It returns a set of nodes and edges within a specified depth from the starting memory.

Crafted with precision for AI assistants.