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.
| Recipe | Tools | Listed by default? | Can spend |
|---|---|---|---|
| Inspect before you write | canvas_list, canvas_get, canvas_validate, get_canvas_image | Yes | No |
| Save an image and use it | canvas_create, save_image_to_canvas, then generate_image_in_canvas or generate_video | Yes | Only the generation step |
| Validate a batch before applying | canvas_get, canvas_validate, canvas_apply_batch | Yes | No |
| Plan a campaign with Work | work_prepare, work_continue, work_execute, work_get | No: callable by name, listed with ?profile=advanced | Only work_execute |
| Run a canvas workflow | create_canvas_workflow, run_canvas_workflow, get_canvas_workflow_run | No: callable by name, listed with ?profile=advanced | Only 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
| Failure | What it means | Do |
|---|---|---|
409 on a write or a dry-run | The canvas changed after you read it | Re-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 overflow | Fix the listed operations and validate again |
403 insufficient_scope | The connection lacks a permission the tool needs | Reconnect with it. Do not work around it |
toolset_not_enabled | The connection URL withheld the tool | Use a connection that includes it |
| A paid call returns queued or its wait runs out | Normal | Follow nextAction or read the run with run_snapshot. Never re-call the paid tool |
| A paid call fails terminally | The provider rejected or failed the work | Report it and stop. Ask before any new attempt |
| An operation is rejected | The batch is atomic, so nothing was applied | Fix the named operation |