Skip to main content
Glama

Remove Lovelace resource

dashboards_remove_dashboard_resource
DestructiveIdempotent

Removes a Lovelace resource by numeric ID when no longer needed, e.g., after uninstalling a HACS card. Requires confirm=True to delete from all dashboards.

Instructions

Remove a registered Lovelace resource by its numeric id.

Requires confirm=True; without it, returns a confirmation prompt and makes no change. With confirm=True, calls lovelace/resources/delete, which drops the resource from every dashboard page that loaded it — any custom card/theme it provided stops rendering until the resource is re-added.

Use when: removing a resource that is no longer needed (e.g. after uninstalling a HACS frontend card). Returns: {"status": "removed", "resource_id": ..., "result": ...} on success. Errors: {"error": "confirmation_required", "message": ..., "action": ...} when confirm is false.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be true to actually remove the resource; false (the default) returns a confirmation prompt instead.
resource_idYesNumeric resource id, from dashboards_get_dashboard_resources.

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 / confirm / description
      Added value: +"Must be true to actually remove the resource; false (the default) returns a confirmation prompt instead."
    • addedInput schema / properties / resource_id / description
      Added value: +"Numeric resource id, from dashboards_get_dashboard_resources."
  2. Addedv0.18.1

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the confirm gate (no change unless confirm=True), the blast radius (drops the resource from every dashboard page that loaded it), and the downstream effect (custom card/theme stops rendering until re-added). Annotations only give the generic destructiveHint=true; the description supplies the concrete consequences.

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-loaded with purpose and the mandatory confirm requirement, then structured into Use when / Returns / Errors blocks that are easy to scan. Slightly long, with the confirm behavior repeated across the prose and schema, but no filler sentences.

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 two-parameter tool with an output schema and full annotation coverage, the description supplies everything an agent needs: when to use it, the confirm prerequisite, the destructive consequence, and error shape. Nothing material 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 the schema already defines both parameters, including the confirm semantics and the source of resource_id. The description largely restates this, so the baseline 3 is appropriate.

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?

The first sentence states a specific verb (Remove), a specific resource type (registered Lovelace resource), and the identifier basis (numeric id). This clearly separates it from dashboards_add_dashboard_resource and dashboards_update_dashboard_resource without needing to open either 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?

"Use when: removing a resource that is no longer needed (e.g. after uninstalling a HACS frontend card)" gives a concrete trigger scenario. It does not, however, name the alternative tools (update vs. remove) or state when-not to use it, so it stops short of full routing guidance.

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