Skip to main content
Glama

bind_widget_event

Bind a widget event like OnClicked to a target function in Unreal Engine 5. Specify widget, component, event, and function name to automate UMG interaction handling.

Instructions

Bind a widget event (e.g., OnClicked) to a function.

Args: widget_name: Widget Blueprint name widget_component_name: Component name (e.g., button name) event_name: Event to bind ("OnClicked", "OnHovered", "OnUnhovered", "OnPressed", "OnReleased") function_name: Target function name (auto-generated if empty)

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_nameYes
widget_nameYes
function_nameNo
widget_component_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

There are no annotations, so the description carries the full behavioral burden. It discloses that function_name is auto-generated if empty, which is useful, but it does not mention that this mutates the Blueprint graph, whether existing bindings are replaced, or whether the target function must already exist.

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 reasonably concise and well-structured with a purpose line, argument definitions, KB pointer, and example. The example is somewhat long and contains questionable values, which reduces its instructional value.

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?

It covers all parameters and provides a KB reference, and an output schema exists, so return values need not be explained. Still, it lacks clarity about the expected address format, the difference from bind_widget_component_event, and the prerequisites for the target Blueprint and component.

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 coverage is 0%, and the description compensates by defining all four parameters and enumerating accepted event_name values. However, the example is inconsistent: widget_component_name is shown as a full widget path and event_name is shown as 'ExampleName' rather than one of the documented event names.

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?

States a clear verb and resource: binding a widget event (OnClicked, etc.) to a function. It is specific enough to understand the tool's intent, though it does not differentiate itself from the near-identical sibling bind_widget_component_event.

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?

No usage guidance is provided. It does not say when to use this tool instead of bind_widget_component_event, umg_add_widget_binding, or other event-binding tools. The KB link and example show invocation but not decision criteria.

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