Skip to main content
Glama

bind_widget_component_event

Bind a named sub-widget's event delegate (e.g., OnClicked) in a Widget Blueprint by full path, auto-promoting the sub-widget to a variable when needed for UMG event wiring.

Instructions

Create or reuse a component-bound event node for a named sub-widget.

Use this for precise UMG event wiring on named widget variables such as Button.OnClicked, Button.OnHovered, or Slider.OnValueChanged. Unlike the legacy bind_widget_event route, this resolves the Widget Blueprint by full path, promotes the sub-widget to a Blueprint variable when needed, and binds the delegate to that specific widget property.

Args: widget_blueprint_path: Full Widget Blueprint asset path. widget_name: Named sub-widget in the WidgetTree, e.g. "BTN_Start". event_name: Delegate property name, e.g. "OnClicked". compile: Whether the native route should compile/save after binding.

Returns: Structured result with node_id, created, and variable_promoted.

KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#event-driven-widget-workflows Example: bind_widget_component_event(widget_blueprint_path="/Game/UI/WBP_MainMenu", widget_name="BTN_Start", event_name="OnClicked")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
compileNo
event_nameYes
widget_nameYes
widget_blueprint_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and discloses real behavior: it may promote the sub-widget to a Blueprint variable, binds the delegate, and compile/saves when compile is true. It also states the structured return fields. It could note overwrite/reuse semantics more explicitly, but this is strong for an unannotated 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.

Conciseness5/5

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

The description is organized into purpose, usage contrast, Args, Returns, KB link, and a complete example. No sentence is filler; the most important scoping and alternative information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 sparse schema and no annotations, the description is complete: it defines inputs, output fields, side effects, points to KB documentation, and gives a runnable example. An agent has enough to select and invoke it 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?

Schema coverage is 0%, so the description fully compensates by documenting every parameter with types, examples, and purpose. The example call grounds the parameter usage and makes the semantics concrete.

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 opening sentence states a specific action (create/reuse a component-bound event node) and a specific resource (named sub-widget). It distinguishes itself from bind_widget_event by spelling out the key differences: full path resolution, variable promotion, and delegate binding.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly says to use for precise UMG event wiring on named widget variables and contrasts with the legacy bind_widget_event route with concrete behavioral differences. Examples of delegate properties make the intended scenario unambiguous.

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