Skip to main content
Glama

add_button_to_widget

Add a button to a Widget Blueprint, setting its label, position, size, font, and colors. Simplifies UI creation in Unreal Editor.

Instructions

Add a Button to a Widget Blueprint.

Args: widget_name: Widget Blueprint name button_name: Component name for the button text: Button label position: [X, Y] canvas position size: [Width, Height] font_size: Font size color: [R,G,B,A] text color background_color: [R,G,B,A] button background color

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo
textNo
colorNo
positionNo
font_sizeNo
button_nameYes
widget_nameYes
background_colorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 behavioral burden. It conveys that the tool adds a button to a widget blueprint, but it does not disclose whether existing components are affected, whether the blueprint must be saved or compiled afterward, or what failure modes exist. The KB reference is not sufficient to make the behavior explicit.

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 front-loaded: a clear purpose sentence, a tight Args list, one KB pointer, and one realistic example. Every section earns its place without redundant prose.

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?

All eight parameters are semantically documented, the example clarifies the required widget_name form, and an output schema exists so return-value details are unnecessary. The main gap is the lack of explicit preconditions and behavioral effects, but the description is otherwise sufficient for invoking the tool correctly.

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

Parameters5/5

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

The schema provides only titles and array types, so the description is the only source of semantic meaning. It explains position as [X, Y] canvas coordinates, size as [Width, Height], color as [R,G,B,A] text color, and background_color as button background color. The example also demonstrates the expected asset-path format.

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 first sentence states a concrete verb ('Add'), a specific resource ('Button'), and the target container ('Widget Blueprint'). The Args list further clarifies widget_name as the blueprint and button_name as the component, making it unambiguous among the many add_*_to_widget sibling tools.

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?

There is no guidance on when to use this tool instead of add_text_block_to_widget, add_image_to_widget, or other sibling widget-construction tools. No preconditions, alternatives, or exclusions are stated; the KB link is a pointer but not an explicit usage rule.

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