Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_add_subpage

Add a nested sub-canvas portal that previews another tldraw page of the same canvas and opens it on click, creating the target page if it doesn't exist.

Instructions

Add a nested sub-canvas portal: a rectangle that previews another tldraw page of the SAME canvas and opens it on click (in plugin builds with the feature; other builds show a labeled "⤵ name" rectangle on a board that still loads). Creates the target page when it does not exist yet. Portals persist as native geo shapes with meta.dgSubpage; the page hierarchy lives in page meta. Populate the target page afterwards with the add tools and their page parameter.

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

Input Schema

NameRequiredDescriptionDefault
hNo
wNo
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.
graphNoGraph name or nickname. Auto-selects if only one graph is configured.
titleNoPortal title bar text; defaults to the target page's name
accentNoPortal accent color (hex); default #6d5ae0
canvasYesCanvas page title (e.g. 'Canvas/My Map') or its 9-char page uid
target_pageYesTldraw page the portal opens into (name or page record id). A name that matches no existing page creates the page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 burden and does more than most: it discloses that the target page is auto-created when missing, that non-plugin builds degrade to a labeled rectangle rather than failing, and that the result persists as a geo shape with meta.dgSubpage and page-meta hierarchy. It stops short of stating what happens when the target page already exists (duplicate portal vs. re-link) or any permission requirements for a mutating tool.

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?

The description is front-loaded with the core definition and the build-fallback caveat before persistence details, and nearly every clause carries information. It is dense with parentheticals and reads as one long block, which slightly hurts scanability but not comprehension.

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 a 10-parameter mutation with no annotations and no output schema, the description covers behavior and post-call workflow well but leaves the geometry parameters and the already-exists case unaddressed. An agent could call it successfully, but placement/sizing behavior remains guesswork.

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 60%, and the six described parameters (canvas, target_page, page, graph, title, accent) already carry their own semantics in the schema, some of which the description merely echoes. The description adds nothing about the four undocumented geometry parameters (x, y, w, h), so it neither compensates for the coverage gap nor meaningfully enriches what the schema already says.

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 nested sub-canvas portal') and immediately defines what a portal is: a rectangle that previews another tldraw page of the same canvas and opens it on click. It does not, however, distinguish this tool from the sibling canvas_link_subpage, which by name appears to do something very similar, so the agent must infer the boundary from the 'creates the target page when it does not exist' clause.

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?

There is real workflow guidance in 'Populate the target page afterwards with the add tools and their `page` parameter', which tells the agent this tool is only the first step of a two-step pattern. There is no explicit when-to-use-versus-alternative statement, and the one natural alternative (canvas_link_subpage) is never mentioned or excluded.

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