insert_memory
Store temporary session memories, observations, and decisions with auto-expiration. Memories last 7 days by default; customize expiry for short-term context.
Instructions
Store a short-term demo memory into demo.memories (ephemeral context that auto-expires). Use this to capture observations, decisions, session notes, or any context worth remembering temporarily. Memories last 7 days by default unless expires_at is set. For permanent knowledge, use memory_ingest instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The memory content to store. Be specific and include relevant context — this text is used for semantic search later. | |
| source | Yes | ||
| session_id | Yes | Unique identifier for the current session/conversation. Used to group related memories together. | |
| tags | No | Categorization labels for filtering (e.g. ["decision", "architecture", "bugfix"]) | |
| expires_at | No | Custom expiration time in ISO 8601 format (e.g. "2026-06-17T00:00:00Z"). Defaults to 7 days from now if omitted. | |
| agent_body | No | Which persona/agent body this memory belongs to (e.g. "coco", "toto"). Defaults to the profile of this server. | |
| environment | No | Deployment environment label (e.g. "production", "staging"). Defaults to MCP_ENVIRONMENT if set. |