Skip to main content
Glama

Delete label

labels_delete_label
DestructiveIdempotent

Delete a label from Home Assistant's label registry by its ID. Use when a label is no longer needed; returns success status and any error.

Instructions

Delete a label from the label registry.

Calls WS config/label_registry/delete with the given label_id and returns Home Assistant's result unchanged.

Use when: a label is no longer needed. Returns: dict with label_id, the raw WS result, and ok (true on success). Errors: on a WS failure, returns {"label_id": ..., "ok": false, "error": "<message>"} instead of raising.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
label_idYesLabel registry ID to delete; obtain it from labels_list_labels.

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 / label_id / description
      Added value: +"Label registry ID to delete; obtain it from labels_list_labels."
  2. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds useful context beyond annotations: the underlying WS endpoint, the return structure (label_id, result, ok), and error behavior (returns an error dict instead of raising).

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 with the core action, followed by clearly labeled 'Use when:', 'Returns:', and 'Errors:' sections. Every sentence provides actionable detail with no wasted words, making it easy to scan and parse.

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 single-parameter destructive tool with annotations and an output schema, the description is complete: it covers what is deleted, when to use it, the return shape, and explicit error handling. Nothing material is left for the agent to infer.

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 schema already documents label_id as the label registry ID obtainable from labels_list_labels. The description only repeats 'with the given label_id', adding no new syntax, format, or constraint beyond the schema.

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 (a label from the label registry), clearly distinguishing it from siblings like labels_delete_category and labels_remove_label_from_entity. An agent can identify exactly what this tool does 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?

Provides a clear condition: 'Use when: a label is no longer needed.' However, it does not name alternatives or exclusions, such as using labels_remove_label_from_entity instead when the label should be detached rather than deleted.

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