Skip to main content
Glama
vino3dx
by vino3dx

mat_set_diffuse

Destructive

Set the diffuse or base color on 3ds Max materials, automatically adapting to Standard or Physical material. Accepts RGB values or hex strings.

Instructions

设置材质的漫反射/基础色。对 StandardMaterial 写入 diffuse,对 PhysicalMaterial 写入 base_color,自动适配。颜色接受 [r,g,b](0-255)或 "#RRGGBB"。 [English] Set the diffuse/base colour. Writes diffuse for a StandardMaterial and base_color for a PhysicalMaterial, auto-adapting. Accepts [r,g,b] (0-255) or a "#RRGGBB" string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorYes漫反射颜色 [0-255],也可传 "#RRGGBB"。 | Diffuse colour [0-255], or a "#RRGGBB" string.
materialYes材质名称。 | Material name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare the tool as destructive and not read-only, so the description doesn't need to restate that. It adds useful context by disclosing which internal property is written for each material type and the accepted color formats, but it does not address error behavior, unsupported material types, or whether the material must already exist.

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?

The description is brief and front-loaded with the primary action, followed by the adaptive behavior and color format. The bilingual repetition doubles content but is acceptable for localization; overall it is compact and well-structured with no filler.

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 simple two-parameter setter with full schema coverage and annotations, the description covers the core behavior well. It is slightly incomplete in not explicitly limiting support to Standard/Physical materials or describing error handling, but these are minor omissions for this tool.

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 baseline is 3. The description repeats the color format information already present in the schema ('[r,g,b] (0-255) or #RRGGBB') and adds nothing additional about the material parameter, providing no extra semantic value beyond the schema.

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 states a specific action ('Set the diffuse/base colour'), identifies the resource (material), and explains the adaptive behavior for StandardMaterial vs PhysicalMaterial. This clearly distinguishes it from sibling tools like mat_set_specular or mat_set_property by pinpointing the exact property being set.

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?

Usage is implied through the clear purpose and the note about auto-adapting to Standard/Physical materials, but the description does not explicitly name alternatives or state when not to use this tool. It leaves the agent to infer that other mat_* tools are for different properties, offering no explicit when/when-not guidance.

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