Consolidate memories
consolidateClusters similar stored memories by embedding similarity and optionally creates linked derived memories, supporting periodic memory cleanup and reducing redundant entries.
Instructions
Cluster similar memories via embedding similarity and optionally create derived/consolidated memories linked via 'derived_from'. Use during periodic consolidation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "consolidate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| derive | No | Create a derived memory for each cluster | |
| userId | No | Scope to a user (USER scope) | |
| projectId | No | Scope to a project | |
| sessionId | No | Scope to a session (SESSION scope) | |
| threshold | No | Cosine similarity threshold for clustering (default 0.7) | |
| minClusterSize | No | Minimum members to report a cluster (default 2) |