Skip to main content
Glama

Get VPS Metrics

get_vserver_metrics
Read-onlyIdempotent

Get 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

NameRequiredDescriptionDefault
serviceIdYesID 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.
timeframeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses unit semantics (bytes-per-second averages requiring multiplication by the time gap, MiB, percent, Unix seconds) and the precise failure behavior: HTTP 503 `vserver_metrics_unavailable`, one retry by ZapX, and the warning that this is not idleness. That is exactly the kind of context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, followed by field semantics and then edge cases in a logical order; nearly every clause carries information. It is dense — the field list and the 503 paragraph could be split for scanability — but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly supplies the return shape, units, and the empty-result and error semantics, which is the bulk of what an agent needs. The missing piece is the meaning of each `timeframe` value and its resulting point step, which matters because the returned numbers are per-step averages.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: `serviceId` is richly documented in the schema (ID sources, numericId acceptance, rejection of other service types), so repeating it is unnecessary. `timeframe` has no schema description and the description only says 'for a timeframe' without explaining what window or RRD step each enum value yields — a real gap given the per-step averaging semantics, but the baseline of 3 fits a half-covered two-parameter schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Get VPS metrics for a timeframe') and enumerates exactly which series come back, so an agent can tell it apart from a plain traffic or server-info sibling. It never names a sibling explicitly (e.g. get_vserver_traffic vs. these RRD metrics), so differentiation is inferential rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied by the data semantics ('average bytes per second', not volumes) and the empty-list and 503 conditions, which tell the agent how to interpret and react to results. There is no explicit when-to-use/when-not guidance and no statement of when a caller should prefer this over get_vserver_traffic or get_vserver_activity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources