Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_link_subpage

Convert a geo shape into a sub-canvas portal or re-point an existing portal to another tldraw page, rewriting its label and lineage pointer.

Instructions

Turn an existing geo rectangle into a nested sub-canvas portal, or re-point an existing portal at a different tldraw page. The target page must already exist (canvas_add_subpage creates pages). Rewrites the shape's "⤵ name" label and takes over the target page's lineage pointer.

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

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
shape_idYesAn existing geo shape to turn into (or re-point as) a portal
target_pageYesTldraw page the portal should open into (name or page record id)

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 burden and does disclose concrete side effects: it rewrites the shape's '⤵ name' label and takes over the target page's lineage pointer. It stops short of saying what happens to the previous owner of that lineage pointer, whether the operation is reversible, or what permissions are required.

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?

Two sentences and a parenthetical, front-loaded with the primary action and followed by the prerequisite and side effects. No filler or redundant restatement of the tool name.

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 mutation tool with no annotations and no output schema, it covers purpose, prerequisites, and the two observable side effects. It leaves open error behavior (e.g., what happens if the shape isn't a geo rectangle or target_page doesn't resolve) and whether the tool returns anything useful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real constraints: shape_id must be an existing geo rectangle (not any shape) that will be re-labeled, and target_page must already exist. The graph parameter is left entirely to the schema.

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 — turning an existing geo rectangle into a nested sub-canvas portal, or re-pointing an existing portal at a different tldraw page. It covers both modes of operation and explicitly distinguishes itself from canvas_add_subpage by noting that sibling creates the pages.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The parenthetical '(canvas_add_subpage creates pages)' plus 'The target page must already exist' gives a clear routing rule: if the page doesn't exist yet, use the sibling. What's missing is an explicit 'use canvas_add_subpage instead' instruction and guidance on when re-pointing is preferable to creating a fresh portal.

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