Skip to main content
Glama

add_canvas_edges

Connect Obsidian canvas cards with labeled, colored arrows by node ID, specifying endpoints and sides to build or update canvas relationships.

Instructions

Connect canvas cards with arrows (by node id; see read_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": {
      "file": "<file>",
      "edges": "<edges>"
    },
    "name": "add_canvas_edges"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
edgesYes
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.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=false, so the description's main behavioral job would be to explain the non-idempotent/additive nature (do repeated calls create duplicate edges?) and what happens when a node id doesn't exist. It says none of this, adding only that endpoints are referenced by node id.

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?

A single short sentence, front-loaded with the action and resource, with the prerequisite pointer relegated to a parenthetical. Nothing is redundant or wasted.

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?

For a mutation tool with three parameters, a low schema coverage, a nested edge object with six properties, and no output schema, the description is thin. It omits the file/vault targets, the per-edge styling options, and any error or duplicate-handling behavior an agent needs before calling it.

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 only 33%, with 'file' entirely undocumented and 'vault' described only in the schema. The phrase 'by node id' does clarify that 'from'/'to' are node id strings, but the description says nothing about the color, label, toEnd, toSide, or fromSide options on each edge object.

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?

The description gives a concrete verb and resource ('Connect canvas cards with arrows') plus the mechanism ('by node id'), which is enough to separate it from add_canvas_nodes (creates nodes) and remove_canvas_elements. It does not explicitly name those siblings as alternatives, so it stops short of a 5.

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 parenthetical '(by node id; see read_canvas)' implies you must first read the canvas to obtain node ids, which is useful prerequisite guidance. However, there is no statement of when to use this versus creating nodes or rebuilding the canvas, and no exclusions or failure conditions.

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