Skip to main content
Glama

add_widget_interaction_component

Add a Widget Interaction component to a Blueprint to enable VR laser-pointer interaction with UMG widgets placed in the world.

Instructions

Add a Widget Interaction component for VR UI interaction.

From Ch. 16: The Widget Interaction component works like a laser pointer, allowing the user to interact with UMG Widget Blueprints placed in the world. Used in the VR menu system activated by the Menu button.

Args: blueprint_name: Blueprint to add the component to component_name: Component name interaction_distance: Max distance for widget interaction (UE units) show_debug: Show debug visualization beam

KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: add_widget_interaction_component(blueprint_name="/Game/MCP_Test/BP_Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
show_debugNo
blueprint_nameYes
component_nameNoWidgetInteraction
interaction_distanceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It explains the laser-pointer behavior and the blueprint target, but it does not disclose side effects such as blueprint asset mutation, need to compile/save, or failure/duplicate-component behavior. This is adequate but leaves a clear gap.

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 purpose is front-loaded, followed by compact conceptual context, an Args section, a knowledge-base pointer, and a concrete example. There is no filler; each section earns its place.

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?

For a small 4-parameter additive tool, the definition is largely complete: it covers all arguments, gives a usage scenario, links to a chapter/knowledge base, and includes an example. An output schema exists, so the lack of return-value prose is acceptable. The main omission is behavioral/side-effect detail covered above.

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?

The Args block documents all four parameters in plain terms and adds useful details beyond the schema, especially UE units for interaction_distance and the debug beam for show_debug. Some entries repeat the schema titles (component_name), but overall the 0% schema coverage is compensated.

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 names the exact operation—adding a Widget Interaction component—and grounds it in a concrete purpose: VR UI interaction via a laser-pointer-like interaction with UMG Widget Blueprints. This makes it easy to tell apart from generic component-adding siblings and other VR pawn tools.

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?

It gives a clear usage context: the component belongs in the VR menu system activated by the Menu button, so an agent can infer when it is relevant. It does not explicitly name alternatives or state when not to use it, so it stops short of a 5.

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