Skip to main content
Glama
vino3dx
by vino3dx

mat_set_property

Destructive

Set any named material property, auto-converting values to the target type (color, number, boolean, or string). Use for parameters without dedicated tools, checking the exact property name with get_class_properties first.

Instructions

设置材质的任意命名属性,值会按目标属性的类型自动转换(颜色/数字/布尔/字符串)。当你要改的属性没有专用工具时用它。先用 get_class_properties 查准属性名。 [English] Set any named property of a material; the value is coerced to the target property's type (color/number/boolean/string). Use it for parameters without a dedicated tool. Check the exact property name with get_class_properties first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes新值:颜色用 [r,g,b],数字直接给,布尔给 true/false。 | New value: colour as [r,g,b], numbers directly, booleans true/false.
materialYes材质名称。 | Material name.
propertyYes属性名,例如 metallic、roughness、opacity。 | Property name, e.g. metallic, roughness, opacity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds useful behavioral context: values are coerced to the target property's type, and the tool sets arbitrary named properties. It does not expand on side effects, but the annotations cover the destructive nature.

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 compact and front-loaded with the core purpose. The main cost is exact bilingual repetition, which doubles length without adding new information for an agent, but it remains appropriately sized overall.

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 generic setter with 3 parameters and no output schema, the description is complete: it explains what it does, when to use it, that values are converted, and how to avoid invalid property names. Nothing essential 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 coverage is 100%, so the schema already documents material, property, and value formats. The description adds meaning beyond the schema by explaining automatic type coercion and emphasizing the need for exact property names, which is important for correct parameter usage.

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 any named property of a material'), the resource (material), and the type-coercion behavior. It also explicitly frames itself as the fallback for properties without a dedicated tool, distinguishing it from sibling mat_set_* tools.

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 clearly says to use this tool when the property has no dedicated tool, and instructs the agent to check the exact property name with get_class_properties first. This gives direct decision-making guidance relative to alternatives.

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