Skip to main content
Glama

Get service graphs

get_service_graphs
Read-onlyIdempotent

Fetch performance graph series for a VPSnet service by metric and period, optionally narrowing IO, network, or Firecracker fields. Use it to inspect resource trends.

Instructions

Get one performance graph series for a service: pick a metric and a period. fc_block, fc_net_native and fc_pressure exist only for Firecracker VPS. fields narrows io/net/fc_* metrics to some series. A wrong metric, period or field answers 422 with invalidParameter and allowedValues. Requires services:read when called with an API key.

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": {
      "orderNo": "<orderNo>",
      "metric": "<metric>",
      "period": "<period>"
    },
    "name": "get_service_graphs"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoOnly these series. io: ior, iow, iops. net: rx, tx, rxp, txp. fc_block: read_bytes, write_bytes, read_ops, write_ops, queue_events, throttle_events. fc_net_native: rx_bytes, tx_bytes, rx_packets, tx_packets, queue_events. fc_pressure: major_faults, minor_faults, swap_in, swap_out, oom_kills, alloc_stalls, async_scan, direct_scan, async_reclaim, direct_reclaim.
metricYesMetric: cpu, ram, ssd (disk use; storage is the same), swap, lavg (load average), io, inode, net, proc, or a Firecracker-only fc_* metric
periodYesTime window ending now
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations it discloses the failure contract (422 with invalidParameter and allowedValues on a bad metric, period or field) and an auth requirement (services:read when called with an API key). It does not describe rate limits or the shape of the returned series, but the added operational context is substantial.

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

Conciseness5/5

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

Four dense sentences that front-load the core action, then constraints, then error behavior, then auth. No filler or restated boilerplate; every sentence carries distinct information.

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?

For a 4-parameter read tool with no output schema, the description covers selection, platform gating, error semantics and permissions, which is close to complete. It stops short of describing the returned series structure or cardinality, but no output schema exists to lean on, leaving a minor gap.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description genuinely adds beyond it by stating that fc_block/fc_net_native/fc_pressure are Firecracker-VPS-only and that fields narrows io/net/fc_* metrics to selected series — a cross-parameter interaction the schema does not express.

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

Purpose5/5

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

States a specific verb and resource: "Get one performance graph series for a service", with the two selecting inputs (metric, period) named immediately. This is clearly distinct from adjacent read tools like get_service_history, get_service or list_services, which cover different resources.

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?

It gives the selection mechanics ("pick a metric and a period") and a conditional domain constraint (fc_* metrics exist only for Firecracker VPS), which implies when the tool is usable. However it never contrasts itself with sibling tools or states when not to use it, so guidance remains implicit.

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

Deploy Server

Other Tools