Skip to Content
MCPRecipesInspect before you write

Inspect before you write

This is the recipe that makes the others safe. Everything here uses only read-only tools that need canvas:read or no permission at all, so it works on a read-only connection — and it still produces a genuinely useful audit.

Goal. Given a vague request like “have a look at my brand canvas and tell me what’s wrong with it”, produce a specific, evidence-backed answer with exact handles and a link the person can click.

Tools used. canvas_list, canvas_get, canvas_validate, get_canvas_image, and optionally guide_get. All listed by default, all read-only.

You finish holding. A canvas handle, a revision, a list of findings with exact node handles, and a verified browser link.


The sequence

Find the exact canvas

{ "name": "canvas_list", "arguments": { "limit": 25 } }

Check: you get canvases with canvas: handles, titles, roles, revisions, and node counts. If there are more, follow page.nextCursor.

If two canvases could plausibly be “my brand canvas”, stop and ask. Picking one is the first step toward editing the wrong canvas later.

This call also proves the connection works and is attached to the account you expect. If it fails, nothing else will — go to Troubleshooting.

Read the graph

On a small canvas, read everything:

{ "name": "canvas_get", "arguments": { "canvasId": "canvas:abc123:brand-refresh" } }

On a large one, browse a compact page first, then read only the nodes you need in full:

{ "name": "canvas_get", "arguments": { "canvasId": "canvas:abc123:brand-refresh", "detail": "summary", "limit": 50 } }
{ "name": "canvas_get", "arguments": { "canvasId": "canvas:abc123:brand-refresh", "detail": "full", "nodeIds": ["node:a1b2", "node:c3d4"] } }

Check: you have a revision, and a url — the verified browser link. A summary or filtered read carries readContext.graphComplete: false: it is a page, not the whole graph, so do not describe the canvas as a whole from it.

Keep the revision. Even in a read-only session, quoting it makes your report reproducible: “as of revision rev_00291” is a claim someone can verify.

Lint it

{ "name": "canvas_validate", "arguments": { "canvasId": "canvas:abc123:brand-refresh" } }

With no operations, this audits the current graph. It changes nothing and consumes no idempotency key.

Check three fields, in this order:

  • summary.errors — structural problems: broken_connection, malformed_section, broken_generated_lineage, invalid_node_geometry, and self-referencing or mis-moded frame connections.
  • summary.warnings — things worth a person’s attention: overlapping nodes or Sections, nodes escaping their Section, duplicate connections, fake section headers, generated outputs with no incoming relationship, orphan media placeholders, and imported product references nothing used.
  • summary.truncated — if true, findings hit the 50-per-code cap or overlap analysis gave up on a very large canvas. Your report is incomplete and should say so.

summary.passed only means zero errors. summary.reviewRequired is the honest signal: true when there are errors, warnings, or truncation. completionReview additionally reports whether the generated outputs on the canvas are delivered.

Every finding carries a guideUri. If you need the rule behind one, read it:

{ "name": "guide_get", "arguments": { "guideId": "sections-layout" } }

The guide is optional help. You do not need it to run this recipe.

Look at an image, if the question needs it

If the request is about how something looks rather than how it is wired, pull the actual pixels:

{ "name": "get_canvas_image", "arguments": { "canvasId": "canvas:abc123:brand-refresh", "nodeId": "node:img8q4" } }

Check: you get an inline preview the model can inspect, plus a temporary full-resolution link and previewExpiresInSeconds.

Take the node ID from the canvas_get result. Guessing one costs a round trip and returns 404.

A 409 here means the image node is an empty placeholder with no stored result — generation has not finished, or never started. That is itself a finding worth reporting. It is not a reason to start a generation.

Use the url from your canvas_get result. Access was checked when it was built, so it will open for the person. (open_canvas returns the same link and is still callable, but you already have it.)

What a good report looks like

Findings, not impressions. Handles, not descriptions.

Read canvas:abc123:brand-refresh at revision rev_00291 — 34 nodes, 21 connections.

No structural errors. Two warnings and one info finding, so this needs review rather than a pass:

  • node_overlap — node:a1b2 overlaps node:c3d4. The layout guide asks for 32 units between siblings.
  • unconnected_generated_output — node:f7g8 is a generated image with no incoming connection and no output parent. Nothing on the canvas records which prompt produced it.
  • unclear_connection (info) — connection:x9y8 joins two media nodes with no mode set. If that is meant to be a reference, it needs mode: "reference".

Review it here: https://app.gavana.ai/…

I have not changed anything. If you want the overlap fixed, say so and I will validate a proposed move before applying it.

That last line matters. It ends the turn with a request for explicit intent instead of assuming it.

Why this works read-only

Every tool above is read-only and needs canvas:read or no permission at all. There is no path from this sequence to a write while the agent stays on these tools, and on a read-only connection there is no path at all: the server refuses anything else.

Common mistakes

MistakeWhy it hurts
Answering from canvas_list without canvas_getThe list has counts, not content. You cannot describe a graph you have not read.
Describing a whole canvas from a summary pageA page is not the graph. Check readContext.graphComplete.
Treating summary.passed: true as “all good”It only means zero errors. Warnings are where the real findings usually are.
Ignoring summary.truncatedYour report is silently incomplete. Say so.
Guessing a node ID for get_canvas_imageRead the canvas first. The IDs are right there.
Reporting “I fixed the overlap”In this recipe you did not, and on a read-only connection you could not. Report what you found.

Next

Once the inspection habit is in place, the writing recipes are safe to attempt:

Last updated on