Skip to main content
Glama

Delete Card Builder card

card_builder_delete_card
DestructiveIdempotent

Permanently delete a Card Builder card by ID. Use when removing a card no longer used on any dashboard.

Instructions

Permanently delete one Card Builder card by id.

Calls card_builder/cards/delete; Home Assistant's WebSocket handler returns an empty payload on success. Any dashboard still referencing this card_id via custom:card-builder-renderer-card will show a broken/empty card afterwards — this tool does not check for or update such references.

Use when: removing a card that is no longer used on any dashboard. Returns: {"status": "deleted", "card_id": ..., "result": ...} on success. Errors: on failure, returns {"status": "error", "card_id": ..., "error": <exception text>} instead of raising.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
card_idYesId of the card to delete, from card_builder_list_cards.

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 / card_id / description
      Added value: +"Id of the card to delete, from card_builder_list_cards."
  2. Addedv0.18.1

TDQS

A4.4/5.0
Behavior5/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 genuine context beyond that: the empty-payload success behavior of the WebSocket handler, the downstream consequence for dashboards referencing the card_id via custom:card-builder-renderer-card, and that no reference cleanup is performed.

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-loads the destructive consequence in the first sentence, then structures the rest as 'Use when'/'Returns'/'Errors' labels. Slightly long, and the Returns/Errors detail partly duplicates the output schema, but every sentence carries real information.

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?

Although an output schema exists, the description still pre-empts the two questions an agent would have for a destructive one-param tool: what happens to referencing dashboards, and how failures surface. Nothing needed to call 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% with a single required card_id, whose schema description already points at card_builder_list_cards as the source. The description restates 'by id' without adding format or retrieval detail beyond the schema, 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 (permanently delete), resource (one Card Builder card), and scope (by id), and names the underlying `card_builder/cards/delete` call. An agent can distinguish this from card_builder_list_cards, card_builder_get_card, card_builder_update_card, and the delete_style_preset/delete_media siblings without opening a 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?

Gives an explicit use condition: 'Use when: removing a card that is no longer used on any dashboard,' which also implies when not to use it (a card still referenced). No alternative tool is named, but for a deletion operation there is no plausible alternative to route to, so the gap is minor.

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