Skip to main content
Glama
MaterialCraft MCP Server

MaterialCraft MCP Server

by jhonsu01

Cook a material package

cook_material

Cook .sbs or .mcraft packages into texture maps, .mcmat files, or converted packages, with optional input values and graph selection; source files remain unchanged.

Instructions

Open a Substance Designer .sbs or a MaterialCraft .mcraft package, optionally set its exposed inputs (by id) and pick a graph, then cook it into texture maps, a portable .mcmat and / or a converted package (.sbs ↔ .mcraft). Unsupported nodes are kept as placeholders and listed in warnings. The input is never changed.

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": {
      "input_path": "<input_path>"
    },
    "name": "cook_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
graphNoGraph index or name (default: the first).
sceneNo3D preview object.material_ball
suffixNo
valuesNoExposed input values by id (see get_material_info).
formatsNo
previewNo
map_sizeNoPixels of the larger side (a power of two; default: the graph size).
bit_depthNo
overwriteNoReplace existing outputs.
input_pathYes
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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare this is a non-read-only, non-idempotent, non-destructive write. The description adds meaningful behavior beyond that: unsupported nodes are preserved as placeholders and surfaced in warnings, and the input file is never modified. It does not discuss permissions or how existing outputs are treated (left to the overwrite param), so not a 5.

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 tight sentences, front-loaded with the core action followed by behavioral caveats (placeholders/warnings, input unchanged). No wasted wording, though the middle sentence packs several output concepts densely.

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 complex 13-parameter tool with no output schema, the description covers the transformation flow, the warning contract, and non-modification of the input. Return/output-file semantics remain somewhat implicit, which is the main remaining gap.

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 coverage is 54% with 13 parameters, so the description must carry weight. It explains 'values' (exposed inputs by id), 'graph' (pick a graph), and 'formats' (maps/.mcmat/package) but leaves suffix, scene, preview, map_size, bit_depth, overwrite, and output paths to the schema, so compensation is partial.

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 uses specific verbs ('Open', 'cook') on a specific resource (Substance Designer .sbs / MaterialCraft .mcraft packages) and enumerates the outputs (texture maps, .mcmat, converted package), so the agent knows exactly what the tool produces. It does not explicitly contrast itself with siblings like export_material or render_material, which keeps it from a 5.

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 the usage flow (open a package, optionally set exposed inputs and pick a graph, then cook) but never states when to choose this over alternatives such as render_material or export_material, nor any prerequisites. Usage is inferable but not explicitly stated.

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