Skip to main content
Glama

bp_add_variable

Add a member variable to an Unreal Engine Blueprint with type support for primitives, vectors, and objects. Configure default value, expose in details panel, and group under a category.

Instructions

Add a member variable to a Blueprint with full type support.

After adding a variable, use bp_add_node with 'variable_get:VarName' or 'variable_set:VarName' to place GET/SET nodes in the graph.

Supported variable_type values: Boolean, Integer, Integer64, Float, Double, String, Name, Text, Vector, Rotator, Transform, Object/ (e.g. 'Object//Script/Engine.StaticMeshComponent')

Args: blueprint_name: Blueprint asset name variable_name: New variable name (e.g. 'Health', 'bIsAlive') variable_type: Type string (see above) default_value: Optional initial value string is_exposed: Expose in Details panel (BlueprintVisible + EditAnywhere) category: Category for Details panel grouping. Default 'Default'

Returns: JSON string with StructuredResult. outputs.variable_name, variable_type, is_exposed, default_value

KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: bp_add_variable(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName", variable_type="ExampleName")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoDefault
is_exposedNo
default_valueNo
variable_nameYes
variable_typeYes
blueprint_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/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 full burden. It implies mutation ('Add') but does not disclose side effects like asset modification, compilation, failure modes, or prerequisites. Returns JSON but lacks error details, duplicate variable behavior, or invalid type handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is structured with clear sections (purpose, types, args, returns, example), but is verbose and contains a misleading example: variable_type='ExampleName' which is not a valid type. It could be trimmed and corrected.

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?

Provides return format, KB reference, and an example, but lacks error handling, prerequisites (blueprint existence), and duplicate variable behavior. For a mutation tool with no annotations, more behavioral context is needed.

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 has 0% coverage, so the description is the sole source. It describes each parameter: blueprint_name, variable_name, variable_type with a full list of supported types, default_value, is_exposed with explanation of BlueprintVisible+EditAnywhere, and category with default. This adds significant meaning beyond schema titles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action 'Add a member variable to a Blueprint with full type support' with clear verb and resource. Lists supported types, which helps scope the operation. However, it does not differentiate from sibling tools like add_blueprint_variable, so it is not a 5.

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 on when to use this tool vs alternatives such as add_blueprint_variable, add_array_variable, or add_map_variable. The description only gives follow-up steps for placing nodes, not selection criteria. No exclusions or alternative mentions.

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