Skip to main content
Glama

set_color

Changes the color of a Unity object, sprite, or light by accepting a target and a color name or #RRGGBB value.

Instructions

Change the color of an object, sprite or light.

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": {
      "target": "<target>",
      "color": "<color>"
    },
    "name": "set_color"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesName or #RRGGBB
targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already establish that this is a non-read-only, non-destructive, closed-world mutation, so the safety profile is covered. The description adds nothing beyond that: no mention of undo/redo behavior, whether the change is applied to the scene immediately or on save, or whether it works in play mode versus edit mode.

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?

A single short sentence with the action front-loaded and zero wasted words. It is concise to the point of under-specification, but structurally sound.

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?

This is a mutation tool with no output schema and only half of its parameters documented in the schema, so the description needs to carry more weight. It omits target identification format, undo semantics, and any indication of what happens on an invalid target or color string.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%; the color parameter's format ("Name or #RRGGBB") is already documented in the schema, and the description merely repeats that color is being set. The description does hint that target may be an object, sprite, or light, but it never explains how a target is identified (name, path, GUID), leaving the undocumented parameter substantially unexplained.

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 ("Change") and resource ("color") plus the kinds of entities it applies to (object, sprite, light). It is clear what the tool does, but it does not distinguish itself from generic siblings like set_property, which could plausibly set a color too.

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?

There is no when-to-use versus when-not-to-use guidance and no named alternative. An agent has to guess whether set_color or set_property is the right call, and nothing states prerequisites such as whether the target must exist or be selected first.

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