Run Auto Prune
run_auto_pruneTrigger pruning and cleanup to evaluate entry importance, archive old entries, and permanently remove stale soft-deleted ones; use dry run to preview counts.
Instructions
Manually trigger the autonomous pruning and cleanup routines. This evaluates entry importance, archives old entries, and hard-deletes stale softly-deleted ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, simulates the pruning process and returns the counts without making actual changes. | |
| use_test_db | No | ||
| importance_threshold | No | Override the importance score threshold (0.0 - 1.0) below which entries are eligible for pruning. | |
| prune_older_than_days | No | Override the number of days before archived entries are soft-deleted. | |
| archive_older_than_days | No | Override the number of days before active entries are archived. | |
| hard_delete_older_than_days | No | Override the number of days before soft-deleted entries are permanently removed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| dryRun | No | ||
| details | No | Additional error context | |
| success | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| backupFile | No | ||
| suggestion | No | Suggested fix for the error | |
| prunedCount | No | ||
| recoverable | No | Whether the error is recoverable | |
| archivedCount | No | ||
| hardDeletedCount | No | ||
| aggregated_errors | No | Details of individual errors in a multi-step operation |