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

set_flow_state

Starts or stops Node-RED flows by setting runtime state to run or halt them; requires runtimeState enabled in Node-RED settings.

Instructions

Set the runtime state of Node-RED flows to start or stop them. Requires runtimeState to be enabled in Node-RED settings.

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": {
      "state": "<state>"
    },
    "name": "set_flow_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesThe desired flow state: "start" to run flows, "stop" to halt them

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/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 burden. It discloses the settings prerequisite and the start/stop effect, but omits whether the operation is idempotent, what permissions are required, whether stopping a flow interrupts running messages, or what happens if runtimeState is disabled.

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?

Two short sentences with no unnecessary wording. The core action is front-loaded, and the prerequisite is placed immediately after it.

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 simple one-parameter toggle with no output schema, the description covers the action and the key configuration prerequisite. It could be slightly more complete by stating the error behavior when runtimeState is disabled or the immediate effect on running flows, but it is largely adequate.

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%, and the enum values include descriptions, so the schema already documents the sole parameter. The description restates the start/stop meanings but adds no syntax, defaults, or edge-case behavior beyond what the schema provides.

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 states a specific verb and resource: 'Set the runtime state of Node-RED flows to start or stop them.' This clearly distinguishes it from read-only siblings like get_flow_state and from other state setters such as set_debug_state or set_node_module_state.

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 clear operational context—use this to start or stop flows—and adds the important prerequisite that runtimeState must be enabled in Node-RED settings. It does not explicitly mention alternatives or exclusions, but the context is sufficient for correct selection.

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