get_mcp_token_stats
Retrieve accumulated per-command token usage statistics sorted by highest estimated tokens. Enable debug mode first with set_mcp_debug.
Instructions
Get accumulated per-command token usage statistics.
Returns commands sorted by max_estimated_tokens (worst offenders first). Each entry shows: call_count, avg/max/total estimated tokens, response chars.
Enable debug mode first with set_mcp_debug(enabled=True).
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_mcp_token_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |