Skip to main content
Glama

generate_and_print

Destructive

Generate a 3D model from a prompt, validate and slice it, then upload a sliced print preview to a 3D printer without starting the print. Review the preview before calling start_print.

Instructions

Full pipeline: generate a model, validate, slice, and upload (preview).

        **EXPERIMENTAL:** This generates a 3D model, validates it, slices it,
        and uploads it to the printer — but does NOT start printing.  3D
        printers are delicate hardware and AI-generated models are not
        guaranteed to be safe or printable.  You MUST call ``start_print``
        separately after reviewing the preview results.

        When possible, prefer downloading proven models from marketplaces
        (Thingiverse, MyMiniFactory) instead of generating new ones.

        Args:
            keep_record: ``False`` only when the person asks for this print not to
                be kept ("print this privately", "don't keep a record of this");
                never suggest it.  Kiln then keeps nothing of the print once it
                ends, and the answer carries one line saying so.  ``True`` keeps it,
                for a start a team's rule held (``TEAM_KEEPS_PRINTS``) after the
                person agreed.  Omit otherwise: the print is kept the way the
                account says.
            mixed_nozzle_experiment: The person has said yes, for this print, to a slice refused
                with ``MULTI_NOZZLE_MIXED_SIZES`` (nozzles of different sizes at once, an
                experiment). Only on their yes, each time; ``slice_model`` says what follows.
            soft_nozzle_confirmed: The owner has said to print anyway a
                slice refused with ``ABRASIVE_ON_SOFT_NOZZLE`` (an
                abrasive filament through a nozzle on record that is not
                wear-resistant).  Only on their word, never on your own
                judgement.
            filament_map: Only for a printer with more than one nozzle:
                the nozzle (1 for the first) each filament prints from,
                one number per filament in filament order.  Leave unset
                to let the slicer choose; a map that does not fit is
                refused before slicing, as ``slice_model`` refuses it.
            goal_id: 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.
            prompt: Text description of the 3D model to generate.
            provider: Generation provider: ``"meshy"``, ``"gemini"``,
                ``"tripo3d"``, ``"stability"`` (cloud, each needs its own
                key) or ``"openscad"`` (local, keyless).  Default
                ``"meshy"``.
            style: Optional style hint for cloud providers.
            printer_name: Target printer.  Omit for the default printer.
            profile: Slicer profile path.
            printer_id: Optional printer model ID for bundled profile
                auto-selection (e.g. ``"prusa_mini"``).
            timeout: Max seconds to wait for generation (default 600).
            material: Filament material for the slice (``"PLA"``,
                ``"PETG"``, …).  It sets the temperatures, melt rate and
                cooling, and its density weighs the print.  Omitted, the
                spool the printer reports loaded answers, then PLA —
                ``slice.filament`` says which.
            placement: Where the part goes when the plate still holds
                the last print: ``[x, y]`` in mm, a named region
                (``"front-left"``, ``"centre"``, …), or ``"keep"``.
                Omitted, an occupied plate refuses before slicing and
                lists the spots that would work.  The clearance verdict
                is free; placing and starting a second print on an
                occupied plate is part of Kiln Pro.

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.

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.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_and_print"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNoOptional style hint for cloud providers.
promptYesText description of the 3D model to generate.
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: "".
profileNoSlicer profile path.
timeoutNoMax seconds to wait for generation (default 600). Default: 600.
materialNoFilament material for the slice (``"PLA"``, ``"PETG"``, …). It sets the temperatures, melt rate and cooling, and its density weighs the print. Omitted, the spool the printer reports loaded answers, then PLA — ``slice.filament`` says which.
providerNoGeneration provider: ``"meshy"``, ``"gemini"``, ``"tripo3d"``, ``"stability"`` (cloud, each needs its own key) or ``"openscad"`` (local, keyless). Default ``"meshy"``. Default: "meshy".
placementNoWhere the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``"front-left"``, ``"centre"``, …), or ``"keep"``. Omitted, an occupied plate refuses before slicing and lists the spots that would work. The clearance verdict is free; placing and starting a second print on an occupied plate is part of Kiln Pro.
printer_idNoOptional printer model ID for bundled profile auto-selection (e.g. ``"prusa_mini"``).
keep_recordNo``False`` only when the person asks for this print not to be kept ("print this privately", "don't keep a record of this"); never suggest it. Kiln then keeps nothing of the print once it ends, and the answer carries one line saying so. ``True`` keeps it, for a start a team's rule held (``TEAM_KEEPS_PRINTS``) after the person agreed. Omit otherwise: the print is kept the way the account says.
filament_mapNoOnly for a printer with more than one nozzle: the nozzle (1 for the first) each filament prints from, one number per filament in filament order. Leave unset to let the slicer choose; a map that does not fit is refused before slicing, as ``slice_model`` refuses it.
printer_nameNoTarget printer. Omit for the default printer.
soft_nozzle_confirmedNoThe owner has said to print anyway a slice refused with ``ABRASIVE_ON_SOFT_NOZZLE`` (an abrasive filament through a nozzle on record that is not wear-resistant). Only on their word, never on your own judgement. Default: false.
mixed_nozzle_experimentNoThe person has said yes, for this print, to a slice refused with ``MULTI_NOZZLE_MIXED_SIZES`` (nozzles of different sizes at once, an experiment). Only on their yes, each time; ``slice_model`` says what follows. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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 / filament_map
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Only for a printer with more than one nozzle: the nozzle (1 for the first) each filament prints from, one number per filament in filament order.  Leave unset to let the slicer choose; a map that does not fit is refused before slicing, as ``slice_model`` refuses it.",
      +  "title": "Filament Map"
      +}
    • 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 / keep_record
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "``False`` only when the person asks for this print not to be kept (\"print this privately\", \"don't keep a record of this\"); never suggest it.  Kiln then keeps nothing of the print once it ends, and the answer carries one line saying so.  ``True`` keeps it, for a start a team's rule held (``TEAM_KEEPS_PRINTS``) after the person agreed.  Omit otherwise: the print is kept the way the account says.",
      +  "title": "Keep Record"
      +}
    • addedInput schema / properties / mixed_nozzle_experiment
      Added value: +{
      +  "description": "The person has said yes, for this print, to a slice refused with ``MULTI_NOZZLE_MIXED_SIZES`` (nozzles of different sizes at once, an experiment). Only on their yes, each time; ``slice_model`` says what follows. Default: false.",
      +  "title": "Mixed Nozzle Experiment",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / placement / description
      Previous value: -"Where the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``\"front-left\"``, ``\"centre\"``, …), or ``\"keep\"``. Omitted, an occupied plate refuses before slicing and lists the spots that would work.  The clearance verdict is free; placing and starting a second print on an occupied plate is a kiln-pro feature."New value: +"Where the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``\"front-left\"``, ``\"centre\"``, …), or ``\"keep\"``. Omitted, an occupied plate refuses before slicing and lists the spots that would work.  The clearance verdict is free; placing and starting a second print on an occupied plate is part of Kiln Pro."
    • addedInput schema / properties / soft_nozzle_confirmed
      Added value: +{
      +  "description": "The owner has said to print anyway a slice refused with ``ABRASIVE_ON_SOFT_NOZZLE`` (an abrasive filament through a nozzle on record that is not wear-resistant).  Only on their word, never on your own judgement. Default: false.",
      +  "title": "Soft Nozzle Confirmed",
      +  "type": "boolean"
      +}
  2. Changed10 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: \"\"."
    • addedInput schema / properties / material / description
      Added value: +"Filament material for the slice (``\"PLA\"``, ``\"PETG\"``, …).  It sets the temperatures, melt rate and cooling, and its density weighs the print.  Omitted, the spool the printer reports loaded answers, then PLA — ``slice.filament`` says which."
    • addedInput schema / properties / placement / description
      Added value: +"Where the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``\"front-left\"``, ``\"centre\"``, …), or ``\"keep\"``. Omitted, an occupied plate refuses before slicing and lists the spots that would work.  The clearance verdict is free; placing and starting a second print on an occupied plate is a kiln-pro feature."
    • addedInput schema / properties / printer_id / description
      Added value: +"Optional printer model ID for bundled profile auto-selection (e.g. ``\"prusa_mini\"``)."
    • addedInput schema / properties / printer_name / description
      Added value: +"Target printer.  Omit for the default printer."
    • addedInput schema / properties / profile / description
      Added value: +"Slicer profile path."
    • addedInput schema / properties / prompt / description
      Added value: +"Text description of the 3D model to generate."
    • changedInput schema / properties / provider / description
      Previous value: -"Default: \"meshy\"."New value: +"Generation provider: ``\"meshy\"``, ``\"gemini\"``, ``\"tripo3d\"``, ``\"stability\"`` (cloud, each needs its own key) or ``\"openscad\"`` (local, keyless).  Default ``\"meshy\"``. Default: \"meshy\"."
    • addedInput schema / properties / style / description
      Added value: +"Optional style hint for cloud providers."
    • changedInput schema / properties / timeout / description
      Previous value: -"Default: 600."New value: +"Max seconds to wait for generation (default 600). Default: 600."
  3. Changed11 schema fields changedv1.5.0
    • addedInput schema / properties / brief_id
      Added value: +{
      +  "description": "Default: \"\".",
      +  "title": "Brief Id",
      +  "type": "string"
      +}
    • addedInput schema / properties / material
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Material"
      +}
    • addedInput schema / properties / placement
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Placement"
      +}
    • removedInput schema / properties / printer_id / default
      Removed value: -null
    • removedInput schema / properties / printer_name / default
      Removed value: -null
    • removedInput schema / properties / profile / default
      Removed value: -null
    • removedInput schema / properties / provider / default
      Removed value: -"meshy"
    • addedInput schema / properties / provider / description
      Added value: +"Default: \"meshy\"."
    • removedInput schema / properties / style / default
      Removed value: -null
    • removedInput schema / properties / timeout / default
      Removed value: -600
    • addedInput schema / properties / timeout / description
      Added value: +"Default: 600."
  4. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, but the description adds substantial context beyond them: it flags EXPERIMENTAL status, that the run is preview-only and uploads without printing, the hardware-safety rationale, what keep_record=True/False actually retains or discards, and that printing a second print on an occupied plate requires Kiln Pro.

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?

The scoping constraint and the start_print requirement are front-loaded in the first three sentences before any parameter text. However, the Args block restates all 14 schema descriptions verbatim, which is pure duplication given 100% coverage, and the trailing INLINE 3D STAGE / MAKE DOORS sections sit outside the core definition.

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 14-parameter mutation tool with no output schema, the description covers the safety gate, the mandatory follow-up call, the privacy semantics of record retention, the paywall boundary for plate placement, and what the success surface looks like (3D stage, PNG preview floor). Nothing needed to invoke it correctly is missing.

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% and the Args section in the description is essentially verbatim identical to the per-parameter schema descriptions (keep_record, material, placement, filament_map all repeat word for word). It therefore adds no meaning beyond structured fields, which lands at the baseline of 3.

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 precise verb chain and resource: "Full pipeline: generate a model, validate, slice, and upload (preview)." The parenthetical and the following paragraph immediately disambiguate it from siblings like slice_and_print and start_print by stating it does NOT start printing.

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?

Gives explicit when-to-use guidance ("prefer downloading proven models from marketplaces ... instead of generating new ones"), an explicit required follow-up ("You MUST call start_print separately"), and names the alternative make loop available on this install (compile_scad). Exclusions and prerequisites are all present.

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