Skip to main content
Glama

unity_execute_menu_item

Executes any Unity Editor menu command by its full menu path, like 'File/Save' or 'GameObject/3D Object/Cube', enabling automated workflow control.

Instructions

Execute a Unity Editor menu command by its path (e.g. 'File/Save', 'GameObject/3D Object/Cube', 'Window/General/Console').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
menuPathYesFull menu path (e.g. 'Edit/Project Settings...')
portNoTarget Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter.
Behavior3/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It notes the port parameter for parallel-safe routing, but does not reveal other behavioral traits such as whether the command is synchronous, if errors silently fail, or if it requires an active project. This is adequate but not comprehensive.

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 description is a single, well-structured sentence that front-loads the core purpose and immediately follows with illustrative examples. Every part serves a clear function with no redundancies.

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

Completeness5/5

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

Given the tool's simplicity (2 parameters, no nested objects, no output schema), the description is sufficiently complete. It covers the execution action, menu path format, and the optional port for instance routing, leaving no major gaps for typical usage.

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 100% with descriptive parameter names and descriptions. The description adds value by providing concrete examples of valid menu paths (e.g., 'GameObject/3D Object/Cube'), which clarifies the expected format beyond the schema's static description.

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 clearly states the tool executes a Unity Editor menu command by its path, with concrete examples like 'File/Save'. This specific verb+resource pairing distinguishes it from sibling tools, none of which target menu execution directly.

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 its usage context (triggering editor menu commands) but does not provide explicit guidance on when not to use it or suggest alternatives. It includes practical information about the port parameter for parallel instances, which helps in multi-instance scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnkleBreaker-Studio/unity-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server