knowledge_set_retention
Set a time-to-live (TTL) retention policy to automatically soft-delete old entries from project memory. Configure number of days to auto-expire sessions or disable auto-expiry.
Instructions
Set an automatic data retention policy (TTL) for a project's memory. Entries older than ttl_days will be soft-deleted (archived) automatically on every server startup and every 12 hours while running.
Use cases:
Set
ttl_days: 90to auto-expire sessions older than 3 monthsSet
ttl_days: 0to disable auto-expiry (default)
Note: Rollup/compaction entries are never expired — only raw sessions.
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": {
"project": "<project>",
"ttl_days": "<ttl_days>"
},
"name": "knowledge_set_retention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project to set retention policy for. | |
| ttl_days | Yes | Entries older than this many days are auto-expired. Set to 0 to disable. Minimum: 7 days when enabled. |