Store Memory
store_memoryStore user facts and preferences with automatic deduplication and contradiction detection. Assign importance scores to control memory decay rates for trivia, general facts, or critical information.
Instructions
Store a fact or preference about a user. Smara handles deduplication and contradiction detection automatically. Use importance 0.1-0.3 for trivia, 0.5 for general facts, 0.7-1.0 for critical preferences.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"fact": "<fact>"
},
"name": "store_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Unique identifier for the user | |
| fact | Yes | The fact or preference to remember | |
| importance | No | Importance score (0-1). Higher = slower decay. | |
| namespace | No | Memory namespace for isolation (default: from env or 'default') | |
| visibility | No | Who can see this memory. Use 'team' for project decisions, architecture, conventions, shared knowledge — anything a teammate needs. Use 'private' for personal preferences, editor settings, individual style choices. Only applies when SMARA_TEAM_ID is set. | |
| team_id | No | Team ID to store this memory under. Defaults to SMARA_TEAM_ID env var if set. |