Skip to main content
Glama

GPU Metrics

gpu_metrics
Read-onlyIdempotent

Read GPU utilization, VRAM, temperature, and power over SSH for NVIDIA, or parse Intel GPU load summaries; use it for GPU load metrics not covered by system monitoring.

Instructions

Read-only. GPU utilization over SSH: full per-GPU metrics via nvidia-smi (utilization, VRAM, temperature, power) when the NVIDIA driver plugin is installed; a one-line summary (frequency, idle share, engine load, GPU clients) parsed from a 3-second intel_gpu_top sample for Intel; a clear absence report otherwise. NVIDIA takes precedence when both are present. Use this for GPU load, which system_metrics does not report. Requires SSH (UNRAID_SSH_*).

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": "gpu_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), yet the description adds real behavior: SSH dependency and env vars, plugin-installation dependency for NVIDIA, a ~3-second sampling cost for Intel, a defined fallback summary, and a 'clear absence report' when no GPU tooling exists. What it does not disclose is output shape specifics or error/failure modes (e.g. SSH unreachable), which keeps it short of a 5.

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?

Front-loaded with 'Read-only' and then the vendor breakdown; every clause carries information and nothing is filler. It is a single dense, semicolon-chained sentence, which is slightly harder to parse than bulleted structure and buries the SSH prerequisite at the end.

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?

No output schema exists, and the description compensates by describing what each backend returns and the absence case. Given a one-parameter, read-only tool with full annotation coverage, that is close to complete; only failure behavior and exact returned fields per backend remain unspecified.

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?

Only one optional parameter and its schema description is already 100% covered, including the enum and default, so baseline would be 3. The description doesn't discuss response_format, but it does pre-define the readable-text default content ('one-line summary', metric list), which slightly helps the agent understand what the concise mode yields versus detailed JSON.

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 (reads GPU utilization) and enumerates exactly what is returned per backend: nvidia-smi utilization/VRAM/temperature/power, or a one-line intel_gpu_top summary (frequency, idle share, engine load, clients). It also explicitly separates itself from system_metrics, so an agent can pick correctly without opening a schema.

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?

Gives an explicit selection rule: 'Use this for GPU load, which system_metrics does not report,' naming the sibling to use otherwise. It also documents the prerequisite (Requires SSH / UNRAID_SSH_*) and the vendor precedence rule (NVIDIA wins when both present), leaving little to inference.

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