Maintain memory
maintainEnforce memory retention policies by deduplicating near-duplicates, capping records, removing low-value memories, and applying age-based TTL without LLM cost. Returns an audit of deletions.
Instructions
Run a no-LLM memory-maintenance pass and return the deletion audit.
Bounds storage and keeps recall clean without sending anything to an LLM — the enterprise retention / "right to be forgotten" lever, with a full audit of exactly what was removed:
consolidate_threshold: if > 0, dedup near-duplicate restatements at this cosine (e.g. 0.95).
max_records: if > 0, forget the lowest-value tail until at most this many remain.
min_value: if > 0, forget every (non-durable, unprotected) memory scoring below this value.
ttl: age-based retention, "kind=days" comma list (e.g. "chat=30,note=90"); empty uses the server's MIDAS_MCP_TTL. User-confirmed/standing records and supersession chains never expire. Durable memories (facts/preferences/constraints, high importance) and supersession chains are never dropped. Returns counts and the ids removed (auditable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | ||
| min_value | No | ||
| max_records | No | ||
| consolidate_threshold | No |