Store Memory
store_memoryStore important information as memory in single or batch mode for future recall. Use after decisions, pattern discovery, or bug fixes to persist context, reasoning, and outcomes.
Instructions
Store memory in one of two modes — single-memory (set top-level content) or batch (set memories: [...] for up to 500). Use this to persist important information for future recall.
Mode 1 — Single (default): pass top-level content plus any optional fields (tags, importance, metadata, type, confidence, embedding, t_valid, t_invalid, id, etc.).
Mode 2 — Batch: pass memories: [{ content, tags?, importance?, metadata?, timestamp?, type?, confidence? }, ...] to store up to 500 memories in one request. Faster for bulk ingestion (imports, benchmark seeding). Batch mode does NOT accept id, embedding, t_valid, or t_invalid per-item — use single mode for those.
Content size guidelines (per item):
Target: 150-300 characters (one meaningful paragraph)
Maximum: 500 characters (auto-summarized if exceeded)
Hard limit: 2000 characters (rejected)
Format: "Brief title. Context and details. Impact/outcome."
When to use:
After making a decision: store the reasoning and outcome
When discovering a pattern: store the pattern and where it applies
After fixing a bug: store the root cause and solution
When learning user preferences: store what they prefer and why
For bulk ingestion (imports, seeding): use batch mode
Examples:
store_memory({ content: "Chose PostgreSQL over MongoDB for user service. Need ACID for transactions.", tags: ["architecture", "database"], importance: 0.9 })
store_memory({ content: "User prefers early returns over nested conditionals.", tags: ["code-style"], importance: 0.7 })
store_memory({ memories: [{ content: "...", tags: ["import"] }, { content: "...", tags: ["import"] }] }) // Batch
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Single-memory mode (XOR with `memories`). The memory content to store. Be specific: include context, reasoning, and outcome. | |
| memories | No | Batch mode (XOR with `content`). Up to 500 memory objects to store in one call. Each item supports content (required), tags, importance, timestamp, type, confidence, metadata. Batch mode does NOT support `id`, `embedding`, `t_valid`, or `t_invalid` per-item — use single-memory mode for those. | |
| tags | No | Single-memory mode. Tags to categorize the memory (e.g., ["project-name", "bug-fix", "auth"]) | |
| importance | No | Single-memory mode. Importance: 0.9+ critical decisions, 0.7-0.9 patterns/bugs, 0.5-0.7 minor notes | |
| embedding | No | Single-memory mode only. Optional embedding vector for semantic search (auto-generated if omitted). Not supported in batch mode. | |
| metadata | No | Single-memory mode. Optional structured metadata (e.g., { files_modified: ["auth.ts"], error_type: "timeout" }) | |
| timestamp | No | Single-memory mode. Optional ISO timestamp (defaults to now) | |
| type | No | Single-memory mode. Memory type for classification | |
| confidence | No | Single-memory mode. Classification confidence (0-1, default 0.9 when type provided) | |
| id | No | Single-memory mode only. Custom memory ID (auto-generated if omitted). Not supported in batch mode. | |
| t_valid | No | Single-memory mode only. ISO 8601 timestamp when the memory becomes valid. Not supported in batch mode. | |
| t_invalid | No | Single-memory mode only. ISO 8601 timestamp when the memory expires. Not supported in batch mode. | |
| updated_at | No | Single-memory mode. ISO 8601 last-updated timestamp | |
| last_accessed | No | Single-memory mode. ISO 8601 last-accessed timestamp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | No | Single-mode result: unique ID of the stored memory (use for associations) | |
| memory_ids | No | Batch-mode result: IDs of the stored memories. | |
| stored | No | Batch-mode result: number of memories stored. | |
| qdrant | No | Batch-mode result: Qdrant indexing summary from the server. | |
| enrichment | No | Batch-mode result: enrichment status from the server. | |
| query_time_ms | No | Batch-mode result: server-reported execution time in milliseconds. | |
| message | Yes | Confirmation message |