Skip to main content
Glama

Run a Wiro workflow

run_workflow

Start a workflow run, wait up to a set time for results, and optionally stop after a chosen step to test early stages. Model steps are charged to your wallet.

Instructions

Start a workflow run and wait for it up to wait_seconds. Costs money: every model step is charged to the wallet like a normal model run when it finishes, and the run needs at least $0.50 of balance per model step to start. A started run keeps going until it ends, so tell the user the estimate and start it only after their yes. To try only the first steps, pass breakpoint_node_id: the run stops after that step's layer and can be continued with resume_workflow_run. Take the input keys from get_workflow, or from the create_workflow or save_workflow_from_agent result. If the run is still going when the wait ends, continue with wait_for_workflow_run; never call run_workflow again for the same job.

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": {
      "slug": "<slug>"
    },
    "name": "run_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe full workflow slug ("<name>-<5 character id>") or the workflow page URL.
inputNoValues for the workflow's inputs, keyed exactly as get_workflow lists them. File inputs take public http(s) URLs; a file that is only on the user's device needs a public link first. Omitted inputs use the saved value, then the default. On a protected gallery workflow that is not yours or your team's, an omitted input uses its default, not its saved value; pass the saved value get_workflow shows to use it.
wait_secondsNoHow long to wait for the result (0-3600 seconds, default 45).
breakpoint_node_idNoOptional step id ("node-...") to stop after, for testing the first steps. Only for workflows you can edit. Not the last step.

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. Changed4 schema fields changedv1.5.3
    • addedInput schema / properties / input / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • 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.8/5.0
Behavior5/5

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

Beyond the annotations (which only signal non-readonly, open-world, non-idempotent), the description discloses the cost model (per-model-step wallet charge), a concrete precondition ($0.50 balance per model step), and the fact that a started run continues after the wait ends. It also explains the breakpoint stop-and-continue lifecycle, which the annotations cannot express.

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 core action and wait scope, then cost and confirmation, then the breakpoint/testing path, then the continuation rule. Every sentence carries operational content, though several sentences are densely multi-clause and could be split for faster scanning.

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 paid, long-running, non-idempotent operation this covers the essential gaps: cost and balance prerequisite, user confirmation, input-key sourcing, partial-run testing, and post-timeout continuation. Return values need not be described because an output schema exists, and the annotations supply the safety profile.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already defines each parameter; the description nonetheless adds real meaning by tying breakpoint_node_id to resume_workflow_run continuation and by pointing to get_workflow as the authoritative source of `input` keys. It stops short of explaining wait_seconds behavior (blocking vs. polling) beyond what the schema states.

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?

The first sentence names a specific verb and resource ('Start a workflow run') and immediately scopes it with the wait behavior ('wait for it up to wait_seconds'). It also differentiates itself from resume_workflow_run and wait_for_workflow_run by naming them in their respective contexts, so an agent can pick the right tool without opening a 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?

Explicit when-to-use and when-not-to-use rules: confirm the cost estimate with the user before starting, use breakpoint_node_id to test only the first steps, source input keys from get_workflow or the create/save results, and use wait_for_workflow_run rather than re-calling run_workflow for an in-flight job. The alternative tools are named alongside the condition that selects them.

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