Skip to main content
Glama

Canvas Apply

aimixer_canvas_apply
DestructiveIdempotent

Use when the user asks to add or edit text, titles, frames, layout or nodes in a Canvas project. Applies semantic edits, including server-planned layout_composition with near-square group-frame grid (ceil(sqrt(N)) columns, row-major, no overlaps), atomically to your Canvas project at expected_rev. Read capabilities and the project first. Use exact node IDs; remove nodes only when requested. Reuse the SAME request_id after a lost response. A revision conflict requires rereading; never force overwrite. This edits the draft only; generation uses the existing quote/submit tools. AFTER apply: if layout_warnings are returned, fix them; then call aimixer_canvas_inspect_layout for the frame and fix any overflow/overlap before telling the user it is done. When placing an imported image/video/audio from aimixer_media_import or a library managed_id, attach it to a media node with attach_media/reference; this creates a durable project reference. For new direct uploads first create/read the project, then use aimixer_media_upload_prepare with destination=canvas and project_id, then attach the managed_id. Admins only: to put an already finished owned file (for example an mp4 made elsewhere and uploaded) into a generation node as its result, use op set_generation_result with node_id, reference and optional source_label. Titles: one short line plus an optional short subtitle; for add_note set w to fit inside the frame and wrap=true. Frames must fit their children with padding. If the Canvas app is open in the chat, act on the project it currently shows: re-read the app's latest context right before each read or edit and never reuse a project_id from earlier in the conversation, because the user can switch projects inside the app.

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": {
      "project_id": "<project_id>",
      "expected_rev": "<expected_rev>",
      "request_id": "<request_id>",
      "operations": "<operations>"
    },
    "name": "aimixer_canvas_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYes
project_idYes
request_idYes
expected_revYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

The description adds a great deal beyond the annotations: atomic apply at expected_rev, revision conflicts require rereading and never a force overwrite, request_id must be reused after a lost response, nodes are removed only on request, and only the draft is touched. What keeps this from a 5 is that the annotations already declare destructiveHint=true and idempotentHint=true, so the removals-only-on-request and request_id-reuse lines partly restate the structured hints. The added value, while real, is concentrated in the revision-conflict and post-apply obligations rather than new behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The important content is front-loaded: the trigger and core action come first, and the alternatives follow. But it is one dense block that keeps accumulating side cases (admins-only set_generation_result, direct-upload sequencing, title/frame sizing rules), several of which read like reference documentation rather than selection guidance. It would be substantially clearer split into when-to-use, behavior, and post-apply steps.

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

Completeness5/5

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

For a destructive, atomic, revision-guarded mutation tool it covers the full operational loop: read capabilities and the project first, use exact node IDs, recover from revision conflicts, reuse request_id, then check layout_warnings and call aimixer_canvas_inspect_layout before reporting completion. It also covers the auth boundary (admins only) and the media reference path. An output schema exists, so return values needn't be explained, and the brief mention of layout_warnings is a bonus rather than a gap.

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 0%, so the description must carry the load, and it does for three of four parameters: expected_rev (revision conflict semantics), request_id (retry/idempotency rule), and operations (semantic edits, layout_composition grid behavior, add_note sizing, set_generation_result shape). project_id is only implied. It never enumerates the full set of valid operation types, so an agent still has to guess at the boundaries of the free-form operations array.

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?

The opening sentence states a specific verb and resource: apply semantic edits (text, titles, frames, layout, nodes) atomically to a Canvas project at expected_rev. It also carves out scope by saying generation uses separate quote/submit tools and that this edits the draft only, which separates it from the generation siblings. It stops just short of distinguishing itself from single-node editors like aimixer_canvas_update_node.

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

Usage Guidelines5/5

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

It gives an explicit trigger ('Use when the user asks to add or edit text, titles, frames, layout or nodes'), names the alternatives for generation and for media ingestion, and states a hard exclusion (only when removal is requested). It even covers the operational condition of the Canvas app being open and the rule to re-read app context rather than reuse a project_id.

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