Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Power-Cycle a PoE Port

unifi_power_cycle_port
Destructive

Remotely power-cycle a single PoE port on a UniFi switch to reboot a hung camera, access point, or phone. Cuts and restores port power, so confirm the connected device can lose power.

Instructions

Power-cycle a single PoE port on a UniFi switch — briefly cuts and restores power to whatever is plugged into that port (camera, AP, phone). Useful to remotely reboot a hung PoE device. CAUTION: the connected device loses power; confirm with the user first.

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>",
      "portIdx": "<portIdx>"
    },
    "name": "unifi_power_cycle_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
portIdxYesPort number as shown in unifi_get_device's port table
deviceIdYesSwitch device ID (UUID from unifi_list_devices)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description still adds real value beyond them: the physical consequence ('briefly cuts and restores power'), the collateral impact (the attached device loses power), and an operational rule to confirm with the user before invoking.

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?

Three short sentences: what it does, why you would use it, and the caution. Nothing is redundant and the effect is front-loaded ahead of the warning.

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?

For a destructive, three-parameter mutation with no output schema, the description covers impact and the confirmation requirement adequately. It omits minor details such as how long the cycle lasts or what happens if the port is not delivering PoE, which would help an agent set expectations.

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 deviceId, portIdx, and siteId each documented including their source lookup tools. The description adds no parameter-level meaning, so the baseline 3 applies.

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?

States a specific verb and resource ('power-cycle a single PoE port on a UniFi switch') and adds concrete examples of what hangs off the port (camera, AP, phone). No sibling tool in the list performs power cycling, so the operation is unambiguous without opening the 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?

Gives a clear triggering scenario ('remotely reboot a hung PoE device') and a precondition ('confirm with the user first'). It does not name an alternative course of action such as unifi_get_device to verify port state first, so it falls short of full when/when-not guidance.

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