Skip to main content
Glama

add_array_variable

Add an array variable to an Unreal Engine Blueprint, specifying the element type and optional editor exposure for organized data storage.

Instructions

Add an Array variable to a Blueprint.

Arrays are ordered, indexed lists of elements of the same type.

Args: blueprint_name: Blueprint name variable_name: Variable name element_type: Element type (Boolean, Integer, Float, String, Vector, etc.) is_exposed: Expose to editor Details panel

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
is_exposedNo
element_typeYes
variable_nameYes
blueprint_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 burden of behavioral disclosure. It does not mention side effects such as blueprint mutation, compile requirements, overwrite behavior, or failure behavior if the variable already exists. The only behavioral context is that is_exposed affects visibility in the Details panel, which is more of a parameter detail.

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 core purpose stated first and additional information organized into Args, KB, and Example sections. The Args block partly duplicates the schema, but since the schema has no descriptions, it earns its place here.

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?

The description provides enough to attempt a basic call, especially with the example and parameter list. It omits prerequisites, expected failure modes, and explicit routing among related variable-creation tools, but the presence of an output schema reduces the need to document return values.

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, and it does. It lists all four arguments with brief but meaningful explanations, including example element types and a concrete call example. However, element_type is left open-ended with 'etc.', so some ambiguity remains.

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 opens with a clear, specific verb-resource pair: 'Add an Array variable to a Blueprint.' It also defines what an Array is, and the sibling list includes add_map_variable and add_set_variable, so naming the container type helps distinguish it from 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?

No guidance is given about when to choose this tool over add_blueprint_variable, add_map_variable, or add_set_variable. The KB reference is a pointer to general data-structure documentation, not an explicit when-to-use or when-not-to-use instruction.

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