Skip to main content

Memories

MCP tools for the Memories module. See the Memories module docs for permissions and data model.

list-memories​

List memories

Arguments​

ArgumentTypeRequiredDescription
memory_store_idstringyesMemory store to list memories from (mstore_...)
tagsarraynoFilter by tag pairs, written key:value (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; all must be present with exactly that value.
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.
include_invalidatedbooleannoInclude invalidated memories — superseded or retracted. They are excluded by default; set this to audit what a store once held.

create-memory​

Create a memory

Arguments​

ArgumentTypeRequiredDescription
memory_store_idstringyesMemory store to add the memory to (mstore_...)
contentstringyesThe text content of the memory
source_typestringnoWhether there is a source to point at. conversation requires source_id; manual rejects it.
source_idstringnoThe conversation this fact was learned in. Required when source_type is conversation, and rejected otherwise.
tagsanynoPer-memory key-value tags, used for memory-granularity filtering by tags in search-knowledge.
metadataanynoArbitrary structured metadata attached to the memory
supersedesstringnoThe memory this write replaces, named outright. The declaration outranks the thresholds in both directions: the target is retired and the write returns superseded however similar or distant the two texts are. This is what reaches a contradiction cosine cannot see ("The office is in Lisbon" then "We closed the Lisbon office"). The target must be a still-valid memory in the same memory store, and the caller needs memories:UpdateMemory on it as well as memories:CreateMemory on the store.
duplicate_thresholdnumbernoCosine similarity at or above which the incoming content is a duplicate of an existing memory and the write is skipped. Overrides the store's duplicate_threshold for this call; falls back to the store's value, then to 0.95.
supersede_thresholdnumbernoCosine similarity at or above which the incoming content restates a fact that has changed: the top match is invalidated and a new memory replaces it. Overrides the store's supersede_threshold for this call; falls back to the store's value, then to 0.90. The effective pair must satisfy supersede_threshold < duplicate_threshold, and the check runs against the effective pair — so overriding only one value cannot invert it against the store's other one.

get-memory​

Get a memory

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyes—

update-memory​

Update a memory

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyes—
contentstringnoUpdated text content
tagsanynoReplaces the memory's tags. Pass null or an empty object to clear.
metadataanynoReplaces the memory's metadata. Pass null to clear.
expected_versionanynoRefuses the write unless the memory is at this version.

delete-memory​

Delete a memory

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyes—

retract-memory​

Retract a memory

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyes—
expected_versionanynoRefuses the retraction unless the memory is at this version.

list-memory-assertions​

List a memory's assertions

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyes—
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

get-memory-tags​

Get memory tags

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyesMemory ID

replace-memory-tags​

Replace memory tags

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyesMemory ID

merge-memory-tags​

Merge memory tags

Arguments​

ArgumentTypeRequiredDescription
memory_idstringyesMemory ID