Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Restart UniFi Device

unifi_restart_device
Destructive

Reboot one adopted UniFi device by device ID to recover connectivity or reset its state; traffic drops during the restart, so confirm shared-infrastructure outages first.

Instructions

Restart (reboot) one adopted UniFi device. CAUTION: the device drops all traffic while rebooting — restarting a gateway or the switch/AP serving this machine will cause an outage of a minute or more. Confirm with the user before restarting shared infrastructure.

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

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
deviceIdYesDevice ID (UUID from unifi_list_devices)

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 destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is structured data. The description adds real context beyond that: traffic drops during reboot, the outage lasts a minute or more, and shared infrastructure needs user confirmation. It stops short of describing failure behavior (unreachable device, partial restart, error surfacing).

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 sentences, front-loaded with the action and immediately followed by the CAUTION. Every sentence carries distinct information — action, blast radius, and the confirmation precondition — with no repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with no output schema and fully annotated behavior, the description supplies the decision-critical risk information an agent needs before invoking it. Nothing essential about scope, danger, or required user consent is absent.

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%, and both parameters already document their UUID formats and the fallback for siteId. The description only implies that deviceId must reference an adopted device ("one adopted UniFi device"), adding marginal meaning beyond the schema, so the baseline 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 states a specific verb and resource ("Restart (reboot) one adopted UniFi device") and scopes it to a single, already-adopted device, which separates it from read-oriented siblings like unifi_get_device. It does not explicitly contrast with any named sibling, but no sibling performs a restart, so the risk of confusion is low.

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 clear situational guidance: confirm with the user before restarting shared infrastructure, and it warns that restarting a gateway or the switch/AP serving this machine causes an outage of a minute or more. What is missing is an explicit statement of when restart is the right remedy at all (versus, say, re-adopting or checking status first).

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