Skip to main content
Glama

set_grid_slot_properties

DestructiveIdempotent

Configure a widget's UGridSlot row, column, spans, alignment, padding, layer, and nudge when parented under a GridPanel. Reapplying identical values is idempotent.

Instructions

Configure a widget's UGridSlot layout (row/column/spans/alignment/padding/layer/nudge). Applies when the widget is parented under a GridPanel (create one with add_widget_extended widget_type="GridPanel"). Setting the same values again is idempotent.

Returns: { widget_bp_path: string, widget_name: string, slot_type: string, settings_applied: object, applied_count: int, saved: bool, save_error: string }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowNoOptional int row index of the cell
forceNoOptional. This command is REFUSED while a Play-in-Editor session is running: it either compiles a Blueprint (the reinstancer can retain a world, and CheckForWorldGCLeaks is Fatal -- it KILLS the editor) or writes to disk (Editor.AllowSavingAssetsDuringPIE=0 makes the engine refuse the write, so it would report success without writing a byte). Stop PIE and retry instead; force=true runs it anyway, at your own risk.
layerNoOptional int draw/hit-test layer offset (positive draws on top).
nudgeNoOptional [X, Y] content offset.
columnNoOptional int column index of the cell
paddingNoOptional [Left, Top, Right, Bottom] floats.
row_spanNoOptional int number of rows this slot spans
column_spanNoOptional int number of columns this slot spans
widget_nameYesname of the child widget whose grid slot to edit
blueprint_nameNoAlias of `widget_bp_path` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `widget_bp_path`.
widget_bp_pathNo/Game path of the Widget Blueprint asset
vertical_alignmentNoOptional alignment: Fill | Top | Center | Bottom
horizontal_alignmentNoOptional alignment: Fill | Left | Center | Right

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, and the description's idempotency sentence restates the latter, so it earns no credit there. It adds the return shape (including a 'saved'/'save_error' flag that hints at disk writes) but never explains what makes this destructive or the PIE-refusal behavior, which lives only in the schema's force parameter.

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?

Front-loads the core action, follows with the critical parent precondition, then the return contract — no filler sentences. Slightly verbose in restating idempotency, keeping it from a 5.

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?

With a fully-covered schema, annotations handling safety, and no output schema, the description usefully supplies the return shape and the GridPanel precondition. An agent still lacks explicit routing to the box/generic slot siblings, but nothing required to invoke it correctly is missing.

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 100%, so the schema already documents all 13 parameters including the elaborately explained force flag. The description only re-lists field names (row/column/spans/alignment/padding/layer/nudge) that the schema already carries, adding no new semantic value — the baseline 3.

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 specific verb and resource ('Configure a widget's UGridSlot layout') and enumerates the editable fields, which lets an agent distinguish it from the generic set_slot_properties or panel-specific set_box_slot_properties. It does not name a sibling explicitly, so it stops short of a 5.

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?

Gives a clear precondition — the widget must be parented under a GridPanel — and routes the agent to add_widget_extended to create that parent. It omits any when-not-to-use guidance versus the other slot tools (box/generic), leaving that to inference.

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