Skip to main content
Glama

Remove label from entity

labels_remove_label_from_entity
Idempotent

Remove a label from a Home Assistant entity while preserving its other labels. Use to untag one entity without deleting the label globally.

Instructions

Remove a label from an entity, keeping its other labels.

Reads the entity's current labels list from the entity registry, drops label_id if present, and writes the remaining list back via WS config/entity_registry/update.

Use when: untagging one entity from a label without touching its other labels. Not for: deleting the label itself everywhere — use labels_delete_label. Returns: dict with entity_id, the resulting labels list, the raw WS result, and ok. Errors: on a WS failure, returns {"entity_id": ..., "label_id": ..., "ok": false, "error": "<message>"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
label_idYesLabel registry ID to remove; obtain it from labels_list_labels.
entity_idYesEntity ID to untag, e.g. 'light.kitchen'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.25.1
    • addedInput schema / properties / entity_id / description
      Added value: +"Entity ID to untag, e.g. 'light.kitchen'."
    • addedInput schema / properties / label_id / description
      Added value: +"Label registry ID to remove; obtain it from labels_list_labels."
  2. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, but the description goes further: it explains the read-modify-write mechanism, that only the named label is dropped while others are preserved, the exact return keys (entity_id, labels, raw result, ok), and the error payload shape. This is unusually rich disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-line summary followed by labeled Use when / Not for / Returns / Errors sections. Every sentence carries distinct operational information; nothing is 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 two-parameter mutation with no nested objects, the definition covers purpose, routing, mechanism, return values, and error behavior. Even though an output schema exists, the explicit error shape disclosure closes the remaining gap an agent would face.

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 both parameters are documented in the schema with examples and a pointer to labels_list_labels. The description restates label_id but adds no syntax or format detail beyond structured fields, so 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?

Specific verb+resource ('Remove a label from an entity') plus the exact mechanism (read labels list, drop label_id, write back via WS config/entity_registry/update). It is clearly distinguishable from labels_delete_label and labels_assign_label_to_entity.

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?

Explicit 'Use when: untagging one entity from a label without touching its other labels' and 'Not for: deleting the label itself everywhere — use labels_delete_label'. Both the positive trigger and the alternative are named, leaving nothing to inference.

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