memory_store
Store facts, notes, and preferences as persistent memories with optional tags and types. Save incremental entries by conversation ID to skip semantic deduplication.
Instructions
Store new information with optional tags.
Accepts two tag formats in metadata:
- Array: ["tag1", "tag2"]
- String: "tag1,tag2"
Use `conversation_id` to bypass semantic deduplication when saving
incremental memories from the same conversation.
Examples:
# Using array format:
{
"content": "Memory content",
"metadata": {
"tags": ["important", "reference"],
"type": "note"
}
}
# Using string format(preferred):
{
"content": "Memory content",
"metadata": {
"tags": "important,reference",
"type": "note"
}
}
# Using conversation_id to save incremental notes:
{
"content": "User prefers dark mode",
"conversation_id": "conv_abc123",
"metadata": {
"tags": "preference,ui"
}
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>"
},
"name": "memory_store"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | Target store partition (default: 'default'). Use 'docs' for documents, 'all' for cross-store search. | |
| content | Yes | The memory content to store, such as a fact, note, or piece of information. | |
| agent_id | No | Optional authoring agent id (defaults to the MCP_AGENT_ID env var, else unset). Stored in metadata for multi-agent attribution; null means unknown. | |
| metadata | No | Optional metadata about the memory, including tags and type. | |
| conversation_id | No | Optional conversation identifier. When provided, semantic deduplication is skipped, allowing multiple incremental memories from the same conversation to be stored even if their content is topically similar. Exact duplicate hashes are still rejected. | |
| restore_deleted | No | Bring back content that was deleted on this server. Default false: re-sending deleted content is refused with 'Not stored: this content was deleted on <date>; pass restore_deleted=true to bring it back'. Set true only when the user deliberately wants the deleted memory back. |