Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_page_delete

Delete a tldraw canvas page and all its shapes; orphaned portal shape IDs are returned for deliberate re-linking or removal. Refuses to delete the last page.

Instructions

Delete a tldraw page of a canvas along with every shape on it. Portals elsewhere that pointed at it are NOT deleted (live clients show "target page not found"); their shape ids come back as orphanedPortals so you can re-link or delete them deliberately. Refuses to delete the last page.

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

Input Schema

NameRequiredDescriptionDefault
pageYesTldraw page to delete (name or page record id)
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.1/5.0
Behavior5/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 so well: it discloses the destructive blast radius (page plus every shape), the cross-canvas side effect (dangling portals, live clients showing "target page not found"), the returned field name for follow-up repair (orphanedPortals), and a hard guard against deleting the last page. This is behavior an agent could not otherwise know.

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?

Three sentences, front-loaded with the core action, followed by consequences and then the guard. Dense with no filler, though the orphanedPortals clause is slightly clause-heavy and could be tightened.

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?

Given three parameters and no output schema, the description covers what matters for a delete: destruction scope, collateral effects, the returned orphan list, and the last-page refusal. It does not state whether deletion is reversible/undoable or what permissions are required, which are the remaining gaps for an irreversible mutation.

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%, with all three parameters (page, canvas, graph) documented in the schema including accepted identifier forms. The description adds no parameter-level detail beyond naming the page, so baseline 3 applies.

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?

States a specific verb and resource — "Delete a tldraw page of a canvas" — and scopes it precisely ("along with every shape on it"). The word "page" implicitly separates it from canvas_delete, which acts on whole canvases, but that contrast is never made explicit, so an agent must infer the boundary.

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?

Gives clear operating conditions: it refuses to delete the last page, and it explains that portals pointing at the page survive and their ids come back as orphanedPortals so you can re-link or delete them deliberately. It does not explicitly route to alternatives (e.g. use canvas_delete for the whole canvas), which keeps this short of a 5.

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