Get VPS Metrics
get_vserver_metricsGet VPS metrics for a timeframe. Each point is a Proxmox RRD average: netInBytes, netOutBytes, diskReadBytes and diskWriteBytes are average bytes per second over the point's step (not byte volumes; multiply by the gap between consecutive time values to get a volume), cpuPercent is the CPU usage in percent and memoryUsedMb/memoryMaxMb are MiB. time is a Unix timestamp in seconds. points is empty only when the VPS is not running. If the host of a running VPS does not return monitoring data (ZapX retries once), the call fails with HTTP 503 vserver_metrics_unavailable (MCP: an error result saying the metrics are temporarily unavailable) instead of returning an empty list: that does not mean the VPS is idle, retry later.
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": {
"serviceId": "<serviceId>"
},
"name": "get_vserver_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serviceId | Yes | ID of the VPS: the "id" field from list_account_services or list_vservers (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here. | |
| timeframe | No |