Skip to main content
Glama

set_state_theme_color

DestructiveIdempotent

Create or update a StateTree editor theme color by display name, preserving the ColorRef UUID for existing entries so state references stay valid.

Instructions

Upsert a theme color in UStateTreeEditorData::Colors. CRITICAL: if a color with the same DisplayName (case-insensitive) already exists, its ColorRef UUID is preserved — state-level ColorRef references keep resolving, and the editor retains the original color identity in the asset's change history. Newly-created colors get a fresh UUID; the caller is responsible for re-binding any state ColorRefs that referenced an orphaned previous UUID. r/g/b default to 1.0; a defaults to 1.0. The engine stores Colors as a TSet keyed on ColorRef (display name uniqueness is the caller's responsibility — duplicate names are allowed by the engine but produce ambiguous lookups downstream).

Returns: { state_tree_path, color_name, color_ref, r, g, b, a, was_new, saved }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aNoalpha 0..1 (default 1.0)
bNoblue 0..1 (default 1.0)
gNogreen 0..1 (default 1.0)
rNored 0..1 (default 1.0)
color_nameYesDisplay name (required, case-insensitive lookup)
state_tree_pathYesAsset path of the UStateTree

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes well beyond them: it explains UUID preservation for existing names, fresh UUIDs for new colors, the caller's obligation to re-bind orphaned ColorRefs, and the TSet/ColorRef storage model that permits ambiguous duplicate names. This is exactly the behavioral detail an agent needs for a destructive mutation.

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?

Purpose is front-loaded before the CRITICAL behavior note, and the returns list closes it out cleanly. Slightly penalized for restating the r/g/b/a defaults that the schema already documents, a mildly redundant sentence.

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?

For a destructive, 6-parameter mutation with no output schema, the description supplies the mutation semantics, the UUID/ColorRef consequences, caller responsibilities, and an explicit Returns field list (including was_new and saved). An agent has everything needed to call it correctly.

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?

With 100% schema coverage the baseline is 3, but the description adds real semantic weight: it ties color_name to case-insensitive DisplayName matching and explains that ColorRef (not display name) is the uniqueness key. It restates the r/g/b/a defaults already present in the schema, which is the only non-additive part.

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?

States a specific verb+resource ('Upsert a theme color in UStateTreeEditorData::Colors') and immediately distinguishes an upsert from a create via the CRITICAL note on existing DisplayName. An agent can tell this mutates StateTree theme colors without opening any schema.

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 conveys the upsert condition (same case-insensitive DisplayName preserves UUID) and a caution about duplicate names, which is implied usage guidance. However it never names an alternative (e.g. get_state_theme_colors) nor states explicit when-not-to-use conditions, leaving routing to inference.

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

Deploy Server

Other Tools