Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_add_block

Places an existing Roam block on a specified canvas as a block shape, using the block’s text as its label; create the block first, then pass its uid.

Instructions

Place an existing Roam block on a canvas (the extension's Block shape). The block's current text becomes the shape label; live canvases render the block itself. Does not create blocks — create the block first, then pass its uid. For pages use 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>",
      "block": "<block>"
    },
    "name": "canvas_add_block"
  }
}

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.
blockYesUid of an existing Roam block, or a ((uid)) block ref
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

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it explains that the block's text becomes the label, that live canvases render the block itself (so the shape is a reference, not a copy), and that the tool never creates blocks. It stops short of stating what happens on a stale/duplicate uid or whether the operation requires write access, but the core behavioral contract is clear.

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?

Three sentences, front-loaded with the action, then the render consequence, then the constraints. Every sentence adds distinct information and nothing is repeated.

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

Completeness4/5

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

For a 6-param, 2-required mutation tool with no annotations and no output schema, the definition covers purpose, ordering constraint, input form, and sibling routing. The only real omission is how x/y positioning behaves when unspecified or how overlaps are handled.

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 67%, and the description reinforces the most error-prone parameter by requiring an existing uid and noting the '((uid))' ref form is acceptable. It adds nothing about x/y placement or about the page parameter, but those are already documented in the schema, so the baseline holds.

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 ('Place an existing Roam block on a canvas') and even names the resulting shape type ('the extension's Block shape'). It then explicitly separates itself from the nearest sibling with 'For pages use canvas_add_node', so an agent can route between the two without inspecting schemas.

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?

Gives an explicit precondition ('create the block first, then pass its uid') and an explicit alternative for a different input type ('For pages use canvas_add_node'). Both a when-not and a where-else are present.

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