Update Memory
update_memoryUpdate an existing memory's content, tags, importance, or metadata to correct inaccurate information or enhance stored details without creating duplicates.
Instructions
Update an existing memory's content, tags, importance, or metadata. Use this to correct or enhance memories rather than storing duplicates.
When to use:
To correct inaccurate information in a memory
To add tags that were forgotten
To adjust importance based on new understanding
To add metadata after the fact
Examples:
update_memory({ memory_id: "8f3a2c1e-5b7d-4e9a-a1c3-2d4f6b8e0a91", importance: 0.95 }) // Increase importance
update_memory({ memory_id: "8f3a2c1e-5b7d-4e9a-a1c3-2d4f6b8e0a91", tags: ["project-x", "critical", "auth"] }) // Add tags
update_memory({ memory_id: "8f3a2c1e-5b7d-4e9a-a1c3-2d4f6b8e0a91", content: "Updated: PostgreSQL chosen for ACID + team expertise" })
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": {
"memory_id": "<memory_id>"
},
"name": "update_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Replaces existing | |
| type | No | ||
| content | No | Replaces existing | |
| t_valid | No | ISO 8601 start of validity | |
| metadata | No | Replaces the stored metadata object. To change one key, fetch the memory first and send the full object. Omit metadata to preserve it. | |
| memory_id | Yes | ID of the memory to update | |
| t_invalid | No | ISO 8601 expiry or supersede time | |
| timestamp | No | Overrides creation time | |
| confidence | No | ||
| importance | No | ||
| updated_at | No | ISO 8601 | |
| last_accessed | No | ISO 8601 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| memory_id | Yes |