Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by r-ms

n8n_run_workflow

Trigger an active n8n workflow through its webhook URL and optionally wait for completion to return the full execution trace, or fire-and-forget with wait_for_result=false.

Instructions

Trigger a workflow execution via its webhook URL. Workflow must have a webhook trigger and be active. By default waits for completion (120s timeout) and returns full execution trace. Set wait_for_result=false to fire-and-forget.

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": {
      "webhookPath": "<webhookPath>"
    },
    "name": "n8n_run_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoJSON payload (object or JSON string)
timeoutNoTimeout in seconds for webhook call and polling (default: 120, max: 300)
workflowIdNoWorkflow ID (required when wait_for_result is true)
webhookPathYesWebhook path (e.g. 'scanner-run')
wait_for_resultNoWait for execution to complete and return full trace (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. It does well on the happy path: default waits for completion with a 120s timeout and returns the full execution trace, with a documented fire-and-forget mode. It is silent on what happens on timeout (error vs. partial result), whether the execution keeps running after the caller gives up, and any auth requirements.

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?

Three tight sentences, front-loaded with the action, then preconditions, then the default/override behavior. No filler or repeated schema content.

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 5-parameter, no-annotation, no-output-schema tool, this covers the essentials: invocation mechanism, prerequisites, default blocking behavior, timeout, and return payload. Missing only timeout-failure semantics and post-timeout side effects.

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%, so all five parameters already have inline docs including defaults and the 300s max. The description restates the default wait/timeout behavior but adds no formatting or payload-shape guidance beyond the schema, and omits the schema's note that workflowId is required when wait_for_result is true. Baseline 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?

States a specific verb and resource plus the mechanism: 'Trigger a workflow execution via its webhook URL.' It also constrains scope with 'Workflow must have a webhook trigger and be active.' It does not distinguish itself from the sibling n8n_run_adhoc, which an agent could easily confuse it with.

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

Usage Guidelines4/5

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

Gives clear preconditions (webhook trigger present, workflow active) and an in-tool alternative mode: set wait_for_result=false for fire-and-forget. It stops short of naming a sibling tool to use when those preconditions fail or when an unactivated/ad-hoc workflow must be run.

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