Skip to main content
Glama

unifi_restart_device

Destructive

Restarts an adopted UniFi device using the official restart action; previews by default and requires confirm:true when the target is the gateway or affects a protected network.

Instructions

Restart an adopted device (official RESTART). Needs confirm: true when the device is the gateway, or carries a protected network (pi-cluster by default) directly or further down its uplink chain: that restart cuts unifi-mcp off. Without confirm it previews. An ambiguous name returns the candidates.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
deviceYesDevice name, MAC, IP or id
confirmNoMust be true to carry out a guarded change; without it the tool only previews it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false; the description adds the *why* — a guarded restart can cut unifi-mcp off — plus the preview-without-confirm mechanism and ambiguous-name candidate return, none of which annotations convey.

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?

Front-loaded and dense: action, guard condition, fallback, and ambiguity handling in three sentences with no filler.

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?

Complete for a destructive 3-parameter tool with no output schema — risk, guard, preview, and ambiguity are all covered. The uplink-chain clause is tightly packed but the essential information is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and documents site/device/confirm. The description adds real semantics: the exact chain condition that makes confirm mandatory and its consequence, though it says nothing extra about site.

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 ('Restart an adopted device (official RESTART)') and distinguishes scoped variants: preview without confirm vs actual restart.

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

Usage Guidelines5/5

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

Explicitly states when confirm:true is mandatory (device is the gateway, or carries a protected network such as pi-cluster directly or further down its uplink chain), what happens without it (preview only), and what an ambiguous name returns. Guidance names the condition and the alternative behavior.

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