Skip to main content
Glama

Run automation

run_flow
Destructive

Start one run of an automation now. Returns flowRunId and status at once. The run continues in the background, so call get_flow_runs to read the result (it needs edit rights on automations). The automation must be On and start "When asked" (a manual trigger). Get its id from list_automations, and pass input when its trigger asks for inputs. Every run is real: it counts toward the monthly automation runs of the plan, AI steps use credits, and a step can send email or act in a connected app. Call it once for each run the user asks for. If the status is unknown or running, do not call it again for the same request.

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": {
      "spaceId": "<spaceId>",
      "flowId": "<flowId>"
    },
    "name": "run_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoThe trigger inputs, as one JSON object. Omit it when the automation takes no inputs.
flowIdYesAutomation ID from `list_automations`
spaceIdYesSpace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description goes further: the run continues asynchronously in the background, consumes monthly automation-run quota, AI steps burn credits, and individual steps can send email or act in a connected app. That tells the agent about irreversible real-world side effects and cost, which annotations alone 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 return values, then prerequisites, then the cost/side-effect warning, which is a sensible order. It runs long and the 'Every run is real' framing plus quota, credits, and email details overlap slightly, but nearly every clause carries operational consequence.

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?

With no output schema, the description correctly states what is returned (`flowRunId` and `status`) and that the result must be read separately. For a non-idempotent, cost-incurring mutation it covers prerequisites, the retry prohibition, and downstream retrieval — nothing essential 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 the baseline is 3; the description earns a bump by binding `flowId` to its provenance step (`list_automations`) and by tying `input` to the trigger's configured inputs, so the agent knows the payload shape is dictated by the automation rather than by this tool. It stops short of adding new syntax detail beyond that.

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 opening sentence gives a precise verb and resource ('Start one run of an automation now'), states the immediate return values (`flowRunId`, `status`), and makes clear this is single-run initiation rather than the read path owned by `get_flow_runs`. An agent can distinguish it from `get_flow_runs` and `list_automations` without opening any 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 prerequisites (the automation must be On and set to the 'When asked' manual trigger), explicit ID sourcing ('Get its id from `list_automations`'), and explicit routing to `get_flow_runs` for results. It also gives a negative rule — call once per requested run and do not re-call while status is `unknown` or `running` — which is exactly the kind of when-not guidance that prevents retry loops.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.