Skip to main content
Glama
MaterialCraft MCP Server

MaterialCraft MCP Server

by jhonsu01

Render a material

render_material
Read-onlyIdempotent

Render material previews on 3D objects or 2D nodes and optionally save them as PNG for visual validation.

Instructions

Pictures of a material package: on 3D objects (ball, rounded cube, sphere, plane, torus...) and / or a node in 2D, optionally saved as PNG.

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": "render_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNo
sizeNo
graphNo
scenesNo
tilingNoUV repeats on the object.
overwriteNoReplace existing outputs.
input_pathYes
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

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is largely covered. The description adds useful behavior beyond that by disclosing that output is optional PNG files, which hints at file creation and (per the overwrite param) replacement of existing outputs — a mild tension with readOnlyHint worth noting. It does not say where files land, what happens when save is false, or how expensive a multi-scene render is.

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?

A single front-loaded sentence with no wasted wording; the parenthetical scene list is efficient. The elliptical style ('and / or', trailing '...') is slightly informal but not ambiguous.

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?

For a 9-parameter rendering tool with no output schema, the description covers the core concept but omits output destination behavior (default vs output_dir vs output_path), interaction between scenes and graph, and any notion of cost or batching limits. Annotations carry the safety story, so the remaining gaps are notable but not fatal.

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?

With only 44% schema coverage across 9 parameters, the description must compensate, and it does partially: it explains that 'scenes' covers 3D objects (listing ball, rounded cube, sphere, plane, torus), that 'graph' selects a 2D node view, and that 'save' produces PNG. It leaves size, tiling, output_dir, output_path, and overwrite 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?

The description names the resource (a material package) and the concrete output (preview pictures on 3D objects and/or a 2D node graph, optionally as PNG), which is enough to distinguish it from siblings like cook_material or export_material. It is phrased as a noun fragment ('Pictures of...') rather than a verb+resource, but the intent is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to call this versus cook_material, export_material, or get_material_info, and no prerequisites or exclusions. The agent must infer that this is a preview/visualization step, presumably after creation or cooking.

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