Skip to main content
Glama
Meshy MCP Server

Meshy MCP Server

Official
by meshy-dev

Relief — Photo to Bas-Relief Model

meshy_relief

Converts a photo into a bas-relief 3D model and a 16-bit grayscale depth map for 3D printing, laser engraving, CNC carving, and plaques.

Instructions

Turn one photo (file_path or image_url) into a bas-relief 3D model and a 16-bit grayscale depth map, for 3D printing, laser engraving, CNC carving and plaques. Cost: 20 credits, depth map only included; needs a paid plan. Confirm the use and options first.

  • variant: "low" (default) shallow, for laser engraving, CNC and thin plaques; "high" deeper, for 3D-printed pieces

  • should_generate_model false: the depth map only (a height map for laser / CNC software), no model

  • target_formats: only these are made (default glb + stl). STL (mm, Z up) and 3MF keep the real size. Files are large: at mesh_resolution 1024 a GLB is ~40–50 MB and an STL ~80–105 MB; ~150 / ~300 MB at 2048, more with a bend

  • color_mapping true: GLB, OBJ, FBX and USDZ carry the photo's color; STL and 3MF stay white Photo: JPG, PNG or WebP, at most 20 MB, at least 32×32 px, longer side at most ~16× the shorter.

Wait with meshy_get_task_status (task_type "relief"), then meshy_download_model, which also saves the depth map. A relief task cannot be the input of other tools (remesh, convert, resize, auto split...), so set its formats and size here.

Example (3D print): { file_path: "/path/to/photo.jpg", variant: "high", size_mm: 120, target_formats: ["stl"] }

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

Input Schema

NameRequiredDescriptionDefault
size_mmNoLength of the photo's longer side on the model, flat, in mm: 20–250 (default 60).
variantNo'low' (default): shallow carving for laser engraving, CNC and thin plaques. 'high': deeper carving for 3D-printed pieces.
bend_axisNoWith a bend: 'xz' curls the left and right edges (default), 'yz' the top and bottom.
bend_modeNo'off' (default, flat), 'convex' (the front bulges out) or 'concave' (the front curves in).
file_pathNoAbsolute path to a local .jpg/.jpeg/.png/.webp; the server encodes it.
image_urlNoPublic URL or data URI of the photo. For local files use file_path.
bend_angleNoWith a bend: the arc in degrees, 0–360 (default 60; below 1 stays flat).
remove_baseNoCut away the background and build no base plate (default false).
carving_modeNo'emboss' (default): the nearer parts stand out. 'engrave': they are cut in.
color_mappingNoColor the model with the photo (default false, same cost): GLB, OBJ, FBX and USDZ carry color; STL and 3MF stay white.
target_formatsNoFormats to generate; only these are returned (default glb and stl). STL and 3MF keep the real size.
mesh_resolutionNoMesh points along the longer side, 512–2048 (default 1024). Higher keeps finer detail in much larger files.
response_formatNomarkdown (default) or jsonmarkdown
carving_depth_mmNoCarving depth in mm, 0–60 (default 3 for low, 6 for high).
base_thickness_mmNoBase plate thickness in mm, 0.1–10 (default 1). With remove_base true, omit it or send 0.
removal_thresholdNoWith remove_base: the depth (0.01–1, default 0.01) below which the background is cut away. A high value can leave an empty model, still charged.
should_generate_modelNofalse: the depth map only, with no model or preview (same cost). Default true.

Output Schema

NameRequiredDescriptionDefault
statusYes
messageYes
task_idYes
estimated_timeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.13

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint false, destructiveHint false, openWorldHint true), the description discloses cost (20 credits), a paid-plan prerequisite, expected output file sizes at each mesh_resolution, and the structural constraint that this task type is a terminal branch that cannot feed other tools. It also flags an instruction to confirm before spending credits, which is exactly the risk context an agent needs for a non-idempotent, credit-consuming call.

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?

Well front-loaded: purpose, cost, and the confirm-first caution come before the option bullets, and the workflow plus example close it out. Some bullets duplicate the schema's own descriptions (variant, color_mapping), which is minor redundancy for a 17-parameter tool but not wasted space.

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 17-parameter, credit-costing generation tool, it covers the full lifecycle: input photo constraints (format, 20 MB, 32×32 px, aspect ratio), option trade-offs, downstream status-check and download sequence, and the irreversibility constraint. An output schema exists, so the description is not obliged to explain return values.

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 already 100%, so the baseline is 3; the description earns above that by adding meaning the schema lacks — concrete file-size consequences per mesh_resolution (~40–50 MB GLB / ~80–105 MB STL at 1024, ~150/~300 MB at 2048), the color-support matrix per format, and an end-to-end example call. It does restate variant and color_mapping near-verbatim, keeping it from a 5.

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 opening sentence states a specific verb and resource ('Turn one photo ... into a bas-relief 3D model and a 16-bit grayscale depth map') plus the use cases that select it (3D printing, laser engraving, CNC, plaques). That is clearly distinguishable from meshy_image_to_3d, which produces a full 3D model rather than a relief.

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 names the follow-up siblings explicitly ('Wait with meshy_get_task_status (task_type "relief"), then meshy_download_model'), gives an exclusion ('A relief task cannot be the input of other tools (remesh, convert, resize, auto split...)'), and tells the agent to set formats/size here instead. It also routes between options: 'low' for laser/CNC/thin plaques, 'high' for 3D prints, and should_generate_model false for depth-map-only work.

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