Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by r-ms

n8n_run_adhoc

Runs one-off n8n workflows without leaving debris: builds a temporary workflow from your nodes, executes it via auto-added webhook, waits for results, then deletes it.

Instructions

Run a one-off workflow: creates a temp workflow with your nodes, executes via webhook, waits for the result, then deletes it. Perfect for quick operations (MongoDB queries, HTTP requests) without leaving debris. Do NOT include trigger nodes — a webhook trigger is auto-added.

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": {
      "nodes": "<nodes>"
    },
    "name": "n8n_run_adhoc"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoJSON payload sent to the webhook trigger
nodesYesArray of n8n node definitions (no trigger nodes — webhook is auto-added)
timeoutNoTimeout in seconds (default: 30, max: 300)
connectionsNoConnection map. If omitted, nodes are auto-chained sequentially.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden. It discloses the major side effects and sequence: it creates a workflow, runs it through a webhook, blocks on the result, and cleans up so no debris remains. It omits failure behavior (whether the temp workflow is still deleted if execution or the wait fails) and says nothing about the shape of what comes back.

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: lifecycle first, the use case second, the key constraint last. Zero filler and no repetition.

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 tool with nested objects, no annotations, and no output schema, this covers the mechanics and cleanup well. The gaps are the return value (the description only says 'waits for the result') and the error and cleanup semantics, both of which matter for a tool that mutates state and then deletes it.

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 coverage is 100%, so the schema already documents all four parameters and the baseline applies. The 'no trigger nodes' line reinforces the nodes constraint, but it repeats the schema's own text, and nothing explains how the 'data' payload or the optional 'connections' chain map to the webhook or the fallback behavior.

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 description names a specific action and spells out the full lifecycle: 'creates a temp workflow with your nodes, executes via webhook, waits for the result, then deletes it.' The 'one-off/temp' framing clearly separates it from a persistent-workflow run tool such as n8n_run_workflow, so an agent can pick between them without opening a schema.

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?

It gives a concrete use case ('quick operations (MongoDB queries, HTTP requests)') and a hard constraint ('Do NOT include trigger nodes — a webhook trigger is auto-added'). It never states when to prefer n8n_run_workflow or n8n_create_workflow instead, so the when-not half of the guidance is left implicit.

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