Skip to main content
Glama

add_vertical_box_to_widget

Add a vertical box layout container to a Widget Blueprint for stacking UI elements top-to-bottom. Configure position, size, anchoring, and auto-sizing in Unreal Editor.

Instructions

Add a Vertical Box layout container to a Widget Blueprint.

Vertical Box arranges child widgets vertically (top to bottom). Perfect for stacking buttons, labels, and stats in a menu.

Args: widget_name: Widget Blueprint name box_name: Component name for the Vertical Box position: [X, Y] position size: [Width, Height] anchor_preset: UMG anchor preset size_to_content: Auto-size to fit children

KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_vertical_box_to_widget(widget_name="/Game/MCP_Test/WBP_Example", box_name="ExampleName")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo
box_nameYes
positionNo
widget_nameYes
anchor_presetNoTopLeft
size_to_contentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the disclosure burden. It clearly states the mutation (adds a layout container to a Widget Blueprint) and gives a complete example call, but it does not mention prerequisites, failure modes, or side effects beyond the obvious addition.

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?

Compact, front-loaded, and well organized into purpose, usage, args, KB reference, and example. The example invocation is high-value and every line contributes.

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?

Covers all parameters, gives a realistic example, links to KB, and the output schema can carry return-value details. Missing only advanced details such as anchor preset value choices and whether the Widget Blueprint must already exist.

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%, and the Args list compensates with glosses for all six parameters, including array semantics for position [X,Y] and size [Width,Height]. However, 'anchor_preset: UMG anchor preset' adds little beyond the schema title, and widget_name format is only implied by the example.

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?

States a specific action ('Add') on a specific resource ('Vertical Box layout container' to a 'Widget Blueprint') and clarifies the vertical orientation ('top to bottom'). This clearly separates it from siblings like add_horizontal_box_to_widget.

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?

Provides a concrete use case: 'Perfect for stacking buttons, labels, and stats in a menu.' This signals when the vertical box is appropriate, though it does not explicitly mention when not to use it or name alternatives.

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