Skip to main content
Glama

add_canvas_panel_to_widget

Add a Canvas Panel to a Widget Blueprint to enable absolute positioning of child widgets, allowing drag-and-drop placement anywhere in the UI.

Instructions

Add a Canvas Panel to a Widget Blueprint (free-placement layout).

From Ch. 7: Canvas Panel allows absolute positioning of child widgets (drag and drop anywhere). It's the default root panel for most UMG widgets.

Args: widget_name: Widget Blueprint name panel_name: Component name for the Canvas Panel

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
panel_nameNoCanvasPanel
widget_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 burden of behavioral disclosure. It provides useful domain context about Canvas Panels but does not describe the tool's actual side effects, whether an existing root panel is replaced, idempotence, failure modes, or what changes occur to the target widget blueprint beyond 'Add'.

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 well-structured: a one-line purpose, brief conceptual context, Args list, KB reference, and example. It is concise and front-loaded, with no significant padding, though the 'From Ch. 7' framing is slightly extraneous.

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?

With an output schema present, return values need not be explained, and the example provides a usable call pattern. However, the tool has no annotations and the description omits preconditions (e.g., widget blueprint must exist), whether the panel is created as a root component, and what happens if a panel already exists. It is minimally sufficient but not complete.

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%, so the description must compensate. It does provide an Args block explaining widget_name as 'Widget Blueprint name' and panel_name as 'Component name for the Canvas Panel', plus an example path. This is helpful but still minimal, lacking path format details, constraints, or how the two parameters interact.

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 opens with a specific verb and resource: 'Add a Canvas Panel to a Widget Blueprint'. It further clarifies intent with '(free-placement layout)', which differentiates it from sibling tools like add_horizontal_box_to_widget or add_text_block_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 Guidelines3/5

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

The description implies when to use it by explaining that Canvas Panel allows absolute positioning and is the default root panel for most UMG widgets. However, it does not explicitly name alternatives or state when not to use this tool versus other layout panels.

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