Skip to main content
Glama

run_steps

Destructive

Run several edits in one call. Give an ordered list of steps, each {tool, args} naming a tool you already have (1 to 25 steps). These can't be steps; call them on their own: run_steps, apply_look, crop_for_platform, product_shot, recolor, remove_object, photo_effect, make_carousel, make_story, make_meme, make_grid, make_sticker, my_looks, batch, edit_set. Each step sees the image as the one before left it, and keeps the time limit its tool has on its own; the whole sequence has a time budget that is checked before each step starts. Use it when you already know the steps and do not need to look in between; for exploratory work, call the tools one at a time. on_error: stop (default) halts at the first failing step; continue records the failure and runs the rest; rollback takes a checkpoint first and, on a failure, restores it and checks the restore worked (the image then has a NEW id, given in the result). Rollback is refused up front if any step is one of: open_photo, new_canvas, close_photo, export_photo, checkpoint, request_upload, and needs every step to name the same image. A step's "image" can name an earlier step's image: "$prev" for the step before, "$step.N" for step N (from 1), so you can open a photo and edit it in one call. A step that exports an image an earlier step's vignette turned pure black in a corner is held back, saying so. return: summary (default) gives one line per step plus the last step's full result; full gives every step's full result. If the last step returns a preview image, it is shown with the result; earlier steps' images are dropped. The whole sequence counts as one call.

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": {
      "steps": "<steps>"
    },
    "name": "run_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesThe steps, in order.
returnNoHow much of each step's result to return.summary
on_errorNoWhat to do when a step fails.stop

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources