Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_connect

Connect two discourse nodes on a canvas with a typed relation arrow, linking a source to a destination to make relationships between ideas explicit and traversable.

Instructions

Connect two discourse nodes on a canvas with a typed relation arrow (e.g. Supports, Opposes, Informs). from/to accept a shape id or the node's Roam page uid. Direction: from = relation source, to = destination.

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": "<canvas>",
      "relation": "<relation>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "canvas_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination: shape id or node page uid
fromYesSource: shape id or node page uid
graphNoGraph name or nickname. Auto-selects if only one graph is configured.
canvasYesCanvas page title (e.g. 'Canvas/My Map') or its 9-char page uid
relationYesRelation id or label (see canvas_types)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses direction semantics (from = source, to = destination) and accepted identifier types, but it does not state whether the operation is idempotent, what happens on duplicate connections, whether permissions are required, or what error behavior looks like. For a mutation tool with zero annotation coverage, this is a significant gap.

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?

The description is three tight sentences with no wasted words. The core purpose and direction semantics are front-loaded. It could be slightly more structured by grouping usage guidance separately, but it is efficient overall.

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

Completeness3/5

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

With no annotations, no output schema, and five parameters at full schema coverage, the description covers the essential semantics but leaves gaps. It does not address when to use this tool versus siblings, idempotency, error behavior, or whether the canvas must exist. For a mutation tool with no annotations, it is adequate but not complete.

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 five parameters. The description restates that from/to accept a shape id or node page uid and clarifies direction, which is redundant with the schema. The relation examples (Supports, Opposes, Informs) add marginal value, but overall the description adds little beyond structured fields.

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 states a specific verb and resource: connecting two discourse nodes on a canvas with a typed relation arrow. It also names relation examples (Supports, Opposes, Informs) and clarifies direction. However, it does not explicitly distinguish this from sibling tools like canvas_add_arrow or create_discourse_relation, leaving some ambiguity about when to choose it.

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?

The description implies usage by saying it connects two discourse nodes, but it provides no explicit when-to-use or when-not guidance. It does not mention alternatives such as canvas_add_arrow or create_discourse_relation, nor does it state prerequisites like whether the canvas must already exist. The agent is left to infer the appropriate context.

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