Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_add_arrow

Adds a plain arrow between two absolute canvas points, with an optional label. Use canvas_connect for typed discourse relations between nodes.

Instructions

Add a plain (untyped) arrow between two absolute points, optionally labeled. For typed discourse relations between nodes use canvas_connect instead.

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>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "canvas_add_arrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesAbsolute end point
bendNoCurvature; 0 (default) is straight
pageNoTldraw page to target (name or page record id), for canvases with several pages — see canvas_read `pages`. Omit on single-page canvases.
sizeNoLabel text size: s, m (default), l, or xl
textNoLabel at the arrow midpoint
graphNoGraph name or nickname. Auto-selects if only one graph is configured.
startYesAbsolute start point
canvasYesCanvas page title (e.g. 'Canvas/My Map') or its 9-char page uid

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses that the arrow is untyped and that the points are absolute, but says nothing about whether the canvas must already exist, what happens with a bad canvas/page reference, whether the point is paginated or returned with an id, or whether repeated calls create duplicates. For a mutation tool with zero annotation coverage this leaves a meaningful gap.

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?

Two sentences, zero filler, with the core purpose front-loaded and the sibling disclaimer second. Nothing here could be cut without losing routing information.

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?

For an 8-parameter creation tool with nested point objects, no annotations, and no output schema, the definition covers purpose and routing but leaves the agent guessing about prerequisites, failure modes, and what the call returns. The rich schema compensates for parameter-level detail, but behavioral completeness is only adequate.

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 every parameter (bend, page, size, text, graph, canvas) is already documented in the schema. The description only restates the start/end points and the optional label, adding no syntax or constraint detail beyond what the schema provides. Baseline 3 applies.

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?

States a specific verb and resource ('Add a plain (untyped) arrow'), plus the exact spatial scope ('between two absolute points') and an optional label. It explicitly distinguishes itself from canvas_connect, so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternative tool explicitly and gives the condition that selects it: typed discourse relations between nodes go to canvas_connect, plain arrows go here. That is the key routing decision for this tool and it is stated, not implied.

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