retention_review
Review stored memory candidates to list, preview or confirm deletion, or compact selected thoughts into a summary, so outdated entries can be cleaned up while important context is preserved.
Instructions
Review retention candidates: list candidates, preview or confirm deletion, or compact candidates into a summary. To keep a thought instead of deleting it, call memory_store action=update with is_protected=true (which also drops it out of the candidate list). Answers the shared envelope { items, meta } for list and { item, meta } for delete/compact; a preview sets meta.preview={token,destructive:true}.
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": "retention_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum candidates to return. OPTIONAL for "list". REJECTED for all other actions. | |
| action | Yes | Action | |
| fields | No | Thought columns to include in each candidate; explicit fields win over compact. OPTIONAL for "list". REJECTED for all other actions. | |
| offset | No | Candidate pagination offset. OPTIONAL for "list". REJECTED for all other actions. | |
| compact | No | Compact output (default true): trim each candidate to the minimal thought fields (id, content, status, tags as strings, project). compact=false returns the whole row. OPTIONAL for "list". REJECTED for all other actions. | |
| confirm | No | CONSUMED by "delete" and "compact" (true executes; false/omitted previews). REJECTED for "list". | |
| summary | No | REQUIRED for "compact": the summary thought input. REJECTED for all other actions. | |
| source_ids | No | REQUIRED for "compact": source thought IDs to compress into one summary. REJECTED for all other actions. | |
| thought_id | No | Thought ID. REQUIRED for "delete". REJECTED for "list" and "compact". | |
| min_age_days | No | Minimum candidate age in days. OPTIONAL for "list". REJECTED for all other actions. | |
| preview_token | No | OPTIONAL preview token returned by a prior preview. CONSUMED by "delete" (true executes with token validation; missing/stale fails). REJECTED for "list" and "compact". | |
| importance_floor | No | Maximum importance threshold. OPTIONAL for "list". REJECTED for all other actions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Action payload (structuredContent.result); JSON mirror of content[].text, except the raw-text config action, whose result is { item: { text }, meta } |