memory_consolidate
Run, monitor, and control memory consolidation: check system health, trigger or schedule optimization jobs, pause and resume them, or merge multiple memories into one entry.
Instructions
Memory consolidation management - run, monitor, and control memory optimization.
USE THIS WHEN:
User asks about memory optimization, cleanup, or consolidation
Need to check consolidation system health
Want to manually trigger or schedule consolidation
Need to pause/resume consolidation jobs
ACTIONS:
run: Execute consolidation for a time horizon (requires time_horizon) Performs dream-inspired memory consolidation: • Exponential decay scoring • Creative association discovery • Semantic clustering and compression • Controlled forgetting with archival
status: Get consolidation system health and statistics
recommend: Get optimization recommendations for a time horizon (requires time_horizon) Analyzes memory state and suggests whether consolidation is needed
scheduler: View all scheduled consolidation jobs Shows next run times and execution statistics
pause: Pause consolidation (all or specific horizon) Temporarily stops automatic consolidation jobs
resume: Resume paused consolidation Re-enables previously paused consolidation jobs
merge: Combine multiple existing memories into one consolidated entry (requires content_hashes and merged_content) Verifies all source memories exist, stores the merged content, deletes originals
TIME HORIZONS:
daily: Consolidate last 24 hours
weekly: Consolidate last 7 days
monthly: Consolidate last 30 days
quarterly: Consolidate last 90 days
yearly: Consolidate last 365 days
Examples: {"action": "status"} {"action": "run", "time_horizon": "weekly"} {"action": "run", "time_horizon": "daily", "immediate": true} {"action": "recommend", "time_horizon": "monthly"} {"action": "scheduler"} {"action": "pause"} {"action": "pause", "time_horizon": "daily"} {"action": "resume", "time_horizon": "weekly"} {"action": "merge", "content_hashes": ["hash1", "hash2"], "merged_content": "Consolidated text"} {"action": "merge", "content_hashes": ["hash1", "hash2"], "merged_content": "text", "tags": ["important"], "memory_type": "note"}
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": {
"action": "<action>"
},
"name": "memory_consolidate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags for the merged memory (default: union of source tags) | |
| action | Yes | Consolidation action to perform | |
| immediate | No | For 'run' action: execute immediately vs schedule for later | |
| memory_type | No | Memory type for the merged memory (default: inherited from first source) | |
| time_horizon | No | Time horizon (required for run/recommend, optional for pause/resume) | |
| content_hashes | No | Content hashes of the memories to merge (minimum 2) | |
| merged_content | No | The consolidated content that replaces the source memories |