Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_read

Reads a Roam canvas board to return its discourse nodes, placed blocks, typed relations, text/geo shapes, frames, images, sub-canvas portals, page nesting, and load warnings for inspection.

Instructions

Read a canvas: discourse nodes (Roam page uid, title, type, absolute position, containing frame), Roam blocks placed on the board, typed relations between them, text shapes, frames, images (with filename + URL), plain geo shapes and arrows, and nested sub-canvas portals (subpages: which page each portal opens into). Lists the board's tldraw pages with their nesting parent (parentPageId); on multi-page boards every item names its page. Returns warnings for records the Roam app would refuse to load. Optionally include raw tldraw records for specific shape ids.

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

Input Schema

NameRequiredDescriptionDefault
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
include_rawNoShape ids to also return as raw tldraw records

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses that every item names its page on multi-page boards, that pages carry a nesting parentPageId, that a `warnings` array flags records the Roam app would refuse to load, and that raw records are opt-in by shape id. What it omits — read-only framing, permission prerequisites, behavior on a missing/ambiguous canvas — keeps it below a 5.

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?

Front-loaded with the verb and resource, and every clause maps to something the tool actually returns, so there is little filler. The middle section is a very dense run-on enumeration of item types, which is informative but heavy to parse.

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 complex read tool with no output schema and no annotations, the description explains the payload shape well enough for an agent to use the results correctly, including the warnings and page-nesting semantics. Gaps remain around failure modes and the exact distinction from canvas_list, but nothing essential to invoking it is missing.

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 all three parameters are already documented and baseline 3 applies. The description adds only marginal meaning beyond the schema, mainly clarifying that `include_raw` takes specific shape ids and that `canvas` resolves to a page with `parentPageId` nesting.

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 opens with a specific verb+resource ('Read a canvas') and then enumerates exactly what a canvas read returns — nodes, blocks, relations, shapes, images, frames, sub-canvas portals — so an agent knows precisely what comes back. It does not, however, explicitly distinguish itself from the sibling canvas_list or explain the split between listing canvases and reading one.

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?

Usage is only implied: the verb 'Read' plus the 'Optionally include raw tldraw records' clause signal the retrieval use case and the optional-raw escape hatch. There is no statement of when to prefer this over canvas_list or the get_* node/relation tools, and no stated preconditions.

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