Skip to main content
Glama
homeassistant-ai

Home Assistant MCP Server

Official

Remove Scene

ha_config_remove_scene
DestructiveIdempotent

Delete a Home Assistant scene via API when it was created in the UI; YAML-defined scenes cannot be removed this way and must be edited directly.

Instructions

Delete a Home Assistant scene.

EXAMPLE: ha_config_remove_scene("old_scene")

Only scenes created via the Home Assistant UI can be deleted. Scenes defined in YAML configuration files (scenes.yaml or configuration.yaml) cannot be deleted through the API and return a 405 Method Not Allowed error; edit the configuration file directly instead.

WARNING: Deleting a scene that is referenced by automations or scripts (via scene.turn_on) may cause those to fail.

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 scene to be fully removed before returning.
scene_idYesScene identifier to delete (e.g., 'old_scene')

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 scene to be fully removed before returning. Default: True."New value: +"Wait for scene to be fully removed before returning."
  2. First observedv7.14.2

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the mutation profile is covered. The description does add real value beyond that: the 405 failure mode for YAML scenes and the automation-breakage warning. However, the annotation set already carries the core safety signal, so the incremental disclosure is moderate rather than decisive.

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?

Purpose, example, error case and warning are front-loaded and tight. The closing Claude Desktop timeout/hang paragraph is client-specific and noticeably longer than the rest, but it does carry actionable operational content, so it isn't padding.

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?

For a destructive config mutation with an output schema present, this covers the failure mode (405 on YAML scenes), preconditions (UI-created only), the side-effect risk, and a recovery path on timeout. Nothing needed to invoke it correctly is missing.

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%, so scene_id and the wait flag are already documented in the schema itself. The description only echoes scene_id in the example and says nothing about wait, which is the baseline-3 case where the schema does the heavy lifting.

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?

Opens with a precise verb+resource ("Delete a Home Assistant scene") and immediately bounds the scope: only UI-created scenes are deletable. That scope statement cleanly separates it from the get/set scene siblings and from remove_automation/remove_script.

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

Usage Guidelines5/5

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

Explicitly states when-not to use it (YAML-defined scenes in scenes.yaml or configuration.yaml return 405) and names the alternative action (edit the configuration file directly). It also flags the downstream consequence of deleting a scene referenced via scene.turn_on.

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