Skip to main content
Glama

Delete area

areas_delete_area
DestructiveIdempotent

Permanently removes a Home Assistant area from the registry by its area_id. Use it to clean up areas that are no longer needed; deletion cannot be undone.

Instructions

Delete a Home Assistant area by its area_id.

Calls WS config/area_registry/delete; the area disappears from the registry immediately. Home Assistant answers a plain "success", which this tool reports as an object.

Use when: removing an area that is no longer used. Returns: {"deleted": true, "area_id"}. Limits: irreversible — there is no restore tool for a deleted area.

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": "areas_delete_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
area_idYesArea registry ID to delete; obtain it from areas_list_areas.

Output Schema

NameRequiredDescriptionDefault

No arguments

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 delete; obtain it from areas_list_areas."
  2. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description still adds real value: the underlying WS call (`config/area_registry/delete`), the immediate registry disappearance, the plain 'success' response, and the fact that deletion is irreversible with no restore tool. It does not say what happens to entities, devices or automations still attached to the area, which is the main behavioral gap for a destructive operation.

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 first sentence, then clearly labelled Use/Returns/Limits blocks with no filler. The Returns line partially duplicates the existing output schema, which is the only wasted text.

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

Completeness4/5

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

With one fully documented parameter, an output schema, and rich annotations, the description covers what an agent needs to call it correctly and warns about irreversibility. The missing piece is the side effect on entities/devices currently assigned to the deleted area.

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 schema itself already tells the agent to obtain area_id from areas_list_areas; the description only restates 'by its area_id'. It adds no format or provenance detail beyond the schema, 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 and resource plus the identifier used to address it ('Delete a Home Assistant area by its area_id'), which cleanly separates it from areas_create_area, areas_update_area and the read-only areas_list_areas/areas_get_area_* siblings.

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?

Gives explicit positive guidance ('Use when: removing an area that is no longer used') and the schema points to areas_list_areas as the source of the ID, but there is no explicit when-not or a named rename/merge alternative for areas that are still referenced.

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