get_stats
Retrieve token usage, session budget, and subsystem stats by category for a project to monitor and optimize token-savior behavior.
Instructions
Unified stats dispatcher. category = usage (default) | session_budget | tca | dcp | linucb | warmstart | leiden | speculation | lattice.
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": "get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name/path (default: active). | |
| category | No | Which stats subsystem to report (default 'usage'). | |
| context_type | No | For category=lattice: filter to one context (navigation/edit/review/unknown). | |
| budget_tokens | No | For category=session_budget: soft budget cap (default 200000). |