Skip to main content
Glama

build_organic_mesh

Creates a freeform/organic mesh from a smooth-blended primitive recipe, then opens an interactive 3D preview to orbit and zoom.

Instructions

Build a freeform/organic mesh from a smooth-blended primitive recipe. Opens Kiln's interactive inline 3D stage on the result (orbit/zoom panel in MCP Apps hosts; hosted sessions add a browser stage link). MAKE DOORS: design_session, Kiln's front door for making an object, is not installed here (signed in to Kiln it runs on Kiln's servers). On this install compile_scad IS the make → preview → iterate loop: make it, show the preview, iterate.

INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.

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": {
      "recipe": "<recipe>"
    },
    "name": "build_organic_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsNoWhen True, emit one solid per primitive ``"group"`` + run the fit check + return an assembled preview. Default: false.
recipeYesThe recipe as a JSON object: ``name``, optional ``smooth_mm`` / ``mirror`` / ``shell_mm`` / ``floor_z`` / ``resolution``, and ``primitives``, a list of ``{"type": ..., ...}`` entries (sphere, ellipsoid, rounded_box, capsule, tapered_capsule, cylinder, tube, lathe, torus, arc, ring_stack) with the per-type fields and per-primitive options the tool description lays out.
goal_idNoThe saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: "".
output_dirNoOptional directory for the per-part STLs when ``parts=True``. Omitted, the set lands in ``<system temp>/kiln_organic/<recipe name>/``. Either way the directory holds one ``<group>.stl`` per part plus ``_assembled.stl``, the assembled preview. Default: "".
output_pathNoOptional STL output path for the single-mesh mode. Omitted, the mesh lands at ``<system temp>/kiln_organic/<recipe name>.stl`` (an anonymous temp file when the recipe names nothing usable); the same name overwrites, which is what iterating on one subject should do. Default: "".
reference_imagesNoPath (or list of paths) to the image(s) the user is asking you to reproduce. Pass on every iteration, not just the first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.6.0
    • removedInput schema / properties / brief_id
      Removed value: -{
      -  "description": "The saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: \"\".",
      -  "title": "Brief Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / goal_id
      Added value: +{
      +  "description": "The saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: \"\".",
      +  "title": "Goal Id",
      +  "type": "string"
      +}
    • changedInput schema / properties / output_dir / description
      Previous value: -"Optional directory for the per-part STLs when ``parts=True``.  Omitted, the set lands in ``<system temp>/kiln_organic/<recipe name>/`` — for the same reason ``output_path`` has a guessable default: a part set is the slowest build here and the likeliest to outrun the call.  Either way the directory holds one ``<group>.stl`` per part plus ``_assembled.stl``, the assembled preview, which is kept beside its own parts rather than orphaned in a temp file. Default: \"\"."New value: +"Optional directory for the per-part STLs when ``parts=True``.  Omitted, the set lands in ``<system temp>/kiln_organic/<recipe name>/``.  Either way the directory holds one ``<group>.stl`` per part plus ``_assembled.stl``, the assembled preview. Default: \"\"."
    • changedInput schema / properties / recipe / description
      Previous value: -"The recipe as a JSON object: ``name``, ``resolution`` (grid cells across the longest axis, 40-280), optional ``smooth_mm`` / ``mirror`` / ``shell_mm``, and ``primitives``, a list of ``{\"type\": ..., ...}`` entries (sphere, ellipsoid, capsule, tapered_capsule, torus, arc, rounded_box, ring_stack) with the per-type fields and per-primitive options the tool description lays out."New value: +"The recipe as a JSON object: ``name``, optional ``smooth_mm`` / ``mirror`` / ``shell_mm`` / ``floor_z`` / ``resolution``, and ``primitives``, a list of ``{\"type\": ..., ...}`` entries (sphere, ellipsoid, rounded_box, capsule, tapered_capsule, cylinder, tube, lathe, torus, arc, ring_stack) with the per-type fields and per-primitive options the tool description lays out."
  2. Changed6 schema fields changedv1.5.1
    • changedInput schema / properties / brief_id / description
      Previous value: -"Default: \"\"."New value: +"The saved goal's id from ``design_session``, so this make is recorded against the goal and checked against it. Empty when there is no goal. Default: \"\"."
    • changedInput schema / properties / output_dir / description
      Previous value: -"Default: \"\"."New value: +"Optional directory for the per-part STLs when ``parts=True``.  Omitted, the set lands in ``<system temp>/kiln_organic/<recipe name>/`` — for the same reason ``output_path`` has a guessable default: a part set is the slowest build here and the likeliest to outrun the call.  Either way the directory holds one ``<group>.stl`` per part plus ``_assembled.stl``, the assembled preview, which is kept beside its own parts rather than orphaned in a temp file. Default: \"\"."
    • changedInput schema / properties / output_path / description
      Previous value: -"Default: \"\"."New value: +"Optional STL output path for the single-mesh mode.  Omitted, the mesh lands at ``<system temp>/kiln_organic/<recipe name>.stl`` (an anonymous temp file when the recipe names nothing usable); the same name overwrites, which is what iterating on one subject should do. Default: \"\"."
    • changedInput schema / properties / parts / description
      Previous value: -"Default: false."New value: +"When True, emit one solid per primitive ``\"group\"`` + run the fit check + return an assembled preview. Default: false."
    • addedInput schema / properties / recipe / description
      Added value: +"The recipe as a JSON object: ``name``, ``resolution`` (grid cells across the longest axis, 40-280), optional ``smooth_mm`` / ``mirror`` / ``shell_mm``, and ``primitives``, a list of ``{\"type\": ..., ...}`` entries (sphere, ellipsoid, capsule, tapered_capsule, torus, arc, rounded_box, ring_stack) with the per-type fields and per-primitive options the tool description lays out."
    • addedInput schema / properties / reference_images / description
      Added value: +"Path (or list of paths) to the image(s) the user is asking you to reproduce.  Pass on every iteration, not just the first."
  3. Addedv1.5.0

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses concrete side effects: STL files written to a temp directory, same-name output overwriting on repeat runs, per-part STLs plus _assembled.stl when parts=True, automatic decimation of oversized meshes for the stage, and that a stage panel or browser link opens on success. These are real behavioral facts an agent needs before invoking a non-readOnly tool. It stops short of stating error/failure behavior or size limits.

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

Conciseness2/5

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

The inline 3D stage is explained twice in nearly the same words (orbit/zoom panel, hosted stage link, decimation), and the MAKE DOORS paragraph spends five sentences on install topology that mostly redirects attention to another tool. Front-loading is decent, but a large share of the text does not earn its place against the core task of building a mesh.

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?

Output locations, overwrite behavior, the parts/assembled duality, and the stage are all covered for a 6-parameter mutation tool with no output schema. What's missing is the promised recipe primitive vocabulary (sphere, ellipsoid, ... are listed by name only, with no field meanings or defaults), which is the hardest part of actually calling this tool correctly.

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 nominally 100%, so baseline is 3. The description does add value for reference_images (pass every iteration) and output_path (overwrite semantics). However, the recipe parameter's description defers to 'the per-type fields and per-primitive options the tool description lays out' — and the description never actually lays those out, leaving a dangling cross-reference for the one required, deeply nested parameter.

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 opening clause gives a specific verb and resource: build a freeform/organic mesh from a smooth-blended primitive recipe. That distinguishes the tool's output type from mesh-editing siblings. It never explicitly contrasts this tool with compile_scad or any other generator, so differentiation is implicit rather than stated.

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 'MAKE DOORS' paragraph explains install-level context (design_session unavailable) and points at compile_scad as the make/preview/iterate loop, but it never says when to choose build_organic_mesh over compile_scad — the reader has to infer that organic/primitive-blended forms are this tool's domain. Iteration guidance ('pass on every iteration, not just the first') is useful but scoped to one parameter rather than the tool's overall use.

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

Deploy Server

Other Tools