get_server_metrics
Retrieve CPU, disk, and network metrics for a Hetzner Cloud server over the last 30 days, with per-series summaries and optional raw time series for any time range.
Instructions
Get server metrics (last 30 days only). Output starts with a per-series summary {points,min,avg,max,last}, then the raw time_series unless include_values=false. Series: cpu → cpu (percent, per vCPU: 100 = one full vCPU, so divide by vCPU count for overall usage); disk → disk.0.iops.read/write (iop/s), disk.0.bandwidth.read/write (bytes/s); network → network.0.pps.in/out (packets/s), network.0.bandwidth.in/out (bytes/s) on the public interface. Time range: pass start+end (ISO-8601), or omit both and use last_minutes (default 60)
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": {
"id": "<id>",
"type": "<type>"
},
"name": "get_server_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Server ID | |
| end | No | Period end, ISO-8601/RFC3339. Give with start | |
| step | No | Resolution in seconds. Omit to let the API pick (~200 samples); the API caps at 500 samples and adjusts step to fit | |
| type | Yes | Metric types, e.g. ["cpu"] or ["cpu","network"] | |
| start | No | Period start, ISO-8601/RFC3339 (e.g. 2026-11-11T10:00:00Z). Give with end, or omit both and use last_minutes | |
| last_minutes | No | Convenience: period = now minus N minutes until now. Used only when start/end are omitted; default 60. Max 43200 (30-day retention) | |
| include_values | No | Include the raw time series ([unix_ts, "value"] pairs) after the summary. Default true; set false for just the min/avg/max/last summary (much smaller output) |