Skip to main content
Glama

unifi_get_device

Read-onlyIdempotent

Retrieve one UniFi device by name, MAC, IP or id to view model, state, firmware, uptime, CPU/memory, uplink and interfaces. Ambiguous names return candidate matches.

Instructions

Show one device by name, MAC, IP or id: model, state, firmware, uptime, CPU/memory, uplink rate, features and interfaces, and the legacy adoption state. An ambiguous name returns the candidates.

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": {
      "device": "<device>"
    },
    "name": "unifi_get_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
deviceYesDevice name, MAC, IP address or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavior: the full set of fields returned and the non-obvious rule that an ambiguous name yields candidate matches instead of an error. It does not state what happens when nothing matches.

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 sentences, both front-loaded: the retrieval scope first, then the ambiguity fallback. The field enumeration is dense but earns its place because no output schema exists.

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, listing the returned fields is exactly the right compensation, and the ambiguity rule covers the main failure mode. Minor gaps remain: behavior on no match, and that site is optional and scopes the lookup.

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%, and both parameters (device, site) are documented in the schema. The description's "by name, MAC, IP or id" restates the schema's device description rather than extending it, and the optional site parameter is not mentioned at all. Baseline 3 applies.

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 and resource ("Show one device") and enumerates the returned attributes (model, state, firmware, uptime, CPU/memory, uplink, interfaces, adoption state). The word "one" implicitly distinguishes it from unifi_list_devices, but no sibling is named explicitly, so it falls short of a 5.

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 implied: look up a single known device by any of four identifier forms. There is no explicit when-to-use vs. when-not guidance and no pointer to unifi_list_devices for browsing or to unifi_adopt_device/unifi_restart_device for actions. The ambiguity note ("returns the candidates") is useful input-handling guidance but not selection guidance.

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