Skip to main content
Glama

get_device_stats

Read-only

Retrieve performance and traffic stats for a UniFi device: CPU, memory, temperature, fan, client counts, traffic totals, and AP radio stats. Use when you need current device health metrics.

Instructions

Get performance and traffic statistics for one UniFi device.

Read-only operation: returns CPU/memory load, temperatures, fan level, client counts (user/guest), traffic totals, and AP radio stats where applicable. Use get_device_details for the full config record instead of metrics, or list_devices for a lightweight summary.

Args: mac: Device MAC address (case-insensitive; aa:bb:cc:dd:ee:ff or aabbccddeeff). site: Site to operate on. Defaults to "default". device: Optional device name to target a specific console; omit for default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
macYesDevice MAC address (case-insensitive; aa:bb:cc:dd:ee:ff or aabbccddeeff).
siteNoSite to operate on. Defaults to "default".default
deviceNoOptional device name to target a specific console; omit for default.
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description reinforces and expands on this by listing exactly what metrics are returned and noting 'where applicable' for AP radio stats. This goes beyond the annotation's minimal signal, though it does not discuss rate limits or error conditions.

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?

The description is front-loaded with the core purpose, followed by a compact metric list and explicit sibling alternatives. The Args section is structured and each sentence contributes meaningful guidance without redundancy or filler.

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?

Despite lacking an output schema, the description names the expected return content in enough detail (CPU/memory, temperatures, fan, client counts, traffic, AP stats) for an agent to know what this tool provides. With all parameters documented and alternatives specified, nothing needed for correct invocation is 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 description coverage is 100%, so the baseline is 3. The description's Args section largely duplicates the schema rather than adding new semantics; it clarifies MAC format and device targeting, but these are already present in the schema descriptions.

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 and resource: 'Get performance and traffic statistics for one UniFi device.' It enumerates the metrics returned and explicitly distinguishes itself from get_device_details and list_devices, so an agent can immediately understand its scope relative to siblings.

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?

Provides clear routing guidance: use get_device_details for full config records, list_devices for lightweight summaries, and this tool specifically for metrics. It also frames the operation as read-only, helping the agent choose appropriate contexts.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikeholownych/unifi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server