Skip to main content
Glama
Obsidian MCP Server
by Kynlos

add_connection_to_canvas

Connect two cards on a named Obsidian canvas with a line or arrow by specifying source and target card IDs.

Instructions

Connect cards with lines/arrows

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": {
      "canvas_name": "<canvas_name>",
      "from_id": "<from_id>",
      "to_id": "<to_id>"
    },
    "name": "add_connection_to_canvas"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_idYesTarget card ID
from_idYesSource card ID
canvas_nameYesCanvas filename

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and falls short: it does not state whether the connection is directed (arrows suggest yes, but from/to semantics are unstated), whether duplicate connections are rejected, whether the canvas must already exist, or what happens if a card ID is invalid.

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 short fragment with no wasted words, but it errs toward under-specification rather than economy, and there is no front-loaded statement of effect or prerequisites.

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 mutation tool on a required canvas with three required parameters, no annotations, and no output schema. The description omits preconditions, failure modes, and result behavior, so an agent cannot call it confidently without trial and error.

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 three parameters (canvas_name, from_id, to_id) are already documented as filename and source/target card IDs. The description adds nothing beyond that, such as confirming the direction of the arrow from from_id to to_id, so the baseline 3 applies.

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

Purpose3/5

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

States a specific action and resource: connecting cards with lines/arrows on a canvas. It is distinguishable from add_card_to_canvas, but it never says a canvas is targeted by filename or that the connection is a directed edge, so the purpose is only minimally clear.

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 prerequisites (e.g., cards must already exist on the canvas), and no mention of alternatives or when not to draw a connection. The agent must infer everything from the name.

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