Skip to main content
Glama

add_set_variable

Add a set variable to an Unreal Engine Blueprint to store unique, unordered elements, preventing duplicate entries in collections.

Instructions

Add a Set variable to a Blueprint.

Sets store unique, unordered elements - useful when you need to track membership without duplicates.

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

KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_set_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

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 burden of behavioral disclosure. It reveals that this is a mutating add operation and describes set semantics, but it does not state side effects such as overwriting an existing variable, compile requirements, or what happens if the variable already exists. This is a meaningful transparency gap for a write tool.

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 compact and well-ordered: purpose, data-structure rationale, Args, KB pointer, and example. Every section earns its place, and the example demonstrates a realistic call with an absolute Blueprint path.

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 4-parameter mutation tool with no annotations, the description supplies essential invocation data: all parameters, a KB reference, and an example. However, it omits preconditions and behavioral details such as uniqueness constraints, valid element_type values beyond examples, and whether the Blueprint needs saving or compiling after the call.

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 Args block is the only semantic source for all four parameters, and it covers each one: blueprint_name, variable_name, element_type, and is_exposed. It adds useful nuance such as 'Integer, String, Name, etc.' for element_type and 'Expose to editor Details panel' for is_exposed, though it could provide more format or constraint detail.

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?

The opening line, 'Add a Set variable to a Blueprint,' names a specific verb and resource, and the following sentence explains sets as unique, unordered collections. This is clear and not a tautology, and it reads distinctly from sibling tools like add_array_variable and add_map_variable, though it does not explicitly name 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 Guidelines4/5

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

The description gives an explicit selection cue: sets are 'useful when you need to track membership without duplicates,' which tells an agent when this data structure is appropriate. It does not name alternatives or state when not to use sets, so it provides context without full exclusions.

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