Skip to main content
Glama
homeassistant-ai

Home Assistant MCP Server

Official

Remove Automation

ha_config_remove_automation
DestructiveIdempotent

Delete a Home Assistant automation permanently by entity_id or unique_id. Removes obsolete automations from your smart home configuration.

Instructions

Delete a Home Assistant automation permanently.

The returned automation_id is the resolved entity_id (canonical form, e.g. automation.morning_routine) when the registry lookup succeeded before the delete, falling back to the input identifier otherwise.

EXAMPLES:

  • Delete automation: ha_config_remove_automation("automation.old_automation")

  • Delete by unique_id: ha_config_remove_automation("my_unique_id")

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
waitNoWait for automation to be fully removed before returning.
identifierYesAutomation entity_id (e.g., 'automation.old_automation') or unique_id to delete

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv8.6.0
    • changedInput schema / properties / wait / description
      Previous value: -"Wait for automation to be fully removed before returning. Default: True."New value: +"Wait for automation to be fully removed before returning."
  2. First observedv7.14.2

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 idempotentHint=true, so the safety profile is covered. The description adds real value beyond them: it emphasizes deletion is permanent, explains the returned automation_id resolution/fallback behavior, and documents a known Claude Desktop timeout hang. It stops short of stating required permissions or auth needs.

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 purpose leads, followed by return semantics and compact examples, so it is well front-loaded. The trailing Claude Desktop timeout workaround is a fairly dense tangent that lengthens the definition, though it is framed as actionable and call-specific.

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 an output schema present the description needn't explain return values, yet it usefully clarifies the automation_id resolution anyway. Between annotations covering destructiveness/idempotency and examples covering argument forms, an agent has what it needs to call this correctly.

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%, so both parameters are already documented in the schema. The description reinforces the dual identifier semantics (entity_id or unique_id) and its fallback return behavior but adds little syntax or format detail beyond the schema, matching the baseline for fully-covered schemas.

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 (Delete) and resource (Home Assistant automation) plus the permanence qualifier, making it easy to distinguish from siblings like ha_config_get_automation and ha_config_set_automation 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?

The EXAMPLES block gives concrete invocation patterns (by entity_id and by unique_id) that clarify when to reach for it, and 'permanently' implies this is not the tool for reversible toggling. However, it never explicitly names an alternative (e.g. disable vs delete) or states when not to use it.

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