Skip to main content
Glama

set_material_layer_parameter

DestructiveIdempotent

Set scalar, vector, or texture parameters on a single layer of a layered material instance, so each blend layer keeps its own tiling, tint, or texture independent of the global slot.

Instructions

Write a scalar / vector / texture parameter scoped to ONE layer of a layered material instance (addressed by zero-based layer_index), so each layer of a blend keeps its own tiling, tint or texture. Different from set_material_instance_param_override, which targets the Global association and would hit the wrong slot on a layered material. Do not trust the success flag -- the engine's setters are known to report failure while doing the work; re-read with get_material_layer_parameter.

Returns: { material_instance_path: string, parameter_name: string, layer_index: int, success: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesFor scalar: a float. For vector: dict {r, g, b, a}. For texture: a content path string.
layer_indexYesZero-based layer index (for LayerParameter association)
parameter_nameYesName of the parameter to set
parameter_typeYesOne of "scalar", "vector", "texture"
material_instance_pathYesContent path to the MIC, e.g. /Game/MyGame/MI_Example

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, destructive=true, idempotent=true), so the bar is lower, yet the description adds the key non-obvious trait that the engine's success flag is unreliable and re-reading is required. It does not clarify what the destructive overwrite actually replaces per layer, keeping this short of a 5.

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?

Front-loaded with the core action and scope, then the sibling differentiation, then the verification caveat. Every sentence carries distinct value, including the Returns line, which compensates for the missing output schema.

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, 5-required-parameter mutation with full schema coverage and no output schema, the description covers what it writes, where it is scoped, the sibling tradeoff, the unreliable success signal, and the return shape. Nothing an agent needs to invoke it correctly is missing.

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 the schema already documents every parameter (value, layer_index, parameter_name, parameter_type, material_instance_path). The description reinforces the zero-based layer_index scoping but adds no syntax or format beyond the schema; baseline 3 is correct.

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 gives a precise verb+resource ('Write a scalar/vector/texture parameter scoped to ONE layer of a layered material instance') and immediately names the sibling it differs from (set_material_instance_param_override). An agent can distinguish this from the Global-association setter without opening either schema.

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

Usage Guidelines5/5

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

It states the selecting condition explicitly ('scoped to ONE layer... so each layer of a blend keeps its own tiling, tint or texture') and names the alternative plus the exact failure mode of using the wrong one ('would hit the wrong slot on a layered material'). It also prescribes follow-up verification with get_material_layer_parameter.

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