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

update_flow

Modify a specific Node-RED flow by ID via PUT, replacing its label, nodes, and optional configs while leaving all other flows unchanged.

Instructions

Update a specific flow by ID using PUT /flow/:id. Only affects the specified flow, leaving all other flows untouched. Requires flow object with id, label, nodes array, and optional configs array.

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": {
      "flowId": "<flowId>",
      "updates": "<updates>"
    },
    "name": "update_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowIdYesID of the flow to update
updatesYesJSON string containing flow update with format: {id, label, nodes: [], configs: []}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/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 usefully discloses the mutation scope ('leaving all other flows untouched') and the PUT-based semantics, but omits whether the update is a full replacement of the flow (clearing omitted fields), whether validation is required first, permission requirements, and failure behavior. For an unannotated mutation tool, that leaves material gaps.

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, each contributing something (scope, payload shape). Slight redundancy between the payload sentence and the schema keeps it from a 5.

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 two fully-documented parameters and no output schema, the description is nearly sufficient. However, as an unannotated mutation tool it should clarify replacement vs merge semantics and any preconditions (e.g., validating the flow first), which an agent needs before calling it safely.

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 baseline is 3. The sentence about id, label, nodes, and optional configs largely restates the `updates` schema description rather than adding new meaning; it does at least confirm configs is optional. No additional syntax, encoding, or validation detail beyond the schema.

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 ('Update') plus resource ('a specific flow by ID') and even names the underlying endpoint (PUT /flow/:id), so the agent knows exactly what operation this performs and how it differs from create_flow/delete_flow. It stops short of naming a sibling explicitly, but the scope is unambiguous.

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 only implied by 'Update a specific flow by ID.' There is no explicit guidance on when to choose this over set_flow_state (runtime state), validate_flow (pre-check), or create_flow, and no stated preconditions. The scope note ('only affects the specified flow') is helpful but is not routing guidance.

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