Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get UniFi Device Details

unifi_get_device
Read-onlyIdempotent

Retrieves full details for one adopted UniFi device by ID, including firmware update availability, adoption time, port/PoE state, and radio information. Use device IDs from the device list.

Instructions

Get full details for one adopted UniFi device by ID: firmware version and update availability, adoption time, port table (with PoE state), and radio table. Get device IDs from unifi_list_devices.

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

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

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the safety profile is covered. The description adds real behavioral context beyond that: the device must be "adopted," and it discloses the returned data shape (port table with PoE state, radio table) despite there being no output schema.

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, front-loaded with the action and return payload, followed by the ID-sourcing hint. No filler, no restatement of the tool name, and the returned fields are listed in a compact clause.

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?

The tool has no output schema, and the description compensates by enumerating the returned data (firmware, update availability, adoption time, port/PoE and radio tables). With annotations covering safety and full schema coverage on all three parameters, an agent has everything needed to call it correctly.

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% — every parameter including siteId's single-site fallback and responseFormat's markdown/json tradeoff is already documented inline. The description's "by ID" and pointer to unifi_list_devices duplicate what the schema text already says, so it adds little new parameter meaning.

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 ("Get full details for one adopted UniFi device by ID") and enumerates exactly what comes back: firmware/update availability, adoption time, port table with PoE state, and radio table. This content list separates it from a bare lookup, though it does not explicitly distinguish itself from the similarly named unifi_get_device_statistics sibling.

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?

Provides a concrete prerequisite/route: "Get device IDs from unifi_list_devices," so an agent knows the call sequence without opening other schemas. It offers no when-not-to-use guidance or comparison to the statistics sibling, which is the main remaining gap.

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