Skip to main content
Glama

Get System Metrics

system_metrics
Read-onlyIdempotent

Capture a read-only, point-in-time snapshot of CPU load, memory pressure, per-interface network rates/errors, server time/NTP, and optional temperature sensors for Unraid monitoring.

Instructions

Read-only. Point-in-time resource snapshot: CPU load, memory pressure (percent + available bytes), per-interface network rates/errors, server time (timezone, NTP), and optionally temperature sensors (include_temperature). Network rates read 0 right after the Unraid API restarts. For trends over time use metrics_history, for per-container usage docker_stats, for GPUs gpu_metrics, and for a scored verdict system_health. Requires INFO+VARS read permission (any viewer-level key).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "system_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
response_formatNo`detailed` returns full JSON instead of readable text.concise
include_temperatureNoAlso probe temperature sensors; off by default because a cold probe can take seconds on multi-disk servers.

Output Schema

NameRequiredDescriptionDefault
metricsYes
systemTimeYes
data_age_msYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.3
    • addedInput schema / properties / include_temperature / description
      Added value: +"Also probe temperature sensors; off by default because a cold probe can take seconds on multi-disk servers."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent/non-destructive profile, and the description adds genuine context beyond them: the required permission tier, and the operational caveat that network rates read 0 immediately after an Unraid API restart — a failure mode an agent would otherwise misread as data. It also flags that temperature probing can take seconds, which sets latency expectations.

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?

Front-loads the read-only/snapshot framing, then enumerates contents, then caveats, then alternatives and permissions — a clean information hierarchy with no filler. Dense but every clause carries operational value.

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

Completeness5/5

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

An output schema exists, so return-value explanation is not required, and annotations cover the safety profile. What remains — scope, auth, staleness caveat, and sibling routing — is all present, leaving nothing an agent needs missing.

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 100% and both parameters carry their own descriptions (including the enum values and the cold-probe rationale), so the schema does the heavy lifting. The description only gestures at include_temperature ("optionally temperature sensors") and never mentions response_format, so it adds little beyond the schema — baseline 3.

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?

Specific verb+resource ("point-in-time resource snapshot") followed by an explicit enumeration of returned signals: CPU load, memory pressure, per-interface network rates/errors, server time/NTP, and optional temperatures. The agent can tell exactly what this returns and how it differs from metrics_history, docker_stats, gpu_metrics, and system_health.

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

Usage Guidelines5/5

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

Explicitly routes the agent to four named alternatives with the condition that selects each (trends → metrics_history, per-container → docker_stats, GPUs → gpu_metrics, scored verdict → system_health). It also states the auth prerequisite (INFO+VARS read, any viewer-level key), which removes a common invocation failure.

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