Skip to main content
Glama

WatchFor

Get host metrics

get_host_metrics
Read-onlyIdempotent

Metric 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

NameRequiredDescriptionDefault
rangeNoTrailing window24h
host_idYesHost id (UUID)
metricsYesMetric names, 1-28

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the allowed window, that results are bucketed to match the host page's chart resolution, and that some series are per-mount or per-interface (implying multiple series per metric). It does not describe return shape or how bucket granularity varies with range, which is the main remaining gap.

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 sentences, both load-bearing: the first establishes purpose, window and bucketing; the second delivers the metric catalogue that the agent cannot get elsewhere. Purpose is front-loaded and the long enumeration is justified data rather than padding.

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 carries return-value burden, and 'time series ... bucketed like the host page's charts' conveys the shape adequately for a metrics read. The metric catalogue closes the biggest ambiguity; only the exact response envelope (timestamps, series keys, empty-result behavior) is left unstated.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description goes well beyond it: the schema only constrains metric names by regex pattern, while the description supplies the actual valid catalogue (cpu.usage_pct, disk.used_pct, net.rx_bytes_per_s, etc.) and flags which are per-mount or per-interface. That is essential meaning the schema cannot convey.

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+resource ('Metric time series for a host'), pins the time scope (1h–30d) and the bucketing model, and enumerates the exact metric vocabulary. An agent can tell this apart from get_host (host attributes) or get_monitor_checks without opening any schema.

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 is implied by the framing ('for a host', 'like the host page's charts'), which tells the agent this is the chart-equivalent read path. However, there is no explicit when-to-use vs when-not guidance and no mention of the sibling get_host or any prerequisite such as host availability.

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.