Skip to main content
Glama

update_gameobject

Update a GameObject's properties by instance ID or path. Creates the GameObject if it doesn't exist.

Instructions

Updates properties of a GameObject in the Unity scene by its instance ID or path. If the GameObject does not exist at the specified path, it will be created.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceIdNoThe instance ID of the GameObject to update
objectPathNoThe path of the GameObject in the hierarchy to update (alternative to instanceId)
gameObjectDataYesAn object containing the fields to update on the GameObject (name, tag, layer, activeSelf, isStatic). If the GameObject does not exist at objectPath, it will be created.
Behavior3/5

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

The description adds the creation behavior (if GameObject missing), which is good. However, it does not disclose side effects, error handling, or behavior when both instanceId and objectPath are provided. Annotations indicate non-read-only, but the description carries most of the burden.

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?

Two concise sentences with no filler. The key information (verb, resource, alternative identifiers, creation behavior) is front-loaded.

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 tool with 3 parameters and no output schema, the description covers basic purpose and creation nuance but omits return value, error conditions, and behavior for missing instanceId. It is adequate but not comprehensive.

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 100%, so each parameter already has a description. The description adds context about creation tied to objectPath, but does not further clarify the relationship between instanceId and objectPath or the structure of gameObjectData.

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 updates GameObject properties via instance ID or path, and includes the notable creation behavior. This distinguishes it from sibling tools like get_gameobject, delete_gameobject, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool vs alternatives like get_gameobject or delete_gameobject. It does not mention prerequisites, when-not to use, or alternative approaches.

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/joel-wehr/unity-mcp'

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