cleanup_scans
Remove older disk scans from the database to free up storage by keeping only a specified number of the most recent scans.
Instructions
Remove older scans from the database to free up space.
Keeps the N most recent scans and deletes everything older. Entries are cascade-deleted when their parent scan is removed.
Args: keep_latest: Number of most recent scans to keep (default 5, min 1). ctx: MCP context (injected automatically).
Returns: Report of which scans were deleted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cleanup_scans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_latest | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |