Skip to main content
Glama
owine

UniFi Protect MCP

by owine

protect_list_lights

Read-only

List all UniFi Protect lights with their current state, light mode settings, and motion detection details to monitor and manage lighting status.

Instructions

List all lights managed by UniFi Protect. Returns array; each light includes: id, modelKey, name, mac, state, type, guid, lightModeSettings (mode, enableAt), lightDeviceSettings (isIndicatorEnabled, pirDuration, pirSensitivity, ledLevel), isDark, isLightOn, isLightForceEnabled, lastMotion, isPirMotionDetected, camera (7.3.47 docs).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesArray of items returned by the list endpoint

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.13.0
    • addedOutput schema / properties / result / items / properties / guid
      Added value: +{
      +  "description": "Hardware MODEL GUID, shared by every unit of the same model. NOT a per-device identifier — use `id` to identify a device.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / result / items / properties / type
      Added value: +{
      +  "description": "Hardware model name, e.g. \"UVC G6 Turret\", \"UP Chime PoE\", \"UNVR-PRO\"",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed10 schema fields changedv2.11.5
    • removedOutput schema / properties / result / items / properties / camera / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / items / properties / camera / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / result / items / properties / mac / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / items / properties / mac / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / result / items / properties / modelKey / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / items / properties / modelKey / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / result / items / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / items / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / result / items / properties / state / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / items / properties / state / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. Changed8 schema fields changedv2.7.5
    • addedOutput schema / properties / result / items / properties / camera
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Paired camera ID"
      +}
    • addedOutput schema / properties / result / items / properties / isDark
      Added value: +{
      +  "description": "Whether it is currently dark out (boolean)"
      +}
    • addedOutput schema / properties / result / items / properties / isLightForceEnabled
      Added value: +{
      +  "description": "Main LED force-enabled (boolean)"
      +}
    • addedOutput schema / properties / result / items / properties / isLightOn
      Added value: +{
      +  "description": "Whether the light is currently on (boolean)"
      +}
    • addedOutput schema / properties / result / items / properties / isPirMotionDetected
      Added value: +{
      +  "description": "PIR motion currently detected (boolean)"
      +}
    • addedOutput schema / properties / result / items / properties / lastMotion
      Added value: +{
      +  "description": "Last motion timestamp in epoch ms (number)"
      +}
    • addedOutput schema / properties / result / items / properties / lightDeviceSettings
      Added value: +{
      +  "description": "Hardware settings (object: isIndicatorEnabled, pirDuration, pirSensitivity, ledLevel)"
      +}
    • addedOutput schema / properties / result / items / properties / lightModeSettings
      Added value: +{
      +  "description": "Activation settings (object: mode, enableAt)"
      +}
  4. First observedv2.7.4

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering safety. The description adds substantial behavioral detail beyond annotations, including the exact return shape, field names, nested setting groups, and even a documentation version reference. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded in the first sentence, and the field list is organized into grouped settings. The enumeration is somewhat long and partly redundant with the existing output schema, but it remains compact and information-dense.

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 parameterless, read-only list tool with an output schema, the description covers everything an agent needs: what it lists, what the returned array contains, and the relevant documentation version. No prerequisites, pagination, or auth details are necessary given the annotations.

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?

The tool has zero parameters, and the input schema is empty with 100% schema description coverage. There is nothing for the description to clarify about parameters, so the baseline of 4 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 uses a specific verb ('List'), resource ('lights'), and scope ('all lights managed by UniFi Protect'), making the tool's purpose unmistakable. It also distinguishes itself from the sibling protect_get_light by emphasizing 'all' rather than a single light.

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 phrase 'List all lights' gives clear context for when this tool is appropriate. However, it does not explicitly mention alternative tools like protect_get_light for retrieving an individual light, so there is no direct exclusion or when-not-to-use guidance.

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