Skip to main content
Glama
UniFi Network API MCP Server

UniFi Network API MCP Server

by sevaepsteyn

power_cycle_port

Temporarily disables and re-enables PoE power on a specified UniFi device port to restart connected PoE-powered devices such as access points or cameras.

Instructions

Power cycle a specific port on a device.

This will temporarily disable PoE power on the port and then re-enable it. Useful for restarting PoE-powered devices like access points or cameras.

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": {
      "site_id": "<site_id>",
      "device_id": "<device_id>",
      "port_idx": "<port_idx>"
    },
    "name": "power_cycle_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesSite UUID
port_idxYesPort index (1-based)
device_idYesDevice UUID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the key behavioral trait: PoE power is temporarily disabled then re-enabled, i.e., a disruptive but self-restoring action. It does not state the expected outage duration, what happens if the port supplies no PoE/does not support power cycling, or any permission requirements, which for an unannotated mutation tool are meaningful gaps.

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 the action, followed by a mechanism explanation and a use case; nothing is padded or repeated. The closing 'useful for...' sentence is slightly generic but still adds actionable context.

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 simple three-parameter, all-required tool with complete schema descriptions and an output schema that covers return values, the description explains the mechanism and the intended scenario sufficiently to call it correctly. The remaining omissions (outage duration, non-PoE error behavior, permissions) are refinements rather than blockers.

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%, so site_id, device_id, and port_idx are already documented in the schema. The description only restates 'a specific port' and adds no format, constraint, or 1-based indexing detail beyond what the schema provides, so the baseline of 3 applies.

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?

The description gives a specific verb ('power cycle') plus resource ('a specific port on a device'), so its function is unambiguous. It does not differentiate itself from the sibling 'restart_device', which plausibly serves an adjacent purpose (restarting a whole device vs. one port), leaving that distinction to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It offers a concrete use case — restarting PoE-powered devices like access points or cameras — which implies when to reach for it. However, there are no exclusions or explicit routing advice (e.g., use restart_device when the entire device is unresponsive, or what to do for a non-PoE port), so the agent must infer alternatives from sibling names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.