Skip to main content
Glama

Set Material

set_material
DestructiveIdempotent

Create or update a material and assign it to an object or selected faces, controlling color, texture, emission, and surface properties. Apply after shaping to update all users of that material.

Instructions

Create or update a material, optionally on an object or its picked faces; all its users change; '' clears an image or vertex_color. Returns: its values, slot, faces. WHEN TO CALL: after shaping.

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": {
      "material": "<material>"
    },
    "name": "set_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
alphaNoBelow 1 blends
facesNoIndices from get_mesh
facingNoWorld direction
objectNoMesh to put it on
materialYesCreated if missing
metallicNo0 to 1
roughnessNo0 to 1
toleranceNoDegrees off facing (30)
alpha_modeNoWith an image or vertex_color, their alpha
base_colorNo[r, g, b(, a)] linear, or '#RRGGBB' sRGB
alpha_cutoffNoclip below (0.5)
normal_imageNoImage file
vertex_colorNoColor attribute as base colour
emission_colorNoAlone sets strength 1
emission_imageNoImage file
backface_cullingNoHide back faces (true for new)
base_color_imageNoImage file
emission_strengthNoAbove 1 glows

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the mutation and re-call safety profile is largely covered. The description still earns credit for disclosing that the change propagates to 'all its users' and that passing '' clears an image or vertex_color — real side-effect and reset semantics not in the annotations. It does not cover permission requirements or failure modes.

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?

Three compact clauses with no filler: purpose, side effect, return shape, then a trailing timing hint. The semicolon-chained phrasing is dense but front-loads the create-or-update action. The 'WHEN TO CALL' line is short enough not to be wasteful.

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?

For a destructive 18-parameter mutation, the description covers creation vs update, target scoping (object or faces), propagation to users, the clearing convention, and the return payload ('its values, slot, faces') — so the missing output schema is compensated. The main residual gap is that the invocation-ordering hint ('after shaping') is too terse to fully orient an agent in the workflow.

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 and the schema already documents all 18 parameters including defaults like (30) for tolerance and (0.5) for alpha_cutoff. The description adds genuine meaning beyond the schema by explaining the empty-string clearing convention for image and vertex_color parameters, and by noting materials are created if missing. Defaults and multi-parameter interactions are left to 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?

The description gives a specific verb+resource pair ('Create or update a material') plus scope ('optionally on an object or its picked faces'), so an agent can distinguish it from set_object or set_vertex_color. It stops short of naming any sibling or stating what it does not do, but the core operation is unambiguous.

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 only when-to-use guidance is the terse 'WHEN TO CALL: after shaping', which gives a workflow placement cue but no alternatives, prerequisites, or exclusions. An agent must infer that list_materials is for reading and that set_vertex_color exists for the narrower color-only case. Implied usage rather than explicit guidance.

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