Skip to main content
Glama

generate_3d

Convert a subject photo into a textured 3D mesh (GLB) by providing an image path. Returns a GLB file ready for Blender, three.js, or Quick Look.

Instructions

Generate a textured 3D mesh (GLB) from a subject image on the remote server.

The image should be a clean cutout of the subject with real alpha transparency (an opaque photo also works — the server composites it on white). Returns a GLB file path you can open in Blender / three.js / Quick Look.

Args: image_path: Absolute or ~-relative path to a local PNG/JPEG of the subject. model: 3D mesh model id. Defaults to MLX_SERVE_MESH_MODEL. steps: Shape sampling steps (default 30). octree_resolution: Mesh grid resolution in [64, 512] (default 256). guidance_scale: Shape guidance in [0, 20] (default 5). texture: Request the texture-paint stage for a textured GLB. Requires the paint weights to be installed server-side, else a named error. texture_steps: Texture painting steps in [1, 100] when texture=true. seed: Optional seed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
modelNo
stepsNo
textureNo
image_pathYes
texture_stepsNo
guidance_scaleNo
octree_resolutionNo
Behavior4/5

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

It discloses server-side execution, the image-compositing behavior, and returns a GLB file path openable in Blender/three.js/Quick Look. With no annotations, this carries the safety/behavior burden reasonably, though it leaves slight ambiguity about whether the default output is textured or untextured given the optional texture flag.

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

Conciseness5/5

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

Every sentence adds information: the first line is a crisp summary, then image requirements, return format, and a compact parameter list. It is long only because it carries type/range/default detail that no other structured field provides.

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?

With no output schema or annotations, the description is thorough enough to call correctly: input path syntax, defaults, ranges, prerequisite for texture, and output file type are all covered. No critical call-time detail is missing.

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

Parameters5/5

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

Schema description coverage is 0%, but the Args block documents all eight parameters with types, defaults, ranges, or conditions (e.g. octree_resolution [64,512] default 256; texture_steps [1,100] when texture=true). This fully compensates for the bare input schema.

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?

Opens with a specific verb+resource: 'Generate a textured 3D mesh (GLB) from a subject image on the remote server.' This clearly separates it from sibling tools like text_to_speech, generate_music, generate_video, and generate_image.

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

Usage Guidelines4/5

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

The description gives concrete input prerequisites (clean cutout with alpha, opaque photos composited on white) and a hard condition for texture mode (paint weights must be installed, otherwise a named error). It does not explicitly name alternative tools or state when-not-to-use, but the 3D mesh target makes the decision context clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Congenital/mlx-serve-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server