Skip to main content
Glama
wiroai

Wiro MCP Server

Official
by wiroai

Run a Wiro workflow

run_workflow

Start a workflow run, wait for results up to a set time, and optionally stop at a breakpoint to test early steps before continuing.

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 start it only when the user asked for this run, and tell them the estimate first. 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.

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-600 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. Addedv1.4.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare the mutation/non-idempotent profile, and the description goes well beyond them: per-step billing to the wallet, a $0.50 balance prerequisite per model step, the fact that a started run cannot be stopped and keeps going, and breakpoint/resume semantics. This is precisely the cost and irreversibility context an agent needs before a non-idempotent write.

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?

Dense and front-loaded: purpose first, then cost warning, then breakpoint mechanics, then continuation rules. Nearly every clause earns its place, though the input-key sourcing sentence and the balance prerequisite make it a long single paragraph that could be broken up for scanability.

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, non-idempotent, open-world run trigger, the description covers cost, prerequisites, irreversibility, partial-execution testing, and continuation. An output schema exists, so return values needn't be described, and 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.

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real routing value: it tells the agent where to source `input` keys (get_workflow, create_workflow, save_workflow_from_agent) and frames `breakpoint_node_id` as the testing mechanism tied to layer boundaries and resume. It doesn't restate the 0-600 range or URL-slug form, which the schema already handles.

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?

Opens with a specific verb and resource ("Start a workflow run") plus a scope qualifier ("wait for it up to `wait_seconds`"). It is clearly distinguishable from siblings like wait_for_workflow_run, resume_workflow_run, and create_workflow, each of which it explicitly names or implies.

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 explicit when-to-use conditions ("only when the user asked for this run, and tell them the estimate first"), an alternative for long runs ("continue with wait_for_workflow_run"), and a hard prohibition ("never call run_workflow again for the same job"). This is a full routing decision tree.

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