Skip to main content
Glama

Delete canvas edge

delete_canvas_edge
Destructive

Removes a specified edge from an Obsidian canvas file by edge ID, so you can clean up unwanted connections and keep canvas diagrams accurate.

Instructions

Delete an edge from canvas

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": {
      "canvasPath": "<canvasPath>",
      "edgeId": "<edgeId>"
    },
    "name": "delete_canvas_edge"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.
edgeIdYesID of the edge to delete
canvasPathYesPath to canvas file (".canvas" may be omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds nothing: it does not say whether deletion is irreversible, whether the operation fails if the edge is missing, or what happens to the two endpoint nodes after the edge is removed — real concerns for a destructive canvas mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short, front-loaded sentence with no wasted wording. Brevity here is not a virtue, however — it reflects under-specification rather than tight structure.

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

Completeness2/5

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

This is a destructive mutation with no output schema and no return-value information, so the description should carry the burden of what deletion entails and how failures surface. It offers none of that, leaving the agent to guess at edge cases like missing edges or orphaned nodes.

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 vault, edgeId, and canvasPath all documented in the schema, including the note about the ".canvas" extension being optional. The description adds no meaning beyond that, so the baseline of 3 applies.

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

Purpose2/5

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

"Delete an edge from canvas" is effectively a restatement of the tool name and title, adding no scope or distinction beyond them. It does confirm the resource is an edge rather than a node, but that is already carried by the identifier.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites, and no routing to alternatives such as delete_canvas_node or add_canvas_edge. The agent must infer entirely from the name that this is the inverse of edge creation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.