Skip to main content
Glama

Remove Lovelace resource

dashboards_remove_dashboard_resource
DestructiveIdempotent

Remove a registered Lovelace dashboard resource by numeric ID to stop loading unused custom cards or themes. Requires confirm=true; without it, no change is made.

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 / Marketplace frontend card). Returns: {"status": "removed", "resource_id": ..., "result": ...} on success. Errors: {"error": "confirmation_required", "message": ..., "action": ...} when confirm is false.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "resource_id": "<resource_id>"
    },
    "name": "dashboards_remove_dashboard_resource"
  }
}

Input 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

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.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/idempotentHint annotations: it discloses the confirm=True gate and that without it no change occurs, names the underlying API (lovelace/resources/delete), and describes the blast radius — removal from every dashboard page that loaded it and custom card/theme rendering breaking until re-added. That blast-radius detail is exactly what an agent needs before a destructive call and is not recoverable from structured fields.

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-loads the action in one sentence, then uses labeled 'Use when', 'Returns', and 'Errors' blocks so the agent can scan to the relevant part. No filler; every line carries actionable 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?

For a 2-parameter destructive mutation, the definition covers prerequisites (confirm), side effects and scope (all dashboard pages), the underlying call, and failure shape. Return-value documentation is somewhat redundant given the output schema exists, but it is not a gap.

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%, so both parameters are already documented in the schema, including confirm's default-false behavior and resource_id's provenance. The description's mention of 'numeric id' and the confirm gate largely restates the schema, adding little semantic weight beyond it.

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 and resource ('Remove a registered Lovelace resource') plus the keying parameter ('by its numeric id'), which distinguishes it cleanly from dashboards_add_dashboard_resource and dashboards_update_dashboard_resource in the sibling list. No interpretation needed.

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 an explicit 'Use when' clause with a concrete triggering scenario (after uninstalling a HACS/Marketplace frontend card), which is real routing guidance rather than an implied suggestion. It stops short of naming alternatives or when-not-to-use conditions, so not a 5.

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