Skip to main content
Glama

import_external_mesh

Import external mesh files (STL, OBJ, PLY, GLB, glTF, 3MF, STEP) into Kiln as versioned designs, then open an interactive 3D stage to preview and inspect the geometry.

Instructions

Import external geometry (STL / OBJ / PLY / GLB / glTF / 3MF / STEP) as a first-class design version. 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": {
      "design_id": "<design_id>",
      "mesh_path": "<mesh_path>"
    },
    "name": "import_external_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoFree-form notes attached to the version. Default: "".
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: "".
design_idYesTarget design (created implicitly).
mesh_pathYesPath to the file to import: STL / OBJ / PLY / GLB / glTF / 3MF, or STEP / STP (converted on the way in; ``NO_BACKEND`` with a ``remedy`` when no converter is installed).
branch_nameNoBranch to attach the import to (default ``main``). Created on the fly if absent. Default: "main".
design_nameNoDisplay name; omitted, the ``design_id`` is used.
make_room_forNoOn a Free plan whose designs are full, the design the person chose to archive so a NEW design can be kept (archived, never deleted: unarchiving brings it back). A full plan answers ``FREE_SLOT_IN_USE`` with the designs to choose from: ask the person which one, then import again naming it here. Leave empty otherwise. Default: "".
source_attributionNoWhere the file came from (free text or a link), stored on the version for audit. A file Kiln downloaded or generated needs none: the note Kiln kept when it arrived (marketplace, designer and license, or generator and prompt) fills this in when it is left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +}
    • addedInput schema / properties / make_room_for
      Added value: +{
      +  "description": "On a Free plan whose designs are full, the design the person chose to archive so a NEW design can be kept (archived, never deleted: unarchiving brings it back).  A full plan answers ``FREE_SLOT_IN_USE`` with the designs to choose from: ask the person which one, then import again naming it here.  Leave empty otherwise. Default: \"\".",
      +  "title": "Make Room For",
      +  "type": "string"
      +}
  2. Changed7 schema fields changedv1.5.1
    • changedInput schema / properties / branch_name / description
      Previous value: -"Default: \"main\"."New value: +"Branch to attach the import to (default ``main``).  Created on the fly if absent. Default: \"main\"."
    • 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: \"\"."
    • addedInput schema / properties / design_id / description
      Added value: +"Target design (created implicitly)."
    • addedInput schema / properties / design_name / description
      Added value: +"Display name; omitted, the ``design_id`` is used."
    • addedInput schema / properties / mesh_path / description
      Added value: +"Path to the file to import: STL / OBJ / PLY / GLB / glTF / 3MF, or STEP / STP (converted on the way in; ``NO_BACKEND`` with a ``remedy`` when no converter is installed)."
    • changedInput schema / properties / notes / description
      Previous value: -"Default: \"\"."New value: +"Free-form notes attached to the version. Default: \"\"."
    • addedInput schema / properties / source_attribution / description
      Added value: +"Where the file came from (free text or a link), stored on the version for audit.  A file Kiln downloaded or generated needs none: the note Kiln kept when it arrived (marketplace, designer and license, or generator and prompt) fills this in when it is left out."
  3. Addedv1.5.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, openWorld=false; the description adds substantial non-obvious behavior: success opens an interactive 3D stage, hosted sessions attach a browser stage link, hosts without MCP Apps panels differ, and oversized meshes are decimated automatically for the stage (a lossy transform the agent should know about). The 'PNG preview is the floor, not the whole experience' line clarifies the user-visible outcome. It does not cover return values or failure handling, so not a 5.

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 definition is front-loaded with the core action, but it repeats itself: the 'opens Kiln's interactive 3D stage' claim appears in the first paragraph and is restated at length in the INLINE 3D STAGE section, and the orbit/zoom panel description is given twice. The MAKE DOORS paragraph is largely about another tool being absent, which crowds out information specific to this one.

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?

With eight parameters at full schema coverage and rich annotations, most burden is elsewhere, and the stage/decimation behavior is well covered. However, there is no output schema, so the description should say what a successful import yields (version identifier, branch, preview artifact) and it never does. The STEP-conversion failure mode is only visible in the mesh_path schema description.

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 description coverage is 100%, so all eight parameters — including the tricky make_room_for, branch_name, and source_attribution defaults — are already documented in structured data. The description adds essentially nothing beyond the schema (the format list repeats mesh_path's description, and the goal link is covered under goal_id). Baseline 3 applies.

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 sentence gives a specific verb and resource with an explicit format list: it imports external geometry (STL/OBJ/PLY/GLB/glTF/3MF/STEP) as a first-class design version. That distinguishes it as an ingestion tool rather than a mesh-editing or analysis sibling. Sibling differentiation against the near-duplicates (import_step_file, import_model_parts, merge_mesh_files) is only implicit via the STEP mention, not stated outright.

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?

Usage context is implied by the MAKE DOORS paragraph, but that paragraph is about the absence of design_session and routing the make loop to compile_scad — it does not tell the agent when to choose this tool over import_step_file, import_model_parts, or import_external_feature. The actionable conditional guidance (FREE_SLOT_IN_USE, ask the user which design to archive) lives in the schema, not the description. Adequate but leaves alternative-selection to inference.

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