site_id to scope the request to a specific site; use "default" for single-site installations.
list_devices_by_type
Returns all devices on a site that match a given device type string. This is the primary way to list devices filtered to a specific hardware category.
Parameters
string
required
The site identifier. Use
"default" for single-site deployments or the site’s internal ID for multi-site setups.string
required
Device type filter string. Matched against the
type field and the model field. Common values:uap— UniFi access pointsusw— UniFi switchesugw— UniFi Security Gatewaysudm— UniFi Dream Machinesuxg— UniFi Express Gateways
number
default:"100"
Maximum number of devices to return.
number
default:"0"
Number of devices to skip before returning results. Use with
limit for pagination.Response
Returns an array of device objects.Example response
get_device_details
Returns the full configuration and status record for a single device identified by its ID.
Parameters
string
required
The site identifier.
string
required
The device’s unique identifier (
_id from the UniFi API). Use list_devices_by_type or search_devices to find a device’s ID.Response
Returns a single device object with the same fields aslist_devices_by_type, plus any additional fields present in the UniFi API response for that device.
Example response
If the device ID is not found on the site, the tool raises
ResourceNotFoundError. Make sure the device_id belongs to the same site as site_id.get_device_statistics
Returns real-time performance statistics for a single device: CPU usage, memory usage, throughput counters, and uptime.
Parameters
string
required
The site identifier.
string
required
The device’s unique identifier.
Response
string
The device identifier that was queried.
number
Device uptime in seconds.
number
CPU utilization percentage (0–100). May be
null if not reported by the device.number
Memory utilization percentage (0–100). May be
null if not reported by the device.number
Total bytes transmitted since last reset.
number
Total bytes received since last reset.
number
Combined total bytes (
tx_bytes + rx_bytes).number
Current connection state.
1 = online, 0 = offline.number
Number of hops from the gateway.
0 indicates the device is directly connected to the gateway.Example response
search_devices
Searches all devices on a site by name, MAC address, IP address, or model string. The search is case-insensitive and matches partial strings.
Parameters
string
required
The site identifier.
string
required
The search string. Matched against device
name, mac, ip, and model fields. Partial matches are returned.number
default:"100"
Maximum number of results to return.
number
default:"0"
Number of results to skip for pagination.
Response
Returns an array of device objects matching the query, in the same format aslist_devices_by_type.
list_pending_devices
Returns devices that are visible on the network but have not yet been adopted into the site. Use this to discover new hardware before calling adopt_device.
Parameters
string
required
The site identifier.
number
default:"100"
Maximum number of pending devices to return.
number
default:"0"
Number of results to skip for pagination.