Skip to main content
Glama

Delete area

areas_delete_area
DestructiveIdempotent

Delete a Home Assistant area by its area_id to remove unused areas from the registry. This action is irreversible, so confirm the area is no longer needed first.

Instructions

Delete a Home Assistant area by its area_id.

Calls WS config/area_registry/delete and returns Home Assistant's result unchanged; the area disappears from the registry immediately.

Use when: removing an area that is no longer used. Returns: the raw WS deletion result. Limits: irreversible — there is no restore tool for a deleted area.

Input Schema

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

Output Schema

TableJSON 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.2/5.0
Behavior4/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 genuinely new context: the effect is immediate ('area disappears from the registry immediately') and irreversible ('there is no restore tool'). It stops short of noting permission/auth requirements or downstream effects on entities assigned to the area.

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 action, then cleanly labeled Use when / Returns / Limits sections. Minor redundancy: the raw WS result is stated twice ('returns Home Assistant's result unchanged' and 'Returns: the raw WS deletion result').

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?

An output schema exists, so return-value explanation is optional, yet the description still covers the return, the mutation's immediacy, and the irreversibility — everything an agent needs before invoking a destructive one-parameter delete.

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 the single parameter already documents itself, including the pointer to areas_list_areas. The description adds no format or syntax detail beyond what the schema provides, 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 ('Delete a Home Assistant area by its area_id') and names the underlying WS command, making it trivially distinguishable from areas_create_area, areas_list_areas, and the other 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?

Includes an explicit 'Use when: removing an area that is no longer used' line, giving clear positive context. It does not name an alternative or a when-not condition (e.g., what to do if the area still has devices), so it falls 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