Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_add_geo

Add a plain tldraw geo shape, such as a rectangle or ellipse, with an optional centered label for general-purpose labeled boxes on a canvas.

Instructions

Add a plain tldraw geo shape (rectangle, ellipse, …) with an optional centered label. This is the general-purpose labeled box; discourse nodes belong in canvas_add_node.

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>",
      "geo": "<geo>"
    },
    "name": "canvas_add_geo"
  }
}

Input Schema

NameRequiredDescriptionDefault
hNoDefault 100
wNoDefault 200
xNo
yNo
geoYesGeo style: rectangle, ellipse, triangle, diamond, pentagon, hexagon, octagon, star, rhombus, oval, trapezoid, arrow-right, arrow-left, arrow-up, arrow-down, x-box, check-box, cloud
fillNonone, semi, solid, or pattern (default none)
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 centered in the shape
colorNoblack, grey, light-violet, violet, blue, light-blue, yellow, orange, green, light-green, light-red, or red (default black)
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses little beyond the shape of the payload. It does not say what is returned after the shape is added, whether the canvas must already exist, how the shape interacts with the page param, or what happens on a missing canvas or graph; 'Add' implies mutation but nothing about side effects or error conditions is stated.

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?

Two short sentences, front-loaded with the core capability and followed by the disambiguation rule. There is no filler, though the trailing ellipsis in '(rectangle, ellipse, …)' is slightly informal for a definition and the schema already enumerates the full geo list.

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 twelve parameters, no annotations, and no output schema, the definition covers the core purpose and one sibling boundary but leaves the canvas/graph/page targeting logic and the post-call behavior unexplained. The rich schema compensates for much of the parameter gap, so it is adequate rather than 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 83%, so the schema already documents nearly every parameter including geo styles, fill, color, and size. The description reinforces that the label is optional and centered in the shape, but adds no syntax or semantics beyond that, which matches the baseline for a well-covered schema.

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?

Names a specific verb and resource ('Add a plain tldraw geo shape ... with an optional centered label') and distinguishes it from canvas_add_node by calling itself 'the general-purpose labeled box'. It leaves the boundaries with canvas_add_text, canvas_add_block, and canvas_add_frame unstated, so the differentiation is partial rather than complete.

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?

It gives one routing rule: discourse nodes belong in canvas_add_node, and this is the general-purpose option. It offers no guidance on when a plain text element, block, or frame would be the better choice, nor any prerequisites for targeting an existing canvas, so usage is only implied for most sibling tools.

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