Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Remove (Unadopt) Device

unifi_unadopt_device
DestructiveIdempotent

Removes an adopted UniFi device from site management and returns it to the pending-adoption pool without factory resetting it, so it can be re-adopted later.

Instructions

Remove (un-adopt) an adopted UniFi device from this site, returning it to the pending-adoption pool. The device keeps running with its current configuration but leaves this controller's management until re-adopted — it is NOT factory-reset. It reappears in unifi_list_pending_devices and can be re-added with unifi_adopt_device. CAUTION: this drops the device from management; confirm with the user before removing 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_unadopt_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.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well beyond them: it discloses the device's runtime state after removal (keeps running on current config), that management is dropped rather than the hardware reset, and where the device reappears. These are exactly the side-effect details an agent cannot infer from annotations or schema.

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 tight sentences: what it does and the resulting state first, then reversibility/re-adoption path, then the caution. Every sentence carries information an agent needs, with no restatement of the title or schema.

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 mutation with no output schema and rich annotations, the description covers outcome, reversibility, and safety advisory. Nothing an agent needs in order to call it correctly and safely is missing.

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 are documented there (siteId with the single-site fallback, deviceId sourced from unifi_list_devices). The description adds no parameter-level detail 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.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (remove/un-adopt) and resource (an adopted UniFi device on this site) and states the resulting state: the device returns to the pending-adoption pool. It is clearly distinguished from unifi_adopt_device and from destructive delete-style siblings by the explicit note that the device is NOT factory-reset.

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?

It says exactly what happens after the call and how to reverse it (reappears in unifi_list_pending_devices, re-add with unifi_adopt_device), which routes the agent to the right follow-up tools. It also states an explicit precondition — confirm with the user before removing infrastructure — so the when-to-proceed rule is unambiguous.

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