consolidate
Reduce memory redundancy by merging similar or duplicate entries. Choose a strategy: keep newest, oldest, highest importance, or merge content.
Instructions
Merge similar or duplicate memories to reduce redundancy. Finds memories above similarity threshold and merges them.
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": {
"namespace": "<namespace>"
},
"name": "consolidate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview without changes | |
| project | No | Project scope for this operation. Omit to auto-detect from environment. Use "*" to search across all projects. | |
| strategy | No | Strategy for merging duplicates | keep_highest_importance |
| _agent_id | No | Optional agent identifier for request tracing and per-agent rate limiting. | |
| namespace | Yes | Namespace to consolidate (required) | |
| max_groups | No | Maximum groups to process | |
| similarity_threshold | No | Minimum similarity for duplicates |