Skip to main content
Glama

unity_set_property

Sets a serialized property or component field on a Unity GameObject using its path and component, and resolves shorthand names like 'color' to serialized fields.

Instructions

Set any serialized property or component field. Auto-resolves 'color' -> m_Color style names. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "component": "<component>",
      "property": "<property>",
      "value": "<value>"
    },
    "name": "unity_set_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesGameObject path
valueYesnumber, string, bool, [x,y,z], {r,g,b,a}, asset path or object path
propertyYesserialized property path, e.g. m_Size, fieldName, color
componentYescomponent type name, e.g. Camera or MeshRenderer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does add two useful behavioral facts: automatic property-name normalization and the fact that the Unity editor is offline so calls will fail until reconnection. It still omits mutation behavior such as undo support, whether the scene is marked dirty, edit vs play-mode validity, and error semantics on failure.

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 the core action and the name-resolution rule. The parenthetical offline warning is compact and prevents wasted calls, though it is transient environment state rather than durable tool documentation.

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?

Assessment based on complexity: Assess completeness relative to tool complexity.

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 baseline is 3; the schema already documents path, component, property, and the accepted value forms. The description adds only the name-resolution behavior tied to 'property', which is a modest but genuine gain over the schema.

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: sets any serialized property or component field, with the auto-resolution of 'color' to m_Color-style names called out. It is clear what the tool does, but it does not differentiate itself from siblings like unity_set_material or unity_set_transform, which also mutate properties.

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?

Usage is only implied by 'any serialized property or component field', suggesting a generic fallback for cases the specialized setters don't cover. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer routing from sibling names alone.

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