Skip to main content
Glama

image_to_relief

Converts images into 3D relief models by generating watertight meshes from luminance or neural depth, then exports STL, GLB, 3MF, OBJ, PNG, or EXR for printing and design.

Instructions

LOCAL 0-CREDIT 3D Relief generator (replaces paid API image_to_relief). Supports depth_mode='luminance' (crisp for logos/coins) AND depth_mode='neural' (local Depth Anything V2 ONNX AI depth estimation for photos/portraits!). Builds a 100% watertight solid relief mesh and exports stl/glb/3mf/obj/png/exr.

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": {
      "image": "<image>"
    },
    "name": "image_to_relief"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNo
nameNo
rmbgNo
imageYesLocal image path (png/jpg/webp).
formatNo
invertNo
width_mmNo
sculpmodeNoemboss
depth_modeNoluminance
resolutionNo
shape_baseNorect
clear_sceneNo
export_pathNo
bg_toleranceNo
smooth_radiusNo
height_relief_mmNo
thickness_base_mmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses local processing, watertight output, export formats, and the neural AI mode, but omits important side effects such as clear_scene defaulting to true, which can wipe an existing scene, and rmbg background removal behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the description is a dense run-on sentence with marketing-style capitalization and an exclamation point. The information is useful but could be structured more cleanly for scanning.

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

Completeness2/5

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

For a 17-parameter tool with no annotations and no output schema, the description is insufficient. It explains what the tool produces and one key mode, but leaves most parameters and critical scene-clearing behavior undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 6%, so the description must compensate for 16 undocumented parameters. It adds real meaning only for depth_mode and partially for export formats; key parameters like clear_scene, rmbg, bg_tolerance, sculpmode, and shape_base remain unexplained.

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 states a specific verb and resource: it generates a 3D relief mesh from an image, with local zero-credit processing and multi-format export. It does not explicitly distinguish itself from the sibling image_to_3d tool, preventing 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?

It gives useful parameter-level guidance by explaining that depth_mode='luminance' suits logos/coins while 'neural' suits photos/portraits. However, it does not say when to use this tool instead of image_to_3d or other 3D siblings, nor does it state exclusions.

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