Get Metric History
get_historyRetrieve historical CPU, memory, or load values for a server to analyze past performance and diagnose incidents.
Instructions
Get historical CPU, memory, or load values for a server
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": {
"host": "<host>"
},
"name": "get_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Server hostname or IP | |
| hours | No | How many hours of history to return | |
| label | No | Optional label filter; omitted returns observations, set returns matching records | |
| limit | No | Maximum history points returned in one page; defaults to 100 | |
| cursor | No | Opaque cursor returned by a previous history page | |
| metric | No | Metric to return from historical snapshots | cpu |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| hours | Yes | ||
| label | Yes | ||
| metric | Yes | ||
| history | Yes | ||
| has_more | Yes | ||
| data_points | Yes | ||
| next_cursor | Yes |