Skip to main content
Glama

add_memory

Store and associate text-based memories in the mem0 Memory System by providing content, user ID, and optional metadata, agent ID, or session ID for enhanced organization and retrieval.

Instructions

Stores a piece of text as a memory in Mem0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentIdNoOptional agent ID to associate with the memory (for cloud API).
contentYesThe text content to store as memory.
metadataNoOptional key-value metadata.
sessionIdNoOptional session ID to associate with the memory.
userIdYesUser ID to associate with the memory.

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinkpixel-dev/mem0-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server