Skip to main content
Glama
Node-RED MCP Server
by fx

create_flow

Add a new flow to Node-RED by posting flow JSON with an optional or auto-generated ID. Use it to define nodes and configs for a new workflow.

Instructions

Create a new flow using POST /flow. Adds a new flow to Node-RED. Flow ID can be provided or will be auto-generated.

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": "<flow>"
    },
    "name": "create_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowYesJSON string containing flow data with format: {id, label, nodes: [], configs: []}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose one useful trait — the flow ID may be supplied or auto-generated — but it omits whether the flow is persisted/deployed on creation, whether referenced node types must already exist, auth requirements, and error behavior, which matter for a mutation tool.

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?

Three short sentences, front-loaded with the action and endpoint. Minor waste in "Adds a new flow to Node-RED," which restates the first sentence, but the size is appropriate for a one-parameter tool.

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?

For a simple single-parameter creation tool with a fully documented schema and no output schema, the description is adequate but not complete: it leaves out post-creation state (deployed vs. stored), ID handling details, and failure modes an agent would want before invoking a write operation.

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% and the single "flow" parameter already documents the expected JSON shape ({id, label, nodes, configs}). The description adds nothing beyond that, so the baseline 3 applies.

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 opens with a specific verb+resource ("Create a new flow") and reinforces it with the concrete endpoint "POST /flow". It is distinguishable from get_flows/update_flow/delete_flow by verb alone, but it never explicitly contrasts itself with those siblings.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to prefer update_flow when a flow already exists, whether the flow must be validated first, or what prerequisites (e.g., existing node types, workspace state) are expected. Usage is only implied by the word "Create".

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