Skip to main content
Glama

add_map_variable

Add a Map variable to a Blueprint to store key-value pairs with O(1) lookup by key. Specify key and value types, optionally expose to editor Details panel.

Instructions

Add a Map (dictionary) variable to a Blueprint.

Maps store key-value pairs with O(1) lookup by key.

Args: blueprint_name: Blueprint name variable_name: Variable name key_type: Key type (String, Name, Integer, etc.) value_type: Value type (Integer, Float, String, Vector, etc.) is_exposed: Expose to editor Details panel

KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_map_variable(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName", key_type="ExampleName", value_type=0.0)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
key_typeYes
is_exposedNo
value_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. 'Add' implies mutation, but the description does not disclose that the Blueprint asset is modified, whether an existing variable is overwritten, or whether saving/compiling is required afterward. This is a meaningful gap for a mutation tool.

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, front-loaded with the core action, and well-structured with Args, KB reference, and example. Some Arg lines (e.g., 'Blueprint name') merely restate the schema titles and the example contains questionable values, but overall it remains appropriately sized and scannable.

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 5-parameter mutation tool with no annotations, the description covers purpose, data-structure semantics, parameters, and points to KB documentation, and an output schema exists. Missing are side-effect behavior, name-collision handling, and a corrected example, so the definition is adequate but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the Args section adds value by explaining key_type and value_type with example types and is_exposed with editor Details panel behavior. However, the example is misleading: key_type="ExampleName" looks like a variable name and value_type=0.0 conflicts with the schema's string type, which could cause incorrect invocation.

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 verb and resource: 'Add a Map (dictionary) variable to a Blueprint.' This clearly distinguishes it from sibling tools like add_array_variable, add_set_variable, and add_blueprint_variable by naming the exact data structure being created.

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 description implies when to use a Map via 'Maps store key-value pairs with O(1) lookup by key,' but it never explicitly contrasts this with array/set variables or names alternatives. Usage context is present but left to inference.

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