Skip to main content
Glama

Add Canvas Edge

add_canvas_edge

Create a directed edge between two existing nodes on an Obsidian canvas. Specify source and target node UUIDs, optionally label the edge, and choose anchoring sides. Returns the new edge's UUID.

Instructions

Create a directed edge connecting two existing canvas nodes. Both fromNode and toNode must already exist on the canvas (use read_canvas to list node ids, or capture the id returned by add_canvas_node). Optional fromSide/toSide control which face of each node the edge anchors to. Returns the generated edge UUID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
canvasPathYesRelative path from vault root to the target .canvas file
fromNodeYesUUID of the source (origin) node — must already exist on the canvas
toNodeYesUUID of the target (destination) node — must already exist on the canvas
labelNoOptional text label rendered on the edge
fromSideNoFace of the source node the edge leaves from (default: auto-chosen by Obsidian)
toSideNoFace of the target node the edge arrives at (default: auto-chosen by Obsidian)
Behavior4/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false. The description adds that the edge is directed, fromNode/toNode must exist, optional sides control anchor faces, and returns UUID. It does not mention error handling or duplicates, but overall adds good context beyond annotations.

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?

The description is two sentences, front-loaded with purpose, then prerequisites and optional details. Every sentence adds value with no fluff.

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

Completeness4/5

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

Given 6 parameters, no output schema, and annotations covering safety, the description covers creation, prerequisites, optional controls, and return type. Missing error scenarios, but sufficient for typical use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with each parameter described. The tool description adds context about node existence prerequisite and default behavior of fromSide/toSide, going beyond the schema descriptions.

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 description clearly states the tool creates a directed edge between existing canvas nodes, using specific verbs and resources. It distinguishes from siblings like add_canvas_node (which adds nodes) and read_canvas (which reads the canvas).

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?

The description provides explicit guidance on prerequisites (nodes must exist) and suggests how to obtain node IDs (via read_canvas or add_canvas_node). It does not explicitly state when not to use the tool, but the context is clear and distinguishes from alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rps321321/obsidian-mcp-pro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server