Maintain Storage
maintain_storageCompress old chats, find or delete duplicate conversations, update storage settings, and report capabilities for Chronicle MCP archives.
Instructions
Housekeeping for the archive: compress old chats, find or remove duplicates, change settings, or report server capabilities. Use it for storage and configuration only, not for reading or searching chats. op_type 'compress': gzips chats older than days_old (default from settings, 30) in place and returns {compressed, skipped_recent, days_threshold}; compressed chats stay readable and searchable. 'deduplicate': finds chats with identical content; with dry_run=true (default) it only lists them, with dry_run=false it permanently deletes the duplicates, returning {dry_run, duplicates, unique_count}. 'configure': updates settings (see 'settings') and returns which keys changed. 'capabilities': read-only summary of tools, prompts, version and client paths. Destructive only for deduplicate with dry_run=false; ask the user before doing that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | Archive namespace (a subfolder of the chats directory). Built-in: 'default', 'cursor', 'chatgpt', 'claude'; any other name creates its own subfolder. Omit to use 'default'. | default |
| dry_run | No | For 'deduplicate': true lists duplicates only; false deletes them permanently. | |
| op_type | Yes | Maintenance operation (see the tool description). | |
| days_old | No | For 'compress': minimum age in days; omit to use compression_days_threshold (30 by default). | |
| settings | No | For 'configure' only. Allowed keys: auto_save_message_threshold (int, messages before manage_session_state save persists), compression_days_threshold (int), summary_pruning_days_threshold (int), client_paths (object: client name to a relative folder), transcripts_dirs (object: client name to a folder), cursor_transcripts_dir (string). Unknown keys are ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |