Skip to main content
Glama

Add Canvas Node

add_canvas_node

Add a node to an Obsidian canvas with type (text, file, link, or group), content, position, size, and color. Returns UUID for connecting edges with add_canvas_edge.

Instructions

Add a new node to an Obsidian canvas and persist the updated file. Supports four node types: 'text' (markdown block), 'file' (embedded vault note reference), 'link' (external URL), and 'group' (labeled container). Returns the generated node UUID, needed to connect nodes via add_canvas_edge.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
canvasPathYesRelative path from vault root to the target .canvas file
typeYesNode kind: 'text' = markdown block, 'file' = vault note reference, 'link' = external URL, 'group' = labeled container
contentYesInterpretation depends on type: text body for 'text', relative note path for 'file', URL for 'link', display label for 'group'
xNoX coordinate on the canvas (default: 0)
yNoY coordinate on the canvas (default: 0)
widthNoNode width in pixels (default: 250)
heightNoNode height in pixels (default: 60)
colorNoColor: '1'-'6' for Obsidian's preset palette (red/orange/yellow/green/cyan/purple), or a hex code like '#ff5555'
Behavior3/5

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

Annotations indicate a write operation (readOnlyHint=false) but no destructive or idempotent behavior. The description adds context about persistence and return value, but lacks details on side effects, permissions, or error handling, which is notable for a mutation tool.

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 a single, well-structured paragraph of about 60 words, front-loaded with the action and efficiently covering types and return value without redundancy.

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?

The description covers node types and return value (UUID), which is important since there's no output schema. However, it omits error conditions, prerequisites (e.g., canvas file existence), and coordinate bounds, leaving some gaps for an 8-parameter tool.

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%, so the schema already documents all parameters. The description adds no new parameter meaning beyond what's in the schema, meeting the baseline of 3.

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 'Add a new node to an Obsidian canvas and persist the updated file' and enumerates the four node types, distinguishing it from sibling tools like add_canvas_edge.

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 does not provide explicit guidance on when to use this tool versus alternatives, nor does it state prerequisites or exclusions. It only implicitly connects to add_canvas_edge via the returned UUID.

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