Metric History
metrics_historyRetrieve recent CPU, memory, or network history from the server's in-memory recorder to inspect up to 24 hours of 30-second min/avg/max trends; recording must be enabled.
Instructions
Read-only. Recent CPU / memory / network history from this server's in-memory recorder (opt-in: MCP_METRICS_HISTORY=true): 30-second buckets with min/avg/max for up to 24 hours, honest about gaps; concise output folds the window into at most 24 rows. Nothing is persisted to disk — history starts when the server starts. When recording is off the tool says how to enable it. For current values rather than a trend, use system_metrics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topic": "<topic>"
},
"name": "metrics_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Series to return: cpu (percent), memory (percent, usedBytes), or network (rx/tx bytes per second summed over interfaces). | |
| window_minutes | No | How far back to look, in minutes; the maximum is the recorder's 24-hour retention. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |