Skip to main content
Glama

run_workflow

Read-only

Executes multi-step Metabase workflows in one call, running steps sequentially and passing prior step results into later steps.

Instructions

Execute a multi-step workflow pipeline in a single call. Steps run sequentially and can reference previous step results using "$stepName.path" syntax. Example: search for dashboards, then get details of the first result, then execute its cards — all in one call. Max 10 steps.

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

Input Schema

NameRequiredDescriptionDefault
stepsYesOrdered pipeline steps. Each step can reference results from previous steps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.7.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / steps / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / steps / items / properties / args / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Addedv1.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds genuinely behavioral context beyond that: steps run sequentially, later steps can consume earlier results via "$stepName.path", and there is a hard 10-step cap. It omits failure-mode behavior of the pipeline as a whole (partial results, whether earlier steps are rolled back), leaving that to the schema's on_error field.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded in the first sentence, followed by three short sentences that each add new information (chaining, concrete example, step cap). No sentence is redundant with another or with the annotations.

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

Completeness3/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 should say what the call returns — per-step results, only the final step, or an aggregate — and it does not, which is a meaningful gap for an orchestrator tool. It also leaves whole-workflow error semantics to a single schema enum, though sequencing and argument-reference mechanics are adequately covered.

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 description coverage is 100% — the steps array, name, tool enum, args, and on_error are all documented in the schema itself. The description restates the "$stepName.path" reference syntax and the max-step limit without adding format detail beyond what the schema provides, so the baseline of 3 is appropriate.

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

Purpose4/5

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

The description uses a specific verb and resource ("Execute a multi-step workflow pipeline in a single call") and explains the sequential, result-chaining nature of the pipeline, which no sibling name conveys. It falls short of a 5 because it never contrasts itself with the individual executor tools or the sibling batch_execute, so the agent must infer the boundary.

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

Usage Guidelines3/5

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

Usage is conveyed only through an illustrative example ("search for dashboards, then get details of the first result, then execute its cards") plus the 10-step ceiling. There is no explicit statement of when to choose this over calling execute_card/execute_query directly or over batch_execute, so the guidance is implied rather than stated.

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