Skip to main content
Glama
Discourse Graph MCP Server

Discourse Graph MCP Server

Official

canvas_create_frame

Add a named frame (group region) to a canvas to organize related elements into a defined area.

Instructions

Add a named frame (group region) to a canvas.

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

Input Schema

NameRequiredDescriptionDefault
hNo
wNo
xNo
yNo
nameYes
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.
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

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and does not meet it. It doesn't say whether the call fails on a missing canvas, whether frames can overlap or contain existing shapes, what the return value is (no output schema), or whether coordinates are required. Only the word 'Add' signals mutation.

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?

A single, front-loaded sentence with no filler. It is concise to a fault — the size is appropriate but it omits nearly all operational detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation with no annotations and no output schema, one sentence is far too thin. An agent cannot tell from this how to position the frame, which graph/page it targets, or what happens on error.

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

Parameters2/5

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

Schema coverage is only 38%. The description's 'named' hints at the required name field, but x/y/w/h, canvas, page, and graph receive no explanation in the description, and half the schema properties are undocumented in either place. Meaningful compensation for the coverage gap is absent.

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 ('Add a named frame') and clarifies what a frame is with '(group region)', plus the target ('to a canvas'). It's distinguishable from the add_arrow/add_text/add_block siblings by resource name, though it doesn't explain how a frame differs functionally from those additions.

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

Usage Guidelines2/5

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

No when-to-use guidance at all: nothing about prerequisites (must the canvas/page exist?), ordering relative to canvas_add_block or canvas_page_create, or when to use a frame instead of subpages or plain shapes.

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