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

set_debug_state

Enable or disable a Node-RED debug node to control whether it produces output, so you can silence or resume debug messages as needed.

Instructions

Enable or disable a debug node. When disabled, the debug node will not produce output.

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": {
      "nodeId": "<nodeId>",
      "enabled": "<enabled>"
    },
    "name": "set_debug_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesID of the debug node
enabledYesWhether to enable (true) or disable (false) the debug node

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, and it does disclose the key consequence: a disabled debug node will not produce output. However, it omits what happens on an invalid nodeId, whether the state persists across sessions, and whether any permissions are required for a mutation.

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 the action stated first and the consequence second; nothing is redundant or padded.

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 two-parameter boolean toggle with no nested objects and no output schema, the description covers the action and its effect adequately. A note on failure behavior for an unknown nodeId is the only meaningful gap.

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 both nodeId and enabled are already fully documented in the schema. The description adds no syntax, format, or interpretation details beyond what the schema provides, 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 pairs a specific verb ('Enable or disable') with a specific resource ('a debug node'), which distinguishes it from the state-setting siblings that operate on flows or node modules. It is clear without needing sibling names, though it does not explicitly contrast itself with those alternatives.

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 explicit guidance on when to use this versus set_flow_state or set_node_module_state, and no prerequisites or exclusions are stated. The use case (toggling debug output) is only implied by the resource name.

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