Skip to main content
Glama
aderik

ha-automation-mcp

by aderik

update_device

Modify a Home Assistant device's user name, area assignment, or disabled status by passing its ID and a changes object.

Instructions

Mutate a device. Supported keys: name_by_user, area_id, disabled_by (bool).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
changesYes
device_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. 'Mutate' signals a write, but nothing is said about permissions, reversibility, error behavior on unknown keys, or whether unspecified fields are preserved. It does at least enumerate accepted keys, which partially constrains behavior.

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 verb and resource followed by the practical key list in a single compact sentence. Efficient, though the schema's nested 'changes' wrapper could be tied more explicitly to the listed keys.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and an untyped nested object, the description is too thin. It should state permissions, partial-vs-full update behavior, and what the response contains; none of that is covered.

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 0%, and 'changes' is an open object with additionalProperties: true, so the description's list of supported keys (name_by_user, area_id, disabled_by) is genuinely useful. Still, it omits device_id semantics, value formats/types for the keys, and whether the update is partial or full, leaving the main parameter under-specified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Mutate') and resource ('device'), and the sibling names (list_devices, get_device, delete_device) show this is the update counterpart, so an agent can place it. However it never explicitly contrasts itself with delete_device or update_registry_entity, so differentiation is by inference only.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No when-to-use guidance is given. There is no mention of prerequisites (e.g. the device must exist), when to prefer this over delete_device or call_service, or what happens on conflicting input. The agent must guess the context from the name alone.

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