Skip to main content
Glama
vino3dx
by vino3dx

mat_set_map_slot

Destructive

Attach a map to a named material slot (like diffuseMap or bumpMap) by creating a map and assigning a bitmap file path.

Instructions

把一个贴图挂到材质的命名槽位(例如 "diffuseMap" / "base_color_map" / "bumpMap")。可指定 mapClass(默认 Bitmaptexture)新建贴图,并用 path 指向位图文件。 [English] Attach a map to a named slot of a material (e.g. "diffuseMap", "base_color_map", "bumpMap"). Creates a map of mapClass (default Bitmaptexture) and points it at path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo位图文件路径(仅 Bitmaptexture 生效)。 | Bitmap file path (for Bitmaptexture).
slotYes槽位名(材质属性名)。 | Slot name (material property name).
mapClassNo贴图类名,默认 Bitmaptexture。 | Map class, default Bitmaptexture.
materialYes材质名称。 | Material name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already flag the tool as non-read-only and destructive. The description adds that it creates a new map and points it at a path, which clarifies the mechanism, but it does not disclose whether an existing map on the slot is overwritten or what happens if the bitmap path is invalid.

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-loads the primary action with concrete examples. The bilingual Chinese/English duplication is mildly redundant but intentional and does not add significant bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description plus schema covers purpose, examples, and parameter meanings, which is sufficient for typical calls. However, as a destructive mutation with no output schema, it misses important context such as replacement of an existing slot map and whether path is mandatory for Bitmaptexture. This leaves minor but real gaps for an agent to navigate.

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?

The input schema covers all four parameters with descriptions, so the baseline is 3. The description adds concrete slot-name examples (diffuseMap, base_color_map, bumpMap) that go beyond the schema's generic 'slot name' definition, helping an agent choose valid values. Other parameter details, such as mapClass default and path applicability, are mostly restated from 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 clearly states the specific action: attach a map to a named slot of a material, with concrete examples like "diffuseMap" and "bumpMap". It also explains that it creates a map of the specified mapClass and points it at a path, making the tool's function unambiguous and distinguishable from generic property setters like mat_set_property.

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 description implies when to use the tool by defining its purpose and slot examples, but it does not explicitly contrast it with sibling tools such as mat_set_slot, mat_set_property, or map_create_bitmap. It also omits prerequisites like the material needing to exist or whether path is required for Bitmaptexture.

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