Skip to main content
Glama

Canvas Preview

aimixer_canvas_preview
Read-onlyIdempotent

Preview draft edits including the ONE canonical layout_composition planner: measured cards, near-square group-frame grid, collision/viewport diagnostics. Uses current owned revision, never writes or calls a paid provider. Operations come from aimixer_canvas_capabilities. The result carries layout_warnings when a card would stick out of a frame or overlap: fix the operations and preview again before apply. 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>",
      "operations": "<operations>"
    },
    "name": "aimixer_canvas_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYes
project_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
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive; the description reinforces this with 'never writes or calls a paid provider'. Beyond that it discloses behavior the annotations cannot: the use of the current owned revision, that diagnostics appear as layout_warnings on frame overflow/overlap, and the project-switching discipline for the open Canvas app. It does not describe pagination or what a successful preview payload contains, but the output schema covers returns.

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 what the tool does, then the safety guarantee, then the warning fix-loop, then the app-context caveat. Each sentence carries operational value. It is dense and the closing app-context sentence is long, but nothing is redundant filler.

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?

An output schema exists, so return values need not be spelled out, yet the description still flags layout_warnings, which is the key decision signal. Combined with revision semantics, operation sourcing, and the re-read-before-use rule, an agent has enough to call this correctly. The only gap is any guidance on stale revision handling or the operations object shape.

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 description coverage is 0%, so the description must carry the load, and it does add meaning for all three parameters: operations are sourced from aimixer_canvas_capabilities, expected_rev is tied to the 'current owned revision', and project_id must be re-read from the app context rather than reused. The operations item shape remains undocumented, and it does not explain what happens when expected_rev is stale, so the coverage is good but not complete.

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 (preview draft edits) and scopes it to the canonical layout_composition planner with measured cards, group-frame grid, and collision/viewport diagnostics. This is far more specific than the title and separates it from the mutating apply sibling, which is named implicitly as the next step. It stops short of a crisp one-line summary, so an agent must parse two dense clauses, but the purpose is unmistakable.

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 a clear workflow: take operations from aimixer_canvas_capabilities, preview, then fix and re-preview on layout_warnings before apply. That is explicit when-to-use and a prerequisite chain. It does not explicitly say when NOT to use it (e.g., versus aimixer_canvas_inspect_layout or aimixer_canvas_validate_workflow), so alternatives are only implied.

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