Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Adopt Pending Device

unifi_adopt_device
Idempotent

Adopt a pending UniFi device by MAC address into a site so it provisions and joins the network under the controller.

Instructions

Adopt a pending UniFi device (from unifi_list_pending_devices) into a site, identified by its MAC address. The device will provision and join the network under this controller.

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": {
      "macAddress": "<macAddress>"
    },
    "name": "unifi_adopt_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
macAddressYesMAC address of the pending device (from unifi_list_pending_devices)
ignoreDeviceLimitNoAdopt even if it would exceed the console's device limit (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare the write-like profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=true), so the safety burden is largely covered. The description adds real value by disclosing the consequence — the device provisions and joins the network under this controller — but says nothing about how long provisioning takes, whether the call is synchronous, or what happens if adoption fails or the device is unreachable.

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 with zero filler; the action and target come first, the prerequisite tool and resulting behavior follow. Every clause carries information an agent needs.

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 single-required-parameter mutation with full schema coverage and annotations, the definition supplies the prerequisite chain and the post-adoption effect, which is what an agent most needs. The only gap is the absence of any indication of the response or provisioning timing, which matters slightly more here since there is no output schema.

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?

With 100% schema description coverage, the baseline is 3; each parameter (siteId, macAddress, ignoreDeviceLimit) already carries its own explanation, including the single-site default and the device-limit override. The description only restates that the device is identified by MAC address, adding no syntax or format detail beyond the schema.

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 ('Adopt a pending UniFi device into a site') plus the identifier (MAC address), and optionally names the sibling that produces the input ('from unifi_list_pending_devices'). An agent can distinguish this from unifi_unadopt_device or unifi_get_device without opening any schema.

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?

The description establishes the prerequisite workflow by pointing at unifi_list_pending_devices as the source of pending devices, which is the condition for invoking this tool. It does not state explicit exclusions (e.g., a device already adopted, or when to prefer unadopt/re-adopt), so it stops short of full when/when-not guidance.

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