Skip to main content
Glama

add_set_to_array_node

Convert a Set variable into an Array node in a Blueprint to enable element iteration. Adds the node at a given graph position for automated Blueprint editing.

Instructions

Add a Set TO ARRAY node - convert a Set to an Array for iteration.

From Ch. 13: Sets don't have a GET element node, so convert to array first if you need to iterate over elements. Note: copying large object sets can be expensive.

Args: blueprint_name: Blueprint to add the node to set_variable: Set variable name to convert node_position: [X, Y] graph position

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
set_variableYes
node_positionNo
blueprint_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral disclosure burden. It mentions that copying large object sets can be expensive, which is useful. However, it does not disclose whether the conversion mutates the original set, whether a new array is created, or what the return value is (though an output schema exists). This leaves some behavioral ambiguity, so a 3 is appropriate.

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 with a purpose statement, rationale, args list, KB reference, and example. It is concise, front-loads the primary purpose, and each section earns its place. No wasted words, making it easy for an agent to parse quickly.

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 is a simple node-adding operation, and the description covers the key aspects: what it does, when to use it, the parameters, and a cost caveat. An output schema exists, so return-value documentation is not required. It could mention error handling (e.g., if the set variable doesn't exist), but overall it is sufficiently complete for an agent to call it 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 provides brief explanations for each argument: 'blueprint_name: Blueprint to add the node to', 'set_variable: Set variable name to convert', 'node_position: [X, Y] graph position'. This adds meaning beyond the schema's bare property names and includes an example, effectively clarifying parameter semantics.

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 'Add a Set TO ARRAY node - convert a Set to an Array for iteration.' This specifies the verb (add), the resource (Set TO ARRAY node), and the purpose (convert Set to Array for iteration). It distinguishes from siblings like add_make_array_node (which creates arrays from literals) and add_set_contains_node (which checks membership), so an agent can immediately tell what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly explains when to use this tool: 'Sets don't have a GET element node, so convert to array first if you need to iterate over elements.' This gives a clear condition and rationale, effectively guiding the agent to choose this tool over others. It also warns about the cost of copying large sets, providing additional usage context.

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