Skip to main content
Glama

multi_color_copies

Destructive

Print multiple copies of one model, each in a different AMS color by auto-detecting loaded filament slots or assigning them manually.

Instructions

Print multiple copies of the same model, each in a different AMS color.

**Only a printer Kiln drives can make this print** — today a Bambu with
an AMS.  At any other printer the copies are REFUSED before slicing
with code ``MULTI_MATERIAL_NOT_DRIVEN`` (every copy would print in one
colour; the slot map below is a Bambu instruction).  The refusal
carries what Kiln saw on the printer (``multi_material``) and the
composed plate (``multi_material_3mf``) for slicing elsewhere.

Takes a single model file and produces a multi-color print where each
copy uses a different AMS filament slot.  Perfect for "print 4 lids
in 4 different colors" workflows.

**Auto-detect mode** (default): omit *copies*, *ams_slots*, and
*colors* — the tool queries the AMS, finds all loaded trays matching
*material*, and prints one copy per loaded tray.

**Manual mode**: specify *ams_slots* (and optionally *colors*) to
choose exactly which AMS trays to use and how many copies.

Requires PrusaSlicer or OrcaSlicer installed locally.  The printer
must be idle and have an AMS with loaded filament.

The emitted 3MF (``multi_color_3mf`` in the result) also opens in
Bambu Studio, which keeps the per-copy colors but re-derives print
settings itself — the result's ``slicer_note`` explains this; relay
it to the user when handing over the file.

:param model_path: Path to the model file (STL or OBJ).
:param copies: Number of copies.  Auto-detected from AMS if omitted.
:param ams_slots: The tray each copy prints from, by the printer's own
    tray id (``unit * 4 + slot`` on a chained unit, the unit id on an
    AMS HT; ``ams_status`` lists each tray's ``tray_id``).  E.g.
    ``[0, 1, 2, 3]`` for all 4 AMS Lite trays, ``[0, 5]`` for A1 and B2.
:param colors: Hex color strings per copy.
    E.g. ``["#FF0000", "#00FF00", "#0000FF", "#FFFF00"]``.
    Auto-read from AMS if omitted.  Given without *ams_slots*, each
    copy prints from the loaded spool of its colour, and the print is
    refused when a colour is not loaded.
:param material: The material the copies print in (default ``"PLA"``).
    Auto-detect uses only loaded spools of that plastic.
:param spacing_mm: Gap between copies on the plate (default 10 mm).
    Copies are arranged side by side, centered on the plate.
:param printer_id: Printer model ID for slicer profile selection and
    plate-size lookup when arranging the copies.
:param slicer_path: Explicit path to slicer binary.
:returns: Dict with print result, object details, and AMS mapping.
:param preview_token: Token from ``issue_preview_token`` proving this
    model was shown to the person before printing.  Required beside their
    go-ahead: a print is shown to its owner before it starts.
:param 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.
:param 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.
:param 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.

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": {
      "model_path": "<model_path>"
    },
    "name": "multi_color_copies"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorsNoHex color strings per copy. E.g. ``["#FF0000", "#00FF00", "#0000FF", "#FFFF00"]``. Auto-read from AMS if omitted. Given without *ams_slots*, each copy prints from the loaded spool of its colour, and the print is refused when a colour is not loaded.
copiesNoNumber of copies. Auto-detected from AMS if omitted.
materialNoThe material the copies print in (default ``"PLA"``). Auto-detect uses only loaded spools of that plastic. Default: "PLA".
ams_slotsNoThe tray each copy prints from, by the printer's own tray id (``unit * 4 + slot`` on a chained unit, the unit id on an AMS HT; ``ams_status`` lists each tray's ``tray_id``). E.g. ``[0, 1, 2, 3]`` for all 4 AMS Lite trays, ``[0, 5]`` for A1 and B2.
model_pathYesPath to the model file (STL or OBJ).
printer_idNoPrinter model ID for slicer profile selection and plate-size lookup when arranging the copies.
spacing_mmNoGap between copies on the plate (default 10 mm). Copies are arranged side by side, centered on the plate. Default: 10.0.
slicer_pathNoExplicit path to slicer binary.
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.
preview_tokenNoToken from ``issue_preview_token`` proving this model was shown to the person before printing. Required beside their go-ahead: a print is shown to its owner before it starts.
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. Changed5 schema fields changedv1.6.0
    • changedInput schema / properties / colors / description
      Previous value: -"Hex color strings per copy for slicer preview. E.g. ``[\"#FF0000\", \"#00FF00\", \"#0000FF\", \"#FFFF00\"]``. Auto-read from AMS if omitted."New value: +"Hex color strings per copy. E.g. ``[\"#FF0000\", \"#00FF00\", \"#0000FF\", \"#FFFF00\"]``. Auto-read from AMS if omitted.  Given without *ams_slots*, each copy prints from the loaded spool of its colour, and the print is refused when a colour is not loaded."
    • 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"
      +}
    • changedInput schema / properties / material / description
      Previous value: -"Material type filter for AMS auto-detect (default ``\"PLA\"``).  Only trays matching this type are used. Default: \"PLA\"."New value: +"The material the copies print in (default ``\"PLA\"``). Auto-detect uses only loaded spools of that plastic. Default: \"PLA\"."
    • 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"
      +}
    • 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. Changed9 schema fields changedv1.5.1
    • addedInput schema / properties / ams_slots / description
      Added value: +"The tray each copy prints from, by the printer's own tray id (``unit * 4 + slot`` on a chained unit, the unit id on an AMS HT; ``ams_status`` lists each tray's ``tray_id``).  E.g. ``[0, 1, 2, 3]`` for all 4 AMS Lite trays, ``[0, 5]`` for A1 and B2."
    • addedInput schema / properties / colors / description
      Added value: +"Hex color strings per copy for slicer preview. E.g. ``[\"#FF0000\", \"#00FF00\", \"#0000FF\", \"#FFFF00\"]``. Auto-read from AMS if omitted."
    • addedInput schema / properties / copies / description
      Added value: +"Number of copies.  Auto-detected from AMS if omitted."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"PLA\"."New value: +"Material type filter for AMS auto-detect (default ``\"PLA\"``).  Only trays matching this type are used. Default: \"PLA\"."
    • addedInput schema / properties / model_path / description
      Added value: +"Path to the model file (STL or OBJ)."
    • addedInput schema / properties / preview_token / description
      Added value: +"Token from ``issue_preview_token`` proving this model was shown to the person before printing.  Required beside their go-ahead: a print is shown to its owner before it starts."
    • addedInput schema / properties / printer_id / description
      Added value: +"Printer model ID for slicer profile selection and plate-size lookup when arranging the copies."
    • addedInput schema / properties / slicer_path / description
      Added value: +"Explicit path to slicer binary."
    • changedInput schema / properties / spacing_mm / description
      Previous value: -"Default: 10.0."New value: +"Gap between copies on the plate (default 10 mm). Copies are arranged side by side, centered on the plate. Default: 10.0."
  3. Changed10 schema fields changedv1.5.0
    • removedInput schema / properties / ams_slots / default
      Removed value: -null
    • removedInput schema / properties / colors / default
      Removed value: -null
    • removedInput schema / properties / copies / default
      Removed value: -null
    • removedInput schema / properties / material / default
      Removed value: -"PLA"
    • addedInput schema / properties / material / description
      Added value: +"Default: \"PLA\"."
    • addedInput schema / properties / preview_token
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Preview Token"
      +}
    • removedInput schema / properties / printer_id / default
      Removed value: -null
    • removedInput schema / properties / slicer_path / default
      Removed value: -null
    • removedInput schema / properties / spacing_mm / default
      Removed value: -10
    • addedInput schema / properties / spacing_mm / description
      Added value: +"Default: 10.0."
  4. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Far beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=false): it discloses the pre-slice refusal code and what payload the refusal carries, the local slicer dependency, the pulled-from-person preview_token requirement, two explicit owner-consent overrides for named refusal codes, and the caveat that the emitted 3MF re-derives settings in Bambu Studio with a slicer_note to relay. That is exactly the destructive, physically-consequential context an agent needs.

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

Conciseness4/5

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

Front-loaded with the purpose, then bolded mode headers, then a docstring-style parameter block. Efficient for its complexity, but the long refusal/prerequisite paragraph interrupts the flow between purpose and modes, and the full :param: block repeats schema text that the agent already receives.

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?

A 12-parameter, physically-consequential print operation with no output schema is fully covered: prerequisites, refusal codes, consent gates, mode selection, plate arrangement, return contents ("print result, object details, and AMS mapping"), and the downstream slicer caveat. Nothing material to calling it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so per-parameter text is largely duplicated (e.g. the ams_slots tray-id formula and color examples appear verbatim). What the description adds beyond the schema is cross-parameter semantics: the auto-detect mode (omit copies, ams_slots, and colors together) versus manual mode, and the rule that colors given without ams_slots maps each copy to its loaded spool.

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?

The opening line states a specific verb and resource plus the differentiator: "Print multiple copies of the same model, each in a different AMS color." It then distinguishes the two operating modes and the printer class it applies to, so an agent can tell this apart from generic copy or material tools without opening the schema.

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?

Guidance is strong on conditions and exclusions: only Bambu-with-AMS printers, requires PrusaSlicer/OrcaSlicer, printer must be idle with loaded filament, and other printers are refused pre-slice with MULTI_MATERIAL_NOT_DRIVEN. Auto-detect vs manual mode selection is spelled out (omit copies/ams_slots/colors vs specify them). The only gap is that it never names a sibling to use when these conditions fail.

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