prune_stale_links
Remove stale memory graph edges and orphan nodes to maintain an optimized, lean graph structure by eliminating low-weight connections and unused elements.
Instructions
Remove stale memory graph edges whose weight has decayed below threshold via e^(-λt) formula. Also removes orphan nodes with no edges, low access count, and >7 days since last access. Keeps the graph lean.
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": "prune_stale_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | Minimum decayed weight to keep an edge. Default: 0.15. Lower = keep more edges. |