Get host metrics
get_host_metricsMetric time series for a host over 1h–30d, bucketed like the host page's charts. Metric names are the agent's catalogue: cpu.usage_pct, cpu.iowait_pct, cpu.steal_pct, load.1, mem.used_pct, swap.used_bytes, disk.used_pct (per mount), disk.inodes_used_pct, diskio.read_bytes_per_s, net.rx_bytes_per_s, net.tx_bytes_per_s (per interface), proc.total, sys.uptime_s.
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_id": "<host_id>",
"metrics": "<metrics>"
},
"name": "get_host_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Trailing window | 24h |
| host_id | Yes | Host id (UUID) | |
| metrics | Yes | Metric names, 1-28 |