Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_delete

Delete shapes from a canvas by shape ID while automatically cleaning up attached relation arrows and bindings; underlying Roam pages are not removed.

Instructions

Delete shapes from a canvas by shape id. Attached relation arrows and bindings are cleaned up automatically. Does NOT delete the underlying Roam pages.

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_ids": "<shape_ids>"
    },
    "name": "canvas_delete"
  }
}

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_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description does real work by disclosing cascade behavior: 'Attached relation arrows and bindings are cleaned up automatically.' It also bounds the blast radius ('Does NOT delete the underlying Roam pages'). It does not state irreversibility, required permissions, or behavior on invalid/unknown shape ids, which keeps it out of the top band.

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 short sentences, each earning its place: action, side effect, and scope boundary. The most decisive constraint (what is not deleted) is front-loaded where an agent will read it.

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?

A destructive, unannotated, no-output-schema tool needs enough to be called safely. The description covers the cascade and the page-safety boundary, but leaves authorization, reversibility, and the result shape unaddressed, which is a meaningful gap for an irreversible operation.

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%: canvas and graph are documented in-schema, while shape_ids is only typed as an array of strings. The description's 'by shape id' confirms these are shape identifiers (not page uids or node ids), but adds no detail on batch semantics, id format, or partial-failure behavior.

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?

Specific verb plus resource plus identifier: 'Delete shapes from a canvas by shape id.' It also pre-empts confusion with the page-deletion sibling by stating 'Does NOT delete the underlying Roam pages,' so an agent can distinguish canvas_delete from canvas_page_delete without opening either schema.

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 scope statement gives clear context for when this tool applies (removing shapes, not pages) and implicitly rules out page removal. It stops short of naming the alternative tool an agent should call instead for page deletion, so routing is implied rather than explicit.

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