store_memento
Store persistent knowledge with context and metadata for long-term retention across all sessions, using structured types and tags for reliable retrieval.
Instructions
Store a new memento with context and metadata.
Required: type, title, content. Optional: id, tags, importance (0-1), context.
USE FOR: Long-term knowledge that should survive across ALL sessions. DO NOT USE FOR: Temporary session state or project-specific context.
LIMITS:
title: max 500 characters
content: max 50KB (50,000 characters)
tags: max 50 tags, 100 chars each
id: if provided, must be unique string identifier
TAGGING BEST PRACTICE:
Always include acronyms AS TAGS (e.g., tags=["jwt", "auth"])
Fuzzy search struggles with acronyms in content
Tags provide exact match fallback for reliable retrieval
Types: solution, problem, error, fix, task, code_pattern, technology, command, file_context, workflow, project, general, conversation
Note: decision is not a standalone type — use type="general" with tags=["decision", "architecture"].
Note: pattern is not a standalone type — use type="code_pattern".
EXAMPLES:
store_memento(type="solution", title="Fixed Redis timeout", content="Increased timeout to 30s...", tags=["redis"], importance=0.8)
store_memento(type="error", title="OAuth2 auth failure", content="Error details...", tags=["auth", "oauth2"], id="custom-error-123")
Returns memory_id. Use create_memento_relationship to link related memories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of memory to store | |
| id | No | Optional memory ID (if not provided, a UUID will be generated automatically) | |
| title | Yes | Short descriptive title for the memory | |
| content | Yes | Detailed content of the memory | |
| summary | No | Optional brief summary of the memory | |
| tags | No | Tags to categorize the memory | |
| importance | No | Importance score (0.0-1.0) | |
| context | No | Context information for the memory |