Skip to main content
Glama

editor-selection-set

Set Unity Editor selection to specified objects using instance IDs. Obtain instance IDs from gameobject-find or editor-selection-get tools first.

Instructions

Set the current Selection in the Unity Editor to the provided objects. Use 'editor-selection-get' tool to get the current selection first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectYesArray of ObjectRef to select. SCHEMA: [{"instanceID":12345}]. Get instanceID from gameobject-find or editor-selection-get first.
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only states the action without disclosing side effects, error handling (e.g., invalid objects), or whether it replaces or appends to the selection. Minimal behavioral context beyond the basic operation.

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?

Three sentences, front-loaded with purpose, followed by a usage guideline. Every sentence earns its place with no redundancy or trivia.

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?

For a simple setter with one parameter and no output schema, the description covers key aspects: what it does, how to get the parameter, and when to use. However, lacks clarity on whether selection is replaced or appended, and no mention of return or confirmation. Adequate but not complete.

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 input schema has one parameter with 100% coverage. The description adds value by specifying the format (Array of ObjectRef with instanceID) and instructing how to obtain instanceIDs from other tools, going beyond the schema 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 action 'Set the current Selection' and the resource 'Unity Editor', distinguishing it from the sibling 'editor-selection-get' by recommending its use first.

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?

Provides explicit guidance to use 'editor-selection-get' first to obtain the current selection, setting clear context for when to invoke this tool. No exclusions or alternatives needed for a simple setter.

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/butterlatte-zhang/unity-ai-bridge'

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