consolidate_memories
Combine similar memories into one, preserving unique info and merging tags. Preview or apply merges via cohesion-based auto-detection.
Instructions
Consolidate similar memories using algorithmic merging.
This tool intelligently merges similar memories by:
Combining content (preserving unique information)
Merging tags and entities (union)
Calculating appropriate strength based on cohesion
Preserving earliest created_at and latest last_used timestamps
Modes:
"preview": Generate merge preview without making changes
"apply": Execute the consolidation (requires cluster_id)
Args: cluster_id: Specific cluster ID to consolidate (valid UUID, required for apply mode). mode: Operation mode - "preview" or "apply". auto_detect: If True, automatically find high-cohesion clusters. cohesion_threshold: Minimum cohesion for auto-detection (0.0-1.0, default: 0.75).
Returns: Consolidation preview or execution results.
Raises: ValueError: If cluster_id is invalid or cohesion_threshold is out of range.
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_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | preview | |
| cluster_id | No | ||
| auto_detect | No | ||
| cohesion_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||