Skip to main content
Glama

set_material_layer_stack

DestructiveIdempotent

Define the ordered layer and blend functions for a material instance, composing surfaces from reusable layers instead of editing the base graph; re-stacking renumbers indexed per-layer values.

Instructions

Define which material-layer and blend functions a layered material instance stacks, in order -- how you compose a surface (base + dirt + snow) out of reusable layer functions instead of editing the base material graph. Order is significant and layers are addressed downstream by index (set_material_layer_parameter), so re-stacking renumbers existing per-layer values. Read the result back with get_material_layer_stack.

Returns: { material_instance_path: string, layer_count: int, blend_count: int, success: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blendsNoOptional list of {function_path} dicts naming blend material functions.
layersNoOptional list of {function_path} dicts naming layer material functions.
material_instance_pathYesContent path to the MIC

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true. The description adds critical context the annotations cannot: order is significant, layers are addressed by index downstream, and re-stacking renumbers existing per-layer values. It also documents the return shape, which helps for a mutation tool.

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?

Front-loaded with the core action and example, followed by the ordering caveat and readback guidance. Dense but every sentence carries weight; no filler.

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, indexed mutation tool, it covers what it does, why ordering matters, the downstream index dependency, the readback sibling, and the return shape. Nothing essential to calling it correctly is missing.

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?

Schema description coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains that layers and blends are function-path lists composed in order and that ordering/indexing matters for downstream per-layer parameters.

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 (define/set) plus resource (the layer and blend functions a layered material instance stacks) and clarifies the intent with a concrete example (base + dirt + snow). It is clearly distinguishable from sibling tools like set_material_layer_parameter and get_material_layer_stack.

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

Usage Guidelines4/5

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

Explains when to use it (composing a surface out of reusable layer functions rather than editing the base material graph) and routes the agent to get_material_layer_stack for readback and set_material_layer_parameter for downstream edits. Does not state exclusions, but the context is unambiguous.

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