Skip to main content
Glama

List devices in area

devices_list_devices_in_area
Read-onlyIdempotent

Lists all devices assigned to a specific area, filtering the Home Assistant device registry by area ID. Use it when you need only the devices in one area.

Instructions

List devices currently assigned to one area.

Calls WS config/device_registry/list and filters the slimmed device list (see devices_list_devices) down to entries whose area_id matches.

Use when: you need only the devices in one area rather than the whole registry. Not for: the whole device registry — use devices_list_devices or areas_list_devices; fuzzy name-based search — use search_devices. Returns: list of slimmed device dicts (see devices_list_devices) whose area_id equals the given area_id. Limits: devices without an area are never returned here.

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": {
      "area_id": "<area_id>"
    },
    "name": "devices_list_devices_in_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
area_idYesArea registry ID to filter by; obtain it from areas_list_areas.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.25.1
    • addedInput schema / properties / area_id / description
      Added value: +"Area registry ID to filter by; obtain it from areas_list_areas."
  2. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the underlying WS endpoint and the filter semantics, plus a real behavioral limit: devices with no area are never returned. It stops short of noting anything about result size or ordering, which is minor given an output schema exists.

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 summary sentence followed by clearly labeled Use when / Not for / Returns / Limits sections, which is easy to scan. There is mild redundancy: the cross-reference to devices_list_devices appears three times, and the Returns section largely repeats the opening line.

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 one-parameter filtered-list tool with an output schema, the definition covers purpose, alternatives, return shape by reference, and an edge-case exclusion, which is everything needed to call it correctly. Nothing material is left unexplained.

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% and the single parameter already documents that area_id comes from areas_list_areas. The description only restates the equality-match semantics, adding essentially no meaning beyond the schema, so the baseline of 3 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?

States a specific verb and resource with explicit scope: devices currently assigned to one area, resolved by matching area_id. It also names the tools it is not (devices_list_devices, areas_list_devices, search_devices), so an agent can distinguish it from siblings without opening schemas.

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?

Provides an explicit 'Use when' condition (need only devices in one area, not the whole registry) and an explicit 'Not for' list routing to the correct alternatives for whole-registry listing and fuzzy name search. No inference is required to pick this tool over its siblings.

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