Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_add_text

Add a free-floating text label to a canvas; long labels wrap at a specified width (default 400) so text stays readable instead of running across one line.

Instructions

Add a free-floating text label to a canvas. Long labels wrap at width (default 400) instead of running across the canvas on one line.

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>",
      "text": "<text>"
    },
    "name": "canvas_add_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
pageNoTldraw page to target (name or page record id), for canvases with several pages — see canvas_read `pages`. Omit on single-page canvases.
sizeNoText size: s, m (default), l, or xl
textYes
graphNoGraph name or nickname. Auto-selects if only one graph is configured.
widthNoWrap the text at this width in canvas units. Default: one line up to 400, then wrap at 400.
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

C2.9/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 behavioral burden. It discloses the wrapping behavior at `width`, but that same fact is already in the schema's width description, and it says nothing about permissions, what happens on invalid canvas/page, whether the call is idempotent, or what the return value is.

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 action. The second sentence is somewhat redundant with the schema's width description, but it is short and does not bury the primary purpose.

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?

For an 8-parameter mutation tool with no annotations and no output schema, the description is thin. It omits positioning defaults for x/y, page targeting rules, graph selection, and the result of the call, leaving the agent to reconstruct these from the schema alone.

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 coverage is 63%, so the schema documents most parameters itself. The description reinforces the `width` default/wrap semantics and implies `text`, but adds nothing for x, y, page, size, or graph, which are already partly documented in the schema — so it neither compensates nor detracts.

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 gives a specific verb and resource: 'Add a free-floating text label to a canvas.' The adjective 'free-floating' distinguishes it from shape-bound siblings such as canvas_add_block or canvas_add_geo, but no sibling is named explicitly, so differentiation is inferred rather than stated.

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 explicit when-to-use or when-not-to-use guidance and no alternative tool is named. The agent must infer from the tool name that this is the text-insertion option among the many canvas_add_* siblings, with no signal about choosing text over geo, block, or node.

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