Skip to main content
Glama
mcp-unifi-drive
by mgcrea

UniFi Drive: Get I/O Stats

unifi_drive_get_io_stats
Read-only

Fetch NAS I/O throughput summaries over a chosen window—pool and per-disk read/write KB/s, IOPS, temperature range, bad sectors, and live network rate—to spot busy periods or disk issues.

Instructions

Throughput over a window, reduced to average / peak (with when) / latest: pool read and write KB/s and IOPS, plus per-disk throughput, temperature range and any bad sectors added during the window. Also the live network rate. Use it for 'is the NAS busy?', 'what is hammering it?', or 'did a disk heat up overnight?'. Returns summaries, not the raw series, unless points is set.

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

Input Schema

NameRequiredDescriptionDefault
disksNoInclude per-disk series summaries. Defaults to true.
pointsNoAlso return the pool's raw read/write KB/s arrays (one value per sample, null for a gap). Off by default: a 30d window is 120 points per series.
windowNoTime window: "1h" (1-minute samples), "24h" (15-min), "7d" (hourly) or "30d" (6-hourly). Defaults to 24h.24h

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=true, so the description carries the rest and does so well: it discloses the aggregation model (average/peak with timestamp/latest), that bad sectors are counted only when added during the window, the presence of a live network rate, and that output is summarized rather than raw unless `points` is set. These are non-obvious output traits an agent could not infer from structured fields.

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?

The measured fields are front-loaded, followed by usage triggers and then the summary-versus-raw caveat, with no filler sentences. The opening sentence is dense with comma-separated clauses and takes a second read, which keeps it from a 5.

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 must convey return shape, and it does at a summary level: metric families, aggregation forms, and the raw-series opt-in. The exact response structure (e.g., how 'peak with when' is keyed) remains implicit, but that is a minor gap for a read-only diagnostic tool with three optional parameters.

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 the baseline would be 3, but the description adds real meaning: it explains why `points` exists (raw series versus summaries) and quantifies the cost ('a 30d window is 120 points per series'), and 'per-disk throughput' signals what the `disks` flag governs. The `window` parameter's enum values are left entirely to the schema.

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?

The description states a specific verb and resource — throughput statistics over a window — and enumerates exactly what is measured: pool read/write KB/s and IOPS, per-disk throughput, temperature range, bad sectors added, and live network rate. That level of specificity clearly separates it from sibling inventory tools like list_drives or get_storage.

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

Usage Guidelines4/5

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

Concrete usage questions ('is the NAS busy?', 'what is hammering it?', 'did a disk heat up overnight?') give an agent clear triggering contexts. It stops short of naming an alternative tool or a when-not condition, which keeps it below a 5.

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