Context management health
context_statusSummarize context management over recent sessions: trims, token savings, fail-opens, stale proxy versions, and prompt-cache usage; use it instead of docker logs to check health.
Instructions
Summarize context management over recent sessions from the session store: trims, estimated tokens saved, fail-opens with their error type and location, the proxy code version (stale when it differs from the checkout), and provider-reported prompt-cache usage (hit ratio, cache-creation tokens on requests that made a new cut vs others, cache_control breakpoint counts). A fail-open means the request still succeeded but was sent untrimmed. Use this instead of docker logs; per-session detail is in smart_compact_sql's events table.
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": "context_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Window in hours, 1-720 (default 24) |