memory_quality
Rate, inspect, and analyze memory quality; run maintenance to clean conflicts and stale entries, review last-run stats, and rebuild entity links.
Instructions
Memory quality management - rate, inspect, and analyze.
ACTIONS:
rate: Manually rate a memory's quality (thumbs up/down)
get: Get quality metrics for a specific memory
analyze: Analyze quality distribution across all memories
maintain: Run maintenance cycle (cleanup + conflicts + stale + quality)
maintain_status: Get stats from last maintenance run
rebuild_entities: Rebuild has_entity and shares_entity for ALL live memories using current extraction settings. Preview by default (dry_run=true); back up first and pause other writers before dry_run=false. Requires a graph backend.
Examples: {"action": "rate", "content_hash": "abc123", "rating": 1, "feedback": "Very useful"} {"action": "get", "content_hash": "abc123"} {"action": "analyze"} {"action": "analyze", "min_quality": 0.5, "max_quality": 1.0} {"action": "maintain"} {"action": "maintain", "dry_run": false} {"action": "maintain_status"} {"action": "rebuild_entities"} {"action": "rebuild_entities", "dry_run": false}
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_quality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Quality action to perform | |
| rating | No | For 'rate': '-1' (thumbs down), '0' (neutral), '1' (thumbs up) | |
| dry_run | No | For 'maintain'/'rebuild_entities': preview mode — no modifications (default: true) | |
| feedback | No | For 'rate': Optional feedback text | |
| max_quality | No | For 'analyze': maximum quality threshold | |
| min_quality | No | For 'analyze': minimum quality threshold | |
| content_hash | No | Memory hash (required for rate/get) |