remember
Store and organize information with structured titles and content using a SQLite-based memory storage system. Ideal for managing and retrieving data efficiently.
Instructions
Store a new memory.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The full content of the memory to store | |
| title | Yes | A concise title for the memory |
Implementation Reference
- memory_mcp/server.py:203-219 (handler)The core handler function that executes the 'remember' tool by storing the provided title and content in the database and returning a success message with the memory ID.def remember(title: str, content: str) -> str: """ Store a new memory. Args: title: A concise title for the memory content: The full content of the memory to store Returns: A confirmation message with the ID of the stored memory """ try: memory_id = db.add_memory(title, content) return f"Memory stored successfully with ID: {memory_id}." except Exception as e: return f"Error storing memory: {str(e)}"
- memory_mcp/server.py:336-350 (schema)The JSON schema defining the input parameters for the 'remember' tool: required 'title' and 'content' as strings.inputSchema={ "type": "object", "properties": { "title": { "type": "string", "description": "A concise title for the memory", }, "content": { "type": "string", "description": "The full content of the memory to store", }, }, "required": ["title", "content"], "title": "rememberArguments", },
- memory_mcp/server.py:424-428 (registration)The dispatch logic in the call_tool handler that registers and invokes the 'remember' tool when called.if name == "remember": if not arguments or "title" not in arguments or "content" not in arguments: raise ValueError("Missing title or content arguments") result = remember(arguments["title"], arguments["content"]) return [types.TextContent(type="text", text=result)]