Skip to main content
Glama

remove_canvas_elements

Delete cards or edges from an Obsidian canvas by ID, automatically removing edges attached to deleted cards.

Instructions

Delete cards and/or edges from a canvas by id (edges attached to removed cards go too).

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": {
      "file": "<file>",
      "ids": "<ids>"
    },
    "name": "remove_canvas_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes
fileYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The parenthetical "edges attached to removed cards go too" adds real behavioral value beyond the annotations by disclosing cascade effects that an agent could not otherwise predict. However, it says nothing about what happens with unknown/stale ids, whether the removal is recoverable, or what permissions are needed — notable given destructiveHint=false on a delete operation.

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?

A single front-loaded sentence with zero filler; the cascade caveat is placed in a tight parenthetical where it belongs. Slightly denser than a 5 because the phrase "cards and/or edges" could be stated more plainly as node and edge ids.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and low parameter coverage, the definition covers the core action and the cascade side effect but leaves the required 'file' argument and error behavior unexplained. It is minimally sufficient rather than complete.

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?

With only 33% schema description coverage, the description must compensate and it only partly does: "cards and/or edges ... by id" clarifies that the ids array can mix node and edge identifiers, which the schema does not convey. The required 'file' parameter is never explained (canvas path? name?), leaving its most important undocumented parameter ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Delete cards and/or edges from a canvas by id" gives a specific verb (delete), a specific resource (canvas cards/edges), and a selection key (id). It is clearly distinguishable from the add_canvas_edges / add_canvas_nodes siblings, but it never contrasts itself with a file-level delete such as delete_file, so the resource boundary is only implied.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the use case (removing existing canvas elements identified by id) but states no when-to-use conditions, no prerequisites, and no named alternative. An agent can infer the context, yet nothing tells it what to do if it wants to remove a whole canvas versus individual nodes.

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