Get Token Efficiency & Audit Metrics
get_token_metricsQuery token savings and budgeting statistics plus recent audit logs from the global memory database, using a configurable time window and log limit.
Instructions
Query machine-wide token savings, budgeting statistics, and audit logs from ~/.ag-memory-mcp/global.db.
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_token_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum recent audit logs to retrieve | |
| timeframe_hours | No | Time window in hours (default 24) |