Skip to main content
Glama
home-assistant-agent-mcp

home-assistant-agent-mcp

by Hemanthkolli

ha_update_device

Rename a Home Assistant device and move it to another area by device ID or entity ID; moving the device also relocates its entities that lack their own area.

Instructions

Rename a device and/or move it to another area. Identify it by device_id or by one of its entity_ids. Moving a device moves all its entities that don't have an area of their own.

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_update_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew device name (name_by_user). null, "" or "null" restores the integration's name. Omit to keep.
area_idNoArea id from ha_list_areas. null removes the area. Omit to keep.
device_idNoDevice registry id (optional if entity_id is given)
entity_idNoAny entity of the device, e.g. climate.bedroom_room_climate_control

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does disclose one valuable side effect — 'Moving a device moves all its entities that don't have an area of their own' — but says nothing about required permissions, reversibility, validation failures, or whether changes apply immediately.

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?

Three short sentences, zero filler, with the operation stated first and the cascade side effect last. Every sentence contributes information an agent would otherwise have to guess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter, all-optional mutation tool with no annotations and no output schema, the description covers the core action and the move side effect. It leaves a real gap: with zero required parameters, it never states what happens (or errors) if neither device_id nor entity_id is supplied, nor what the call returns.

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% and already explains the subtle null vs. omit semantics for name and area_id, so the description cannot add much there. It does clarify that entity_id accepts any entity of the device, which is mildly additive, but the baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb+resource pair: 'Rename a device and/or move it to another area.' The resource (device registry entry) is distinct from the sibling resources named in the sibling list (ha_update_area, ha_rename_entity), so an agent can tell which object this mutates 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 Guidelines4/5

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

It clearly gives the two supported operations and the two identification strategies ('by device_id or by one of its entity_ids'), which is real when-to-use context. It stops short of explicit exclusions, e.g. that renaming a single entity should go to ha_rename_entity instead.

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