Skip to Content
MCPRecipesOverview

MCP recipes

Five tasks, end to end. Each one gives the exact call sequence, what to check after each step, and the durable handle you finish holding.

They are ordered deliberately. The first is the habit every other recipe depends on.

RecipeToolsListed by default?Can spend
Inspect before you writecanvas_list, canvas_get, canvas_validate, get_canvas_imageYesNo
Save an image and use itcanvas_create, save_image_to_canvas, then generate_image_in_canvas or generate_videoYesOnly the generation step
Validate a batch before applyingcanvas_get, canvas_validate, canvas_apply_batchYesNo
Plan a campaign with Workwork_prepare, work_continue, work_execute, work_getNo: callable by name, listed with ?profile=advancedOnly work_execute
Run a canvas workflowcreate_canvas_workflow, run_canvas_workflow, get_canvas_workflow_runNo: callable by name, listed with ?profile=advancedOnly run_canvas_workflow

What every recipe assumes

A connected client. See Install. The inspect recipe works on a read-only connection; the others need full access.

One canvas per task. Every recipe works on one canvas handle, either one the person pointed at or one made with canvas_create, and passes that same handle to every call. There is no shared default canvas.

Handles, not names. Every step passes a handle the service returned. Nothing here reconstructs a canvas: or node: identifier from context.

Read before write. Any recipe that changes an existing canvas starts with canvas_get and keeps the revision it returned.

Explicit approval before paid work. A direct request to make images authorizes that one job. Anything beyond it — another run, a retry, a regeneration — needs a new, explicit yes.

The shape they share

Identify one exact canvas handle

Use the canvas the person points at, find it with canvas_list, or create one for the task with canvas_create. Never choose between candidates on your own.

Read the current state

canvas_get before reasoning about or changing anything. Keep the revision and the url.

Plan the smallest change that satisfies the request

Preserve unrelated nodes, connections, positions, and metadata. If a path is unclear, the optional guide (guide_get) has a topic for it; a simple request needs none.

Validate the proposal

canvas_validate with the proposed operations before anything large, spatial, or destructive.

Apply or start the work

One canvas_apply_batch with the current baseRevision and one stable idempotency key, or one generation call. Generation returns queued progress: report it and follow its nextAction.

Verify and report

Claim done only when canvas_validate reports completionReview.doneClaimAllowed: true. Report the exact changed handles and any unresolved warning, and finish with the canvas url.

What to do when a step fails

FailureWhat it meansDo
409 on a write or a dry-runThe canvas changed after you read itRe-read, rebase your change around the newer graph, preserve the concurrent edit, retry
422 “The batch was not applied”Your batch would create overlap or Section overflowFix the listed operations and validate again
403 insufficient_scopeThe connection lacks a permission the tool needsReconnect with it. Do not work around it
toolset_not_enabledThe connection URL withheld the toolUse a connection that includes it
A paid call returns queued or its wait runs outNormalFollow nextAction or read the run with run_snapshot. Never re-call the paid tool
A paid call fails terminallyThe provider rejected or failed the workReport it and stop. Ask before any new attempt
An operation is rejectedThe batch is atomic, so nothing was appliedFix the named operation
Last updated on