Skip to main content
Glama
UniFi Network API MCP Server

UniFi Network API MCP Server

by sevaepsteyn

restart_device

Reboot a specific UniFi Network device by site and device ID to resolve device issues; connected clients will temporarily disconnect.

Instructions

Restart a specific device.

This will cause the device to reboot, temporarily disconnecting any connected clients.

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

Input Schema

NameRequiredDescriptionDefault
site_idYesSite UUID
device_idYesDevice UUID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the key consequence: the device reboots and connected clients are temporarily disconnected. It omits permissions required, whether the call is idempotent, how long the reboot takes, and whether failures are surfaced — meaningful gaps for a destructive-in-effect operation.

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?

Two short sentences, zero filler, with the action stated first and the consequence immediately after. Nothing is redundant or buried.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the side-effect warning covers the most important behavioral fact. For a mutation tool with no annotations, however, the definition leaves out permissions, expected downtime, and post-call state, which an agent would want before invoking.

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 coverage is 100% and both parameters (site_id, device_id) are documented as UUIDs in the schema itself. The description adds no format or scoping detail beyond that, 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?

"Restart a specific device" gives a specific verb (restart) and resource (device), so the action is unambiguous. It does not, however, distinguish itself from near-neighbors like power_cycle_port or devices, leaving the agent to infer which operation applies.

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

Usage Guidelines2/5

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

The description states what happens but never says when to use this tool versus alternatives such as power_cycle_port, nor does it state prerequisites like site/device authorization or required device state. The only usage signal is implied by the verb itself.

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