Skip to main content
Glama

Enhance

Edit existing canvas content

canvas_edit
Destructive

Apply text, styles, rename, duplicate or move edits together in one atomic mutation. Use ids from the input version and the latest successful read or write version; no intermediate read is required just to advance a version. Keep the complete selection URL. Read only the missing subtree when ids are unknown. Returns a compact committed receipt; render after the requested changes are complete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
editsYesOne to 100 sequential text, style, rename, duplicate or move edits, committed atomically. Target existing node IDs.
canvasYesCanvas UUID or full canvas/selection URL; selection limits the entire edit batch.
baseVersionYesExact version to edit, including the version returned by a previous successful write.
clientTokenNoReuse only when retrying this exact mutation.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds value beyond them: all edits commit atomically, version-conflict handling via the latest successful read/write version, and a compact committed receipt return. It does not restate irreversibility but that is already in annotations.

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?

Front-loaded with the core action, then four tight sentences each carrying distinct operational info (version source, selection URL, subtree read, receipt). Dense and jargon-heavy but no wasted sentences; slightly hard to scan.

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 complex five-variant atomic batch tool with an output schema present, the description covers the workflow, versioning, and return-receipt expectations adequately. It omits failure/conflict error behavior and partial-failure semantics, which an agent handling retries might want.

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% (baseline 3), but the description adds meaning beyond the schema: baseVersion is the exact version to target including one from a prior write, and the canvas 'selection URL' constrains the whole batch. These clarify param intent rather than merely echoing field names.

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 ('Apply ... edits together in one atomic mutation') and enumerates the five edit kinds (text, styles, rename, duplicate, move), so it is distinguishable from canvas_render and canvas_write_html at a glance. The 'atomic mutation' framing is precise and avoids tautology.

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 strong procedural guidance: use ids from the input version, no intermediate read needed just to advance a version, and read only the missing subtree when ids are unknown. It does not, however, name an alternative sibling (e.g. canvas_write_html) or a condition selecting one over the other, so it stops short of explicit when-not routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources