Skip to main content
Glama

change_node_type

Change a node's type in place while preserving wires, name, position, and parameter values. Swap placeholders or upgrade HDAs without losing edits.

Instructions

Change a node's type in place, keeping wires, name, position, flags, parameter values and (for subnets/assets) network contents.

This is how an HDA instance is moved to an installed newer version (building::2.0) without losing its edits, and how a placeholder is swapped for the real node. Every value set before the swap and not after it is named in parms_dropped (no such parameter on the new type) or parms_reset (back at its default). Unversioned names map to the preferred version, as create_node does.

Args: node_path: Node to change. new_type: Type name in the node's own category. keep_name: Keep the node's name. keep_parms: Carry parameter values over by name. keep_network_contents: Keep a subnet's/asset's children (False resets an asset to its definition's contents, also on a node that is already of new_type).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_typeYes
keep_nameNo
node_pathYes
keep_parmsNo
keep_network_contentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.24.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv2.18.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it explains that unversioned names map to the preferred version (as create_node does) and that values not carried over are reported in parms_dropped/parms_reset. It stops short of stating permission/auth requirements or confirming reversibility, so a full 5 is not warranted.

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?

Behavior and rationale are front-loaded before the Args list, and the structure is scannable. The prose paragraph is slightly verbose and partially restates the parameter list, but every sentence conveys real meaning without filler.

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 mutation tool with no annotations and no output schema, the description is largely self-sufficient, even hinting at return fields (parms_dropped/parms_reset). It could be more complete by addressing failure/error conditions or permission needs, but nothing essential to correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate and it does: it documents node_path, new_type (clarifying it is in the node's own category and how unversioned names resolve), keep_name, keep_parms, and keep_network_contents, including the non-obvious behavior that keep_network_contents=False resets an asset to its definition's contents even when already of new_type.

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?

States a specific verb and resource ('Change a node's type in place') and immediately enumerates what is preserved (wires, name, position, flags, parameter values, network contents). This clearly distinguishes it from siblings like create_node, delete_node, and copy_node, which do not mutate an existing node's type.

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?

Provides concrete when-to-use scenarios: moving an HDA instance to an installed newer version without losing edits, and swapping a placeholder for the real node. It does not name explicit alternative tools or state when-not-to-use, but the use contexts are clear enough for correct selection.

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

Deploy Server

Other Tools