Skip to main content
Glama

add_branch_node

Add a Branch (if/else) node to a Blueprint, routing execution to True or False output pins based on a boolean Condition input. Provide blueprint name and optional graph position.

Instructions

Add a Branch (if/else) node to a Blueprint.

The Branch node takes a boolean condition and routes execution to either the 'True' or 'False' output pin.

Args: blueprint_name: Blueprint name node_position: Optional [X, Y] graph position

Returns: Dict with 'node_id'; pins: 'Condition' input, 'True'/'False' outputs

KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_branch_node(blueprint_name="/Game/MCP_Test/BP_Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_positionNo
blueprint_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 does disclose key behavior: the node takes a boolean condition and routes to True/False outputs, and returns a Dict with node_id and pins. It also notes node_position is optional. However, it does not mention that this modifies the blueprint asset (a mutation), any prerequisites like the blueprint being loaded or saved, or potential side effects. It provides some behavioral detail but leaves significant gaps.

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?

The description is well-structured and front-loaded: a clear summary sentence, then behavioral details, Args, Returns, a KB pointer, and an example. Every section adds value without redundancy. It is concise yet complete for the core information, making it easy to scan.

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?

The tool has an output schema (not shown but present), and the description explains the return format (Dict with node_id and pins). It includes a KB reference and a concrete example. For a node-adding tool, this covers the essentials. Minor gaps include not stating whether the blueprint must be loaded or if the operation persists, but these are inferable. Overall, it is complete enough for an agent to call correctly.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It does: the Args section defines blueprint_name as 'Blueprint name' and node_position as 'Optional [X, Y] graph position'. An example clarifies that blueprint_name is an asset path (e.g., '/Game/MCP_Test/BP_Example'). This adds meaning beyond the schema's bare titles and is sufficient for an agent to understand both parameters.

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 clearly states the tool's purpose: 'Add a Branch (if/else) node to a Blueprint.' It specifies the verb (Add), resource (Branch node), and target (Blueprint), and explains the node's behavior (routes execution to True/False based on a boolean condition). This is specific and distinguishes it from generic node-adders like add_blueprint_function_node or add_math_node.

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?

No guidance is provided on when to use this tool versus alternatives. The sibling list includes add_blueprint_branch_node and other node-adders, but the description does not reference any alternative or mention when this specific tool is preferred. The only context is the KB reference, which does not address tool 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