Skip to main content
Glama
UniFi Protect MCP

UniFi Protect MCP

by owine

List sensors

protect_list_sensors
Read-only

List all sensors managed by UniFi Protect, including battery, motion, leak, and tamper status. Use limit and offset to page through large sites.

Instructions

List all sensors managed by UniFi Protect. Returns array; each sensor includes: id, modelKey, name, mac, state, type, guid, mountType, featureFlags (temperature, humidity, light, motion, waterLeak, open, tamper, smoke — each {channelCount}), batteryStatus (percentage, isLow), stats (light, humidity, temperature — each {value, status}), lightSettings / humiditySettings / temperatureSettings (isEnabled, margin, lowThreshold, highThreshold), isOpened, openStatusChangedAt, isMotionDetected, motionDetectedAt, motionSettings / glassBreakSettings (isEnabled, sensitivity, sensitivityWhenArmed), scheduleMode, armProfileIds, hasCustomSensitivityWhenArmed, alarmTriggeredAt, alarmSettings, leakDetectedAt, externalLeakDetectedAt, leakSettings (isInternalEnabled, isExternalEnabled), tamperingDetectedAt, wirelessConnectionState (signalState: signalQuality, signalStrength; batteryStatus: percentage, isLow; bridge) (7.3.70 docs). On a large site, use limit and offset to page; a paged result also returns totalCount and offset.

Input Schema

NameRequiredDescriptionDefault
limitNoReturn at most this many items
offsetNoSkip this many items first (default 0)

Output Schema

NameRequiredDescriptionDefault
offsetNoPaged results only: the index of the first item returned
resultYesArray of items returned by the list endpoint
totalCountNoPaged results only: the number of items in the whole list

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv2.15.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Return at most this many items",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many items first (default 0)",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "description": "Paged results only: the index of the first item returned",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / result / items / properties / glassBreakSettings / description
      Previous value: -"Glass-break detection settings (object)"New value: +"Glass-break detection settings (object: isEnabled, sensitivity, sensitivityWhenArmed)"
    • changedOutput schema / properties / result / items / properties / humiditySettings / description
      Previous value: -"Humidity threshold settings (object)"New value: +"Humidity threshold settings (object: isEnabled, margin, lowThreshold, highThreshold)"
    • changedOutput schema / properties / result / items / properties / leakSettings / description
      Previous value: -"Leak detection settings (object)"New value: +"Leak detection settings, read-only (object: isInternalEnabled, isExternalEnabled)"
    • changedOutput schema / properties / result / items / properties / lightSettings / description
      Previous value: -"Light threshold settings (object)"New value: +"Light threshold settings (object: isEnabled, margin, lowThreshold, highThreshold)"
    • changedOutput schema / properties / result / items / properties / motionSettings / description
      Previous value: -"Motion detection settings (object)"New value: +"Motion detection settings (object: isEnabled, sensitivity, sensitivityWhenArmed)"
    • changedOutput schema / properties / result / items / properties / stats / description
      Previous value: -"Environmental stats (object: light, humidity, temperature)"New value: +"Environmental stats (object: light, humidity, temperature — each { value, status })"
    • changedOutput schema / properties / result / items / properties / temperatureSettings / description
      Previous value: -"Temperature threshold settings (object)"New value: +"Temperature threshold settings (object: isEnabled, margin, lowThreshold, highThreshold)"
    • changedOutput schema / properties / result / items / properties / wirelessConnectionState / description
      Previous value: -"Wireless link state (object: signalState, batteryStatus, bridge)"New value: +"Wireless link state (object: signalState { signalQuality, signalStrength }, batteryStatus { percentage, isLow }, bridge)"
    • addedOutput schema / properties / totalCount
      Added value: +{
      +  "description": "Paged results only: the number of items in the whole list",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
  2. Changed3 schema fields changedv2.13.0
    • addedOutput schema / properties / result / items / properties / featureFlags
      Added value: +{
      +  "description": "Sensor capability flags, added in 7.3.x (object: temperature, humidity, light, motion, waterLeak, open, tamper, smoke — each { channelCount })"
      +}
    • 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"
      +  ]
      +}
  3. Changed12 schema fields changedv2.11.5
    • 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 / mountType / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / items / properties / mountType / 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 / scheduleMode / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / items / properties / scheduleMode / 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"
      +]
  4. Changed22 schema fields changedv2.7.5
    • addedOutput schema / properties / result / items / properties / alarmSettings
      Added value: +{
      +  "description": "Alarm settings (object: isEnabled)"
      +}
    • addedOutput schema / properties / result / items / properties / alarmTriggeredAt
      Added value: +{
      +  "description": "Last alarm timestamp in epoch ms (number)"
      +}
    • addedOutput schema / properties / result / items / properties / armProfileIds
      Added value: +{
      +  "description": "Arm profile IDs this sensor belongs to (array of strings)"
      +}
    • addedOutput schema / properties / result / items / properties / batteryStatus
      Added value: +{
      +  "description": "Battery status (object: percentage, isLow)"
      +}
    • addedOutput schema / properties / result / items / properties / externalLeakDetectedAt
      Added value: +{
      +  "description": "Last external-leak timestamp in epoch ms (number)"
      +}
    • addedOutput schema / properties / result / items / properties / glassBreakSettings
      Added value: +{
      +  "description": "Glass-break detection settings (object)"
      +}
    • addedOutput schema / properties / result / items / properties / hasCustomSensitivityWhenArmed
      Added value: +{
      +  "description": "Custom armed sensitivity enabled (boolean)"
      +}
    • addedOutput schema / properties / result / items / properties / humiditySettings
      Added value: +{
      +  "description": "Humidity threshold settings (object)"
      +}
    • addedOutput schema / properties / result / items / properties / isMotionDetected
      Added value: +{
      +  "description": "Motion currently detected (boolean)"
      +}
    • addedOutput schema / properties / result / items / properties / isOpened
      Added value: +{
      +  "description": "Open/close contact state (boolean)"
      +}
    • addedOutput schema / properties / result / items / properties / leakDetectedAt
      Added value: +{
      +  "description": "Last leak timestamp in epoch ms (number)"
      +}
    • addedOutput schema / properties / result / items / properties / leakSettings
      Added value: +{
      +  "description": "Leak detection settings (object)"
      +}
    • addedOutput schema / properties / result / items / properties / lightSettings
      Added value: +{
      +  "description": "Light threshold settings (object)"
      +}
    • addedOutput schema / properties / result / items / properties / motionDetectedAt
      Added value: +{
      +  "description": "Last motion timestamp in epoch ms (number)"
      +}
    • addedOutput schema / properties / result / items / properties / motionSettings
      Added value: +{
      +  "description": "Motion detection settings (object)"
      +}
    • addedOutput schema / properties / result / items / properties / mountType
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Mount type, e.g. \"door\", \"leak\", \"garage\""
      +}
    • addedOutput schema / properties / result / items / properties / openStatusChangedAt
      Added value: +{
      +  "description": "Open-status change timestamp in epoch ms (number)"
      +}
    • addedOutput schema / properties / result / items / properties / scheduleMode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Schedule mode: \"always\" | \"when_armed\""
      +}
    • addedOutput schema / properties / result / items / properties / stats
      Added value: +{
      +  "description": "Environmental stats (object: light, humidity, temperature)"
      +}
    • addedOutput schema / properties / result / items / properties / tamperingDetectedAt
      Added value: +{
      +  "description": "Last tampering timestamp in epoch ms (number)"
      +}
    • addedOutput schema / properties / result / items / properties / temperatureSettings
      Added value: +{
      +  "description": "Temperature threshold settings (object)"
      +}
    • addedOutput schema / properties / result / items / properties / wirelessConnectionState
      Added value: +{
      +  "description": "Wireless link state (object: signalState, batteryStatus, bridge)"
      +}
  5. First observedv2.7.4

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false, and destructiveHint=false. The description adds useful behavioral context by explaining pagination behavior and that a paged result returns totalCount and offset, though it does not cover auth or rate limits.

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

Conciseness2/5

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

Front-loads the purpose, but the middle is an extensive enumeration of return fields that is redundant given the existing output schema. This bloats the description and violates the principle that every sentence should earn its place.

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?

Given the tool's simplicity, the annotations, the 100%-covered schema, and the existing output schema, the description supplies all necessary context: it identifies the resource, return type, and pagination mechanism. The extra field list is overcomplete but does not leave gaps.

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%, so the schema already documents limit and offset. The description mentions using them to page but adds no syntax or semantic detail beyond what the schema provides.

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 ('List') and resource ('sensors managed by UniFi Protect'), clearly distinguishing it from siblings like protect_get_sensor and protect_list_cameras.

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?

Provides pagination guidance ('On a large site, use limit and offset to page') but does not explain when to choose this tool over protect_get_sensor or other list tools. Usage is implied rather than explicitly contrasted with alternatives.

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