Skip to main content
Glama

unity_ui

Build uGUI screens by creating a Canvas with EventSystem, text labels, images, and labeled buttons. Use it to assemble Unity editor UI through MCP calls.

Instructions

Build uGUI screens: create a Canvas (with EventSystem), text labels, images, and buttons with labels. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unity_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
sizeNo[width,height]
textNo
colorNo#hex or [r,g,b,a]
labelNobutton label
actionNo
parentNoparent object path, defaults to the first Canvas
spriteNosprite asset path for image/button
fontSizeNo
positionNoanchoredPosition [x,y]
alignmentNoTextAnchor, 4 = middle center

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are present, so the description carries the full burden. It does disclose a real side effect ('Canvas (with EventSystem)') and an important operational constraint (editor offline, schemas cached, calls will fail until reconnect), which is genuinely useful. It says nothing about whether objects are added to the open scene, undo/failure behavior, or what is returned.

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?

Two short sentences, front-loaded with capability and then the caveat. No filler, though the parenthetical caveat is transient operational state that may age out of the definition.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An 11-parameter creation tool with no output schema and no annotations needs the description to say what happens on success and how to reference the created objects afterwards; it says none of that, and leaves the primary 'action' parameter unexplained. The offline caveat is the only behaviour-level context supplied.

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 coverage is 64%, so the schema already documents most fields (size, color, label, parent, sprite, position, alignment). The description adds essentially no parameter meaning beyond mentioning buttons have labels and canvases spawn an EventSystem; the 'action' enum, which drives the whole tool's behavior, is never explained in the description.

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?

The description opens with a specific verb and resource ('Build uGUI screens') and then enumerates the concrete artefacts it produces: Canvas with EventSystem, text labels, images, buttons with labels. This is enough to separate it from generic creation siblings such as unity_create or unity_add_component, though it never names those siblings explicitly.

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?

Use is implied by the enumeration of UI element types, but the description never says when to prefer this over unity_create+unity_add_component or unity_set_property for UI tweaks, and gives no prerequisites (e.g. an open scene). The offline warning is an operational note rather than usage routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.