Skip to main content
Glama

add_switch_on_string_node

Add a flow-control node that branches Blueprint execution by comparing string values against defined cases.

Instructions

Add a 'Switch on String' flow control node.

Routes execution based on a string value comparison.

Args: blueprint_name: Blueprint name cases: List of string case values ["Walking", "Running", "Dead"] node_position: Optional [X, Y] graph position

KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_switch_on_string_node(blueprint_name="/Game/MCP_Test/BP_Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
casesNo
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.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It only says the tool 'Add[s]' a node and that the node 'Routes execution,' but it does not disclose prerequisites, mutation side effects on the blueprint graph, failure behavior, or reversibility.

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?

The description is compact and front-loaded with the operation statement, followed by a structured Args block and a single useful example. The KB reference adds little value for tool selection, but there is no redundant filler.

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?

For a simple add-node operation, the description is minimally viable: it names inputs, gives an example, and references KB material. It is incomplete regarding when to choose this node type, optionality of cases, and what side effects adding the node has. The presence of an output schema mitigates but does not eliminate these gaps.

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?

With 0% schema description coverage, the Args block compensates well: blueprint_name, cases with concrete example values, and node_position with optional marker and coordinate format are all explained. It loses a point because cases is not marked optional even though the schema only requires blueprint_name.

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 operation, 'Add a Switch on String flow control node', and explains its core behavior with 'Routes execution based on a string value comparison.' This clearly differentiates it from sibling tools like add_switch_on_int_node and add_switch_on_enum_node.

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?

The use case is only implied: an agent can infer this is for string-based branching, but the description never says when to prefer it over string/int/enum switch alternatives or mentions prerequisites like the blueprint needing to exist. The example helps but does not provide exclusionary guidance.

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