Skip to main content
Glama

Resume a Wiro workflow run

resume_workflow_run

Resume a failed or stopped workflow run from its breakpoint on the same run token; completed steps are kept and unfinished steps rerun. Confirm the estimated cost with the user before continuing.

Instructions

Continue a workflow run that failed or stopped at a breakpoint, on the same run token. Steps run as the run started them, with the same inputs and settings: changes saved to the workflow since then apply to new runs only. Completed steps are kept and not charged again; failed, skipped and not-yet-run steps run again as new model runs and are charged to the wallet that paid for the original run. Before resuming, give the user the expected cost in one line and wait for their yes, even when they asked you to continue this run. Use it only when wait_for_workflow_run reports canResume: true.

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": {
      "workflowtoken": "<workflowtoken>"
    },
    "name": "resume_workflow_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_secondsNoHow long to wait for the result (0-3600 seconds, default 45).
workflowtokenYesThe run token of a failed or stopped run.
breakpoint_node_idNoOptional step id to stop after this time. Leave it out and a failed run keeps the breakpoint it started with, while a stopped run runs to the end. Pass null to run to the end.

Output Schema

NameRequiredDescriptionDefault
runYes
debugNo
nextActionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.8
    • changedInput schema / properties / wait_seconds / description
      Previous value: -"How long to wait for the result (0-600 seconds, default 45)."New value: +"How long to wait for the result (0-3600 seconds, default 45)."
    • changedInput schema / properties / wait_seconds / maximum
      Previous value: -600New value: +3600
  2. Changed3 schema fields changedv1.5.3
    • addedOutput schema / properties / debug / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / run / properties / outputs / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Addedv1.4.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false): it discloses that completed steps are kept and not re-charged, that failed/skipped/pending steps re-run as new model runs billed to the original wallet, and that in-flight edits to the workflow are ignored. The explicit consent requirement and wallet-charging detail are the kind of consequence information the annotations cannot convey.

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 the action and the run-token constraint, then layered with billing behavior and the consent rule. Every sentence carries information, though the cost-consent instruction is wordy enough that it could be tightened by a clause. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool that spends money, the description covers preconditions, billing semantics, what is preserved vs re-executed, and the consent gate, while the output schema handles return values. Nothing an agent needs to call this safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already explains wait_seconds and the breakpoint_node_id null-vs-omitted distinction in detail. The description adds contextual meaning that a resumed run inherits "the same inputs and settings" as originally started, but does not otherwise extend parameter meaning. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Continue a workflow run that failed or stopped at a breakpoint") plus the key scope constraint ("on the same run token"), which is exactly what separates it from run_workflow and run_model. An agent can identify the operation and its precondition without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit gating condition: "Use it only when wait_for_workflow_run reports `canResume: true`," naming the sibling that produces the signal. It also states a mandatory workflow step (quote expected cost, wait for user yes) and implicitly excludes new runs by contrasting with "new runs only."

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.