Skip to main content
Glama

unifi_locate_device

Idempotent

Turn a UniFi device's locate LED blinking on or off to physically identify it in a rack or site. Set on to true to start blinking, false to stop.

Instructions

Turn the locate LED (blinking) of a device on or off (legacy cmd/devmgr set-locate / unset-locate).

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

Input Schema

NameRequiredDescriptionDefault
onYestrue starts blinking, false stops it
siteNoSite name, id or reference; optional while the console has a single site
deviceYesDevice name, MAC, IP or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this as a non-read-only but non-destructive, idempotent toggle, which matches 'turn on or off'. The description adds the underlying legacy command mapping, useful context, but says nothing about whether the blink is time-limited, whether the device must be reachable, or what happens if the device is offline. With annotation coverage present, this is adequate but not rich.

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?

A single compact sentence, front-loaded with the action and effect, followed by the legacy command reference. No wasted wording.

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 simple three-parameter LED toggle with full annotation coverage and no output schema, the definition gives enough to call it correctly. A brief note on device reachability or blink duration would round it out.

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%, with descriptions for `on` (true starts blinking, false stops it), `site`, and `device` (name, MAC, IP or id). The description adds nothing beyond the schema, so the baseline 3 applies since the schema carries the parameter semantics.

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?

States a specific verb and resource: toggling the blinking locate LED of a device, with the legacy `cmd/devmgr set-locate / unset-locate` equivalents as extra anchoring. It is clearly distinct from siblings like unifi_restart_device or unifi_get_device, though it does not name any of them explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: the reader must infer that this is the tool for physically identifying a device by making its LED blink. There is no explicit when-to-use, no mention of prerequisites (e.g., the device needing to be online/adopted), and no named alternatives.

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