Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get UniFi Device Statistics

unifi_get_device_statistics
Read-onlyIdempotent

Retrieve live health metrics for an adopted UniFi device, including uptime, CPU, memory, load average, and uplink throughput. Use it to check device health or determine if an access point is overloaded.

Instructions

Get the latest live statistics for one adopted device: uptime, CPU %, memory %, load average, and uplink throughput (bits/sec). Good for health checks and 'is this AP overloaded?' questions.

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": {
      "deviceId": "<deviceId>"
    },
    "name": "unifi_get_device_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
deviceIdYesDevice ID (UUID from unifi_list_devices)
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds the useful behavioral facts that results are a live point-in-time snapshot (not historical) and that the device must be adopted, plus the throughput unit (bits/sec). It says nothing about what happens for an offline/unadopted device or how stale the 'latest' sample can be.

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 tight sentences: the resource and metric list come first, then the use case. No filler, no repetition of the title, and every clause contributes information.

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 simple single-device read tool with full schema coverage and annotations, the description covers purpose, returned metrics, units, and typical use. The only gap is that no output schema exists and the description does not characterize the return payload beyond the listed metrics, which an agent would have to discover at call time.

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 description coverage is 100%, including the optional siteId defaulting behavior and the responseFormat enum, so the schema carries parameter meaning. The description adds only the bits/sec unit convention for the reported throughput; it adds nothing about deviceId or siteId beyond what the schema states, so baseline 3 is appropriate.

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?

States a specific verb ('Get') and resource ('latest live statistics') and enumerates exactly which metrics are returned: uptime, CPU %, memory %, load average, uplink throughput. This clearly separates it from sibling unifi_get_device (static/adopted device details) by the metric-oriented scope, though the description never names that sibling explicitly.

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?

Gives concrete use cases ('health checks', 'is this AP overloaded?') that tell an agent when to reach for it. It does not state when NOT to use it or name unifi_get_device as the alternative for configuration data, so the routing guidance is clear but not complete.

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

Deploy Server

Other Tools