pii_purge_sessions
Deletes PII encryption sessions older than a specified number of days, matched by creation time. Requires confirm=true to run; rejects an age below 1 day.
Instructions
Delete PII encryption sessions older than N days (Step 103, ADR-103). Sessions are matched by creation time only; the encryption key is not required. Returns purged (count of deleted sessions) or ok:false when olderThanDays is invalid (< 1).
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": {
"olderThanDays": "<olderThanDays>",
"confirm": "<confirm>"
},
"name": "pii_purge_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | mandatory acknowledgement that this call mutates state; the tool writes nothing unless it is true (D5-08, D5-12) | |
| olderThanDays | Yes | Delete sessions created before this many days (>= 1) |