Skip to main content
Glama

run_flow

Execute a flow. It runs asynchronously — call get_flow(view="status", wait_seconds=20), which answers when the run ends, until it completes. For flows with input nodes, provide file URLs (from upload_file) via the inputs parameter. This runs the flow ONCE; use run_batch for multiple input sets. On a re-run, nodes whose inputs and parameters are unchanged keep their results, except ones that come out different every time (LLM and API models, random seeds), which run again — unless locked: lock the finished results to keep with update_flow (locked=true) first, so only the rest are regenerated.

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

Input Schema

NameRequiredDescriptionDefault
inputsNoJSON object mapping input node IDs to input arrays. Image/video/sound nodes: file URL arrays. Text nodes: text content arrays (auto-uploaded as text files). Example: {"1001": ["https://..."], "1002": ["A blue sky"]}
flow_idYesThe unique identifier of the flow to run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare the safety profile (not read-only, open-world, non-idempotent, non-destructive); the description goes well beyond by disclosing that execution is asynchronous, how to observe completion, and non-obvious re-run caching semantics — unchanged nodes keep results, while LLM/API/random-seed nodes regenerate unless locked. The one gap is that it never says what a successful call returns (e.g., a run identifier) for the caller to poll with.

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, then dense but purposeful follow-ups; no filler. The final sentence on re-run regeneration and locking is long and nested, making the lock-before-rerun ordering harder to parse than necessary.

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

Completeness4/5

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

For a two-parameter async mutation with no output schema, the description covers invocation, polling, prerequisites, and re-run side effects well. It stops short of stating the return value or how the eventual result is retrieved beyond status polling, which is the only meaningful omission.

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 provenance the schema lacks: input file URLs must come from upload_file, which a reader of the bare schema would not know. The rest of the inputs contract (node-ID-keyed JSON, text auto-upload) is left to the schema, which 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?

The opening verb+resource ("Execute a flow") is unambiguous, and the description immediately distinguishes scope from the nearest sibling: "This runs the flow ONCE; use run_batch for multiple input sets." An agent can select between run_flow, run_batch, preview_flow, and get_flow 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?

Gives an explicit post-call pattern (poll get_flow with view="status" and wait_seconds=20 until completion), a prerequisite for input-bearing flows (file URLs from upload_file), and an explicit exclusion routing multi-input work to run_batch. It also covers the re-run case with a concrete instruction to lock results via update_flow(locked=true) first.

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.

Resources