Skip to main content
Glama

Inspect UniFi Device

unifi_inspect_device
Read-only

Retrieve one adopted UniFi device's ports, radios, uplink, and firmware plus its latest stats—uptime, CPU, memory, and traffic—in a single call.

Instructions

Gets one adopted device's details (ports, radios, uplink, firmware) and its latest statistics (uptime, CPU, memory, traffic) in one call.

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_inspect_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdYes

Output Schema

NameRequiredDescriptionDefault
deviceNo
latestStatisticsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds two useful behavioral facts beyond that: the device must be 'adopted' (a precondition) and the call returns details plus statistics 'in one call' (avoiding extra round trips). It says nothing about error behavior for unadopted/unknown IDs.

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?

One front-loaded sentence with parenthetical enumerations that convey scope without waste. Every clause earns its place; nothing is repeated from the schema or annotations.

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?

The tool is simple (one parameter, output schema present, so return-shape explanation is unnecessary), and the description covers both data classes it returns. The only gap is not distinguishing itself from generic read siblings such as unifi_read or unifi_internal_read.

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 0% for the single deviceId parameter, and the description only weakly compensates by implying the ID must belong to an adopted device. Format (UUID) and where to obtain the ID come from the schema/siblings, not the description; with one parameter and an existing output schema this is adequate but thin.

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?

Specific verb ('Gets') plus a precise resource ('one adopted device's details ... and its latest statistics') with enumerated content (ports, radios, uplink, firmware, uptime, CPU, memory, traffic). The singular 'one adopted device' implicitly contrasts with listings such as unifi_list_devices, though no sibling is named.

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

Usage Guidelines3/5

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

Usage is only implied: an agent infers this is the call to make when it already has a single deviceId and wants both config and stats. There is no explicit when-to-use/when-not guidance and no stated alternative (e.g., using the list tool first to obtain an ID).

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