Skip to main content
Glama
MaterialCraft MCP Server

MaterialCraft MCP Server

by jhonsu01

Create a PBR material

create_material

Build a PBR material from a photo or plain values, generating base colour, normal, roughness, metallic, height and ambient occlusion maps plus a portable package and 3D render.

Instructions

Make a PBR material with MaterialCraft (a Substance Designer-class node-based material designer): from a photo or texture (image_path: colour from the picture, height from its brightness, a normal map from the height, roughness and ambient occlusion from its tones) or from plain values (colour, roughness, metallic). Saves the texture maps (base colour, normal, roughness, metallic, height, ambient occlusion), a portable .mcmat for TextureCraft and the .mcraft / .sbs package, and returns a 3D render.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoMaterial (graph) and file name.material
sizeNoGraph size in pixels (a power of two).
colorNoBase colour "#rrggbb" (without image_path).#808080
sceneNo3D preview object.material_ball
formatsNo
previewNo
map_sizeNoPixels of the larger side (a power of two; default: the graph size).
metallicNo
bit_depthNo
overwriteNoReplace existing outputs.
roughnessNo0 = mirror-smooth, 1 = matte (with image_path: the average).
image_pathNoAbsolute photo or texture to build the material from (png, jpg, tga, tif, webp, exr...).
map_formatNopng
output_dirNoAbsolute output folder (default: next to the input; required for new files).
output_pathNoAbsolute output file for the first format (its extension must match).
invert_heightNoWith image_path: dark parts are high (bricks between light mortar).
height_strengthNoWith image_path: depth of the normal map from the picture.
roughness_rangeNoWith image_path: how much the roughness varies with the tones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, and the description meaningfully complements them by enumerating exactly what gets written: the six texture maps, a portable .mcmat, the .mcraft/.sbs package, plus a returned 3D render. It also surfaces the overwrite flag's role ('Replace existing outputs'), which matters for a non-idempotent file-producing tool. It stops short of saying what happens when outputs already exist and overwrite is false, which is the main remaining behavioral gap.

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?

It is a single dense sentence that front-loads the action and then the two input modes before the outputs, so the critical information arrives first. The nested parentheses get heavy but every clause carries content. Slight readability cost from packing the whole workflow into one sentence instead of two or three short ones.

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 an 18-parameter, zero-required, file-producing tool with no output schema, the description does the important work: it explains both input modes, the generated maps and packages, and states that a 3D render is returned. What it lacks is what the returned render object looks like and the failure mode when overwriting is disabled. Given the complexity, this is close to complete but not exhaustive.

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 72%, so many parameters are already documented, but the description adds real derivation semantics the schema cannot convey: with image_path, colour comes from the picture, height from brightness, normal from height, roughness and AO from tones, and roughness becomes the average. This explains the interaction between image_path, invert_height, height_strength and roughness_range. Several parameters (scene, map_size, bit_depth, preview, map_format, output_path) are left entirely 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?

States a specific verb and resource ('Make a PBR material with MaterialCraft') and immediately clarifies the tool's domain by describing MaterialCraft as a Substance Designer-class node-based designer. It spells out the two construction modes and the artifacts produced, so an agent can tell what it does without opening the schema. It does not, however, differentiate itself from siblings like cook_material or render_material, which overlap in the material workflow.

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 gives useful mode selection guidance at the parameter level ('from a photo or texture (image_path ...) or from plain values (colour, roughness, metallic)' and 'with image_path: the average'), which tells an agent which branch to take. But it never states when to prefer this tool over cook_material, render_material or export_material, nor any prerequisites or exclusions. Usage is implied rather than explicit.

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