session_health_check
Run integrity checks on agent memory to detect and fix missing embeddings, duplicate entries, orphaned handoffs, and stale rollups. Use auto_fix for automatic repair.
Instructions
Run integrity checks on the agent's memory (like fsck for filesystems). Scans for missing embeddings, duplicate entries, orphaned handoffs, and stale rollups.
Checks performed:
Missing embeddings — entries that can't be found via semantic search
Duplicate entries — near-identical summaries wasting context tokens
Orphaned handoffs — handoff state with no backing ledger entries
Stale rollups — compaction artifacts with no archived originals
Use auto_fix=true to automatically repair missing embeddings and clean up orphans.
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": "session_health_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto_fix | No | If true, automatically repair issues (backfill embeddings, remove orphaned handoffs). Default: false. |