Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List UniFi Devices

unifi_list_devices
Read-onlyIdempotent

Lists adopted UniFi gateways, switches, and access points on a site with name, model, MAC, IP, and state; filter by status to find offline devices.

Instructions

List UniFi devices (gateways, switches, access points) adopted on a site, with name, model, MAC, IP, and state (ONLINE, OFFLINE, UPDATING, CONNECTION_INTERRUPTED, ISOLATED, ...). Use unifi_get_device for full details of one device. Filter example: "state.eq('OFFLINE')" to find offline devices.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unifi_list_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
filterNoOptional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here.
offsetNoNumber of results to skip, for pagination (default 0)
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
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 readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral context beyond that: it scopes results to adopted devices on a site and enumerates the possible state values (ONLINE, OFFLINE, UPDATING, CONNECTION_INTERRUPTED, ISOLATED), which tells the agent what conditions the data can represent. It does not discuss result volume or pagination behavior, keeping it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with purpose and return fields, then the sibling pointer, then the filter example. The filter example is somewhat redundant with the schema's own examples, which is the only wasted line. No filler or hedging elsewhere.

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?

There is no output schema, so the description correctly compensates by listing the returned fields (name, model, MAC, IP, state) and the state enum. Pagination, site auto-selection, and output format are all handled by richly described schema properties. The only remaining gap is nothing about result volume or ordering, which is minor for a read-only list.

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%, with limit, offset, siteId, responseFormat, and the filter grammar all documented in the schema itself. The description restates a filter example that already appears in the schema and adds no new syntax, defaults, or constraints. Baseline 3 is appropriate since the schema carries the parameter burden.

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?

The description names a specific verb and resource ("List UniFi devices") and narrows the scope to devices "adopted on a site", enumerating the concrete subtypes (gateways, switches, access points). It also states the returned fields and points at unifi_get_device for the single-device case, so an agent can distinguish it from the sibling without opening either schema.

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?

It gives explicit routing guidance: "Use unifi_get_device for full details of one device", which is the most likely confusion point. It also supplies a filter example for a concrete task (finding offline devices). It stops short of stating exclusions versus unifi_list_pending_devices or clarifying that unfiltered listing is the default path, so it is clear but not fully exhaustive.

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