dry_run=True first to preview what would happen without making any changes.
Device control
restart_device
Sends a restart command to a UniFi device. The device will go offline briefly while it reboots. Use this to recover a device that is behaving unexpectedly without physically power-cycling it.
string
required
The site identifier where the device lives. Use
list_all_sites to find valid site IDs.string
required
MAC address of the device to restart, in colon-separated format (e.g.
aa:bb:cc:dd:ee:ff).boolean
required
Must be
true to execute the restart. Any other value raises ConfirmationRequiredError.boolean
When
true, validates that the device exists and returns a preview response without restarting. Defaults to false.locate_device
Enables or disables the LED locate mode on a UniFi device. When locate mode is on, the device’s LEDs flash in a distinctive pattern so you can physically identify it in a rack or ceiling installation.
string
required
The site identifier where the device lives.
string
required
MAC address of the device to locate.
boolean
Set to
true to start flashing the locate LED, or false to stop. Defaults to true.boolean
required
Must be
true to execute.boolean
When
true, returns a preview without changing the LED state. Defaults to false.upgrade_device
Initiates a firmware upgrade on a UniFi device. By default the device upgrades to the latest available firmware. You can optionally supply a custom firmware URL to target a specific version.
string
required
The site identifier where the device lives.
string
required
MAC address of the device to upgrade.
string
Optional URL pointing to a specific firmware binary. When omitted, the controller selects the latest stable firmware.
boolean
required
Must be
true to initiate the upgrade.boolean
When
true, validates the device exists and returns its current firmware version without starting an upgrade.Client management
block_client
Blocks a client device from accessing the network by MAC address. The block persists until you explicitly unblock the client.
string
required
The site identifier where the client is registered.
string
required
MAC address of the client to block.
boolean
required
Must be
true to block the client.boolean
When
true, validates the client exists and returns a preview without applying the block.unblock_client
Removes a MAC-level block from a previously blocked client, restoring their network access.
string
required
The site identifier.
string
required
MAC address of the client to unblock.
boolean
required
Must be
true to unblock the client.boolean
When
true, returns a preview without making changes.reconnect_client
Forces a currently connected client to disconnect and re-authenticate. This is useful for applying updated network policies or resolving connectivity issues without blocking the client permanently. The client must be actively connected — if it is not present in the active station list, the tool raises ResourceNotFoundError.
string
required
The site identifier.
string
required
MAC address of the connected client to force-reconnect.
boolean
required
Must be
true to force the reconnection.boolean
When
true, validates the client is active and returns a preview without kicking them.reconnect_client only works on actively connected clients. Use list_active_clients to confirm the client is online before calling this tool.