Skip to main content
Glama

get_host_stats

Retrieve CPU and memory usage statistics for an XCP-ng host across a selected time range, enabling capacity planning and performance monitoring.

Instructions

Get CPU and memory usage statistics for an XCP-ng host over a time period. Useful for capacity planning and performance monitoring.

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>"
    },
    "name": "get_host_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesHost UUID or Xen Orchestra object ID
granularityNoTime granularity for statistics. 'seconds' = last 10 min, 'minutes' = last 2 hrs, 'hours' = last 1 week, 'days' = last year. Default: minutes.minutes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the burden; 'Get' implies a safe read but read-only behavior is never declared, and nothing is said about data retention windows, volume of points returned, or rate limits. It does add the temporal-scope concept, which is genuine context beyond the schema.

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?

Two short sentences with no filler, and the resource-and-scope statement is front-loaded ahead of the use-case clause. Every sentence earns its place.

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 two-parameter read tool with full schema coverage and no output schema, this is close to sufficient — an agent knows what it fetches and over what windows. The only real omission is any hint of the shape or volume of the returned statistics series.

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% and the granularity enum already spells out each window in detail, so the schema does the heavy lifting. The description's 'over a time period' reinforces that the call is time-scoped, which is a modest addition above the baseline.

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?

Names a specific verb and resource ('Get CPU and memory usage statistics for an XCP-ng host') and scopes it to a time period, which clearly separates it from metadata siblings like get_host or list_hosts. It does not explicitly name a sibling it is not, so it stops short of a 5.

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?

'Useful for capacity planning and performance monitoring' gives an implied usage context but never states when to prefer this over get_host or another listing tool, nor any prerequisites. Guidance is present but inferential rather than explicit.

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