Skip to main content
Glama
homeassistant-ai

Home Assistant MCP Server

Official

Remove Area or Floor

ha_remove_area_or_floor
DestructiveIdempotent

Remove a Home Assistant area or floor, unassigning associated entities, devices, or areas without deleting them.

Instructions

Remove a Home Assistant area or floor.

Removing an area unassigns its entities and devices (the entities and devices themselves are not removed). Removing a floor unassigns its areas. May break automations referencing the removed area/floor.

If a Claude Desktop user gets a 4-minute timeout with no result on this call, read the target back before repeating it, and tell them to wait a few seconds before clicking the manual-approve button, as clicking it too quickly is known to cause hangs in Claude Desktop. This workaround is specific to Claude Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesArea ID or floor ID to delete (use ha_list_floors_areas to find IDs)
kindYesWhich registry to delete from: 'area' or 'floor'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.14.2

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantial non-obvious behavior: what is unassigned rather than deleted, the risk to automations, and a client-specific timeout/hang workaround for Claude Desktop. This is real operational context the structured fields cannot convey.

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?

The core removal semantics and cascading effects are front-loaded in short, high-value sentences. The final Claude Desktop workaround paragraph is longer and narrower in applicability, slightly diluting an otherwise tight definition.

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?

With destructive annotations, a full schema, and an output schema present, the description only needs to supply side effects and caveats — which it does thoroughly, including what is and isn't deleted and downstream automation impact.

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 both parameters are well documented in the schema (including the pointer to ha_list_floors_areas for IDs). The description adds nothing parameter-specific, so the baseline 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 ('Remove') and resource (Home Assistant area or floor), and the kind enum makes the dual scope explicit. An agent can distinguish it from ha_set_area_or_floor and ha_list_floors_areas without opening any 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?

Explains the consequences of use (entities/devices unassigned but not deleted, automations may break), which tells the agent when this operation is appropriate and when to warn the user. It does not explicitly name alternatives or preconditions (e.g., 'use ha_list_floors_areas first'), so it stops short of a 5.

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