Skip to main content
Glama
Home Assistant MCP Server

Home Assistant MCP Server

Official

Get Device (incl. Zigbee/ZHA/Z2M, Z-Wave and Matter)

ha_get_device
Read-onlyIdempotent

Retrieve Home Assistant device details or paginated device lists filtered by area, integration, or manufacturer, including Zigbee, Z-Wave, and Matter metadata.

Instructions

Get device information with pagination, including Zigbee (ZHA/Z2M) and Z-Wave JS devices.

Without device_id/entity_id: Lists devices with optional filters and pagination. With device_id or entity_id: Returns full detail for that specific device.

List devices (paginated):

  • First page: ha_get_device()

  • Next page: ha_get_device(offset=50)

  • By area: ha_get_device(area_id="living_room")

  • By integration: ha_get_device(integration="zigbee2mqtt")

  • Full details in list: ha_get_device(detail_level="full", limit=10)

Single device lookup (Core's whole row, its entity rows and linked_devices):

  • By device_id: ha_get_device(device_id="abc123")

  • By entity_id: ha_get_device(entity_id="light.living_room")

Zigbee: integration="zha" or "zigbee2mqtt". Returns ieee_address, radio metrics. Z-Wave: integration="zwave_js". Returns node_id, node_status. Matter: integration="matter". Returns node_diagnostics (network type, reachability, IPs, fabrics). For management use ha_manage_radio.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ha_get_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax devices to return per page in list mode
offsetNoNumber of devices to skip for pagination
area_idNoFilter devices by area ID (e.g., 'living_room'); matches effective_area_id, so a child device without an area of its own matches its parent's
device_idNoDevice ID to retrieve details for.
entity_idNoEntity ID to find the associated device for (e.g., 'light.living_room')
integrationNoFilter by the integration that owns the device (its config entry's domain), e.g. 'zha', 'zwave_js', 'mqtt', 'hue'; 'zigbee2mqtt' selects the Zigbee2MQTT devices within MQTT.
detail_levelNo'summary': the main fields of each device's registry row (id, names, manufacturer, model, areas, disabled_by, parent and via device) with integration and radio hints. 'full': the whole registry row with the same hints, plus the device's entity-registry rows. List mode only; a single-device lookup ignores it.summary
manufacturerNoFilter devices by manufacturer name (e.g., 'Philips')

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv9.2.0
    • changedInput schema / properties / area_id / description
      Previous value: -"Filter devices by area ID (e.g., 'living_room')"New value: +"Filter devices by area ID (e.g., 'living_room'); matches effective_area_id, so a child device without an area of its own matches its parent's"
    • changedInput schema / properties / detail_level / description
      Previous value: -"'summary': basic device info and protocol identifiers. 'full': in list mode also include each device's entities. Single-device lookups always return full detail, including radio metrics, node status and Matter diagnostics."New value: +"'summary': the main fields of each device's registry row (id, names, manufacturer, model, areas, disabled_by, parent and via device) with integration and radio hints. 'full': the whole registry row with the same hints, plus the device's entity-registry rows. List mode only; a single-device lookup ignores it."
    • changedInput schema / properties / integration / description
      Previous value: -"Filter devices by integration: 'zha', 'zigbee2mqtt', 'zwave_js', 'mqtt', 'hue', etc."New value: +"Filter by the integration that owns the device (its config entry's domain), e.g. 'zha', 'zwave_js', 'mqtt', 'hue'; 'zigbee2mqtt' selects the Zigbee2MQTT devices within MQTT."
  2. Changed4 schema fields changedv8.6.0
    • changedInput schema / properties / detail_level / description
      Previous value: -"'summary': basic device info and protocol identifiers (default for list mode). 'full': include entities and all integration details. Single device lookups always return full detail."New value: +"'summary': basic device info and protocol identifiers. 'full': in list mode also include each device's entities. Single-device lookups always return full detail, including radio metrics, node status and Matter diagnostics."
    • changedInput schema / properties / device_id / description
      Previous value: -"Device ID to retrieve details for. If omitted, lists devices."New value: +"Device ID to retrieve details for."
    • changedInput schema / properties / limit / description
      Previous value: -"Max devices to return per page in list mode (default: 50)"New value: +"Max devices to return per page in list mode"
    • changedInput schema / properties / offset / description
      Previous value: -"Number of devices to skip for pagination (default: 0)"New value: +"Number of devices to skip for pagination"
  3. First observedv7.14.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds mode-dependent behavior beyond that, such as detail_level being ignored for single-device lookups and what fields appear per integration (ieee_address/radio metrics for Zigbee, node_id/node_status for Z-Wave, node_diagnostics for Matter). It does not discuss permission requirements, response size limits, or pagination termination, which keeps it short of a 5.

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?

Front-loaded with the mode split before the examples, and the bolded section headers make the three blocks (list, single lookup, integration-specific) scannable. There is mild redundancy since the example calls largely restate parameters already documented in the schema, but each block still earns its place by demonstrating combinations.

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 an 8-parameter, zero-required, dual-mode read tool with an output schema present, the description covers everything an agent needs to choose a mode, page results, filter correctly, and understand integration-specific returns. Return-value detail is appropriately left to the output schema rather than duplicated.

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?

Schema coverage is 100%, so the baseline is 3; the description adds usable meaning on top by showing idiomatic call patterns for limit/offset pagination, giving example values for area_id and integration ('zha', 'zigbee2mqtt', 'zwave_js', 'matter'), and clarifying that detail_level only affects list mode. It does not add syntax detail for manufacturer or explain the effective_area_id inheritance itself, which the schema handles.

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 ('Get device information') and immediately splits the tool into its two distinct modes: paginated listing with filters versus single-device lookup by device_id or entity_id. The title and body also name the device families covered (Zigbee/ZHA/Z2M, Z-Wave JS, Matter), so an agent can tell it apart from siblings like ha_get_entity or ha_get_integration without opening the schema.

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?

Gives explicit when-to-use routing: omit device_id/entity_id to list, supply either to get full detail, and 'For management use ha_manage_radio' points to the correct alternative for write/management operations. Concrete call examples cover first page, next page, area filter, integration filter, and full-detail listing, leaving little to inference.

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