Skip to main content
Glama

reprint_with_material

Destructive

Change an existing 3D model's material and print it again, such as PLA to PETG or TPU. It reslices with the new material's settings, checks safety, uploads, and starts the print.

Instructions

Reprint a model with a different material — the slice is set for it.

One-shot convenience tool: reslices the model for the new material
(its temperatures, melt rate and cooling, from the same resolver every
slice uses -- see ``build_material_overrides``), merges any extra
overrides you provide, runs a safety check, uploads to the printer, and
starts the print.  The file is labelled and weighed as the new material.

Use this when you want to reprint an existing model in a different
material (e.g. PLA → PETG for outdoor durability, or PLA → TPU for
flexibility). The tool handles all the slicer parameter changes
automatically.

Example: "Reprint my grip extension in PETG instead of PLA"::

    reprint_with_material(
        file_path="/path/to/grip_extension.stl",
        material_id="petg",
        printer_name="my_bambu",
        printer_id="bambu_a1",
        use_ams=True,
        ams_mapping="[1]",  # PETG is in slot A2 (tray id 1)
    )

Requires PrusaSlicer or OrcaSlicer installed locally.

Args:
    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.  The slice step's
        ``soft_nozzle`` says which filament goes through which nozzle.
    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.
    file_path: Path to the model file (STL, 3MF, STEP, OBJ).
    material_id: Target material (e.g. ``"petg"``, ``"tpu"``).
    printer_name: Registered printer name in fleet. If omitted,
        uses the default printer.
    printer_id: Printer model ID for profile selection
        (e.g. ``"bambu_a1"``, ``"ender3"``).
    extra_overrides: Optional JSON string of additional slicer
        overrides to merge on top of the material defaults
        (e.g. ``'{"fill_density": "30%"}'``).
    use_ams: Enable AMS filament feeding (Bambu printers).
    ams_mapping: JSON string of AMS slot indices (e.g. ``"[1]"``).
        Maps each extruder/filament to an AMS tray position.
    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.
    goal_id: The saved goal from ``design_session`` this model was made
        for.  The goal then records the material it printed in, and keeps
        the one it replaces on its history (``goal_material`` in the
        reply).  Omitted, the goal named beside the model, if any.
    chosen_by: Who picked this material: ``"person"`` when they named it,
        ``"agent"`` when you proposed it.  Kept with the goal's record;
        omitted, it is left unsaid.
    version_id: The kept design version the model is, when there is one,
        so the print lands on that version's history (with ``design_id``
        and ``branch_id``).
    design_id: The kept design the model belongs to.
    branch_id: The design branch the version is on.
    in_place_of: The plastic this reprint stands in for (the one asked
        for, when it is not loaded): kept with ``material_id`` on the
        print's own record.

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": {
      "file_path": "<file_path>",
      "material_id": "<material_id>"
    },
    "name": "reprint_with_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
goal_idNoThe saved goal from ``design_session`` this model was made for. The goal then records the material it printed in, and keeps the one it replaces on its history (``goal_material`` in the reply). Omitted, the goal named beside the model, if any. Default: "".
use_amsNoEnable AMS filament feeding (Bambu printers).
branch_idNoThe design branch the version is on.
chosen_byNoWho picked this material: ``"person"`` when they named it, ``"agent"`` when you proposed it. Kept with the goal's record; omitted, it is left unsaid. Default: "".
design_idNoThe kept design the model belongs to.
file_pathYesPath to the model file (STL, 3MF, STEP, OBJ).
printer_idNoPrinter model ID for profile selection (e.g. ``"bambu_a1"``, ``"ender3"``).
version_idNoThe kept design version the model is, when there is one, so the print lands on that version's history (with ``design_id`` and ``branch_id``).
ams_mappingNoJSON string of AMS slot indices (e.g. ``"[1]"``). Maps each extruder/filament to an AMS tray position.
in_place_ofNoThe plastic this reprint stands in for (the one asked for, when it is not loaded): kept with ``material_id`` on the print's own record. Default: "".
material_idYesTarget material (e.g. ``"petg"``, ``"tpu"``).
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_nameNoRegistered printer name in fleet. If omitted, uses the default printer.
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.
extra_overridesNoOptional JSON string of additional slicer overrides to merge on top of the material defaults (e.g. ``'{"fill_density": "30%"}'``).
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. The slice step's ``soft_nozzle`` says which filament goes through which nozzle. 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. Changed9 schema fields changedv1.6.0
    • addedInput schema / properties / branch_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The design branch the version is on.",
      +  "title": "Branch Id"
      +}
    • removedInput schema / properties / brief_id
      Removed value: -{
      -  "description": "The saved goal from ``design_session`` this model was made for.  The goal then records the material it printed in, and keeps the one it replaces on its history (``goal_material`` in the reply).  Omitted, the goal named beside the model, if any. Default: \"\".",
      -  "title": "Brief Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / design_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The kept design the model belongs to.",
      +  "title": "Design Id"
      +}
    • 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 from ``design_session`` this model was made for.  The goal then records the material it printed in, and keeps the one it replaces on its history (``goal_material`` in the reply).  Omitted, the goal named beside the model, if any. Default: \"\".",
      +  "title": "Goal Id",
      +  "type": "string"
      +}
    • addedInput schema / properties / in_place_of
      Added value: +{
      +  "description": "The plastic this reprint stands in for (the one asked for, when it is not loaded): kept with ``material_id`` on the print's own record. Default: \"\".",
      +  "title": "In Place Of",
      +  "type": "string"
      +}
    • 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.  The slice step's ``soft_nozzle`` says which filament goes through which nozzle. Default: false.",
      +  "title": "Soft Nozzle Confirmed",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / version_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The kept design version the model is, when there is one, so the print lands on that version's history (with ``design_id`` and ``branch_id``).",
      +  "title": "Version Id"
      +}
  2. Changed10 schema fields changedv1.5.1
    • addedInput schema / properties / ams_mapping / description
      Added value: +"JSON string of AMS slot indices (e.g. ``\"[1]\"``). Maps each extruder/filament to an AMS tray position."
    • addedInput schema / properties / brief_id
      Added value: +{
      +  "description": "The saved goal from ``design_session`` this model was made for.  The goal then records the material it printed in, and keeps the one it replaces on its history (``goal_material`` in the reply).  Omitted, the goal named beside the model, if any. Default: \"\".",
      +  "title": "Brief Id",
      +  "type": "string"
      +}
    • addedInput schema / properties / chosen_by
      Added value: +{
      +  "description": "Who picked this material: ``\"person\"`` when they named it, ``\"agent\"`` when you proposed it.  Kept with the goal's record; omitted, it is left unsaid. Default: \"\".",
      +  "title": "Chosen By",
      +  "type": "string"
      +}
    • addedInput schema / properties / extra_overrides / description
      Added value: +"Optional JSON string of additional slicer overrides to merge on top of the material defaults (e.g. ``'{\"fill_density\": \"30%\"}'``)."
    • addedInput schema / properties / file_path / description
      Added value: +"Path to the model file (STL, 3MF, STEP, OBJ)."
    • addedInput schema / properties / material_id / description
      Added value: +"Target material (e.g. ``\"petg\"``, ``\"tpu\"``)."
    • 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 profile selection (e.g. ``\"bambu_a1\"``, ``\"ender3\"``)."
    • addedInput schema / properties / printer_name / description
      Added value: +"Registered printer name in fleet. If omitted, uses the default printer."
    • addedInput schema / properties / use_ams / description
      Added value: +"Enable AMS filament feeding (Bambu printers)."
  3. Changed8 schema fields changedv1.5.0
    • changedInput schema / properties / ams_mapping / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "integer"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / ams_mapping / default
      Removed value: -null
    • changedInput schema / properties / extra_overrides / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / extra_overrides / default
      Removed value: -null
    • 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 / printer_name / default
      Removed value: -null
    • removedInput schema / properties / use_ams / default
      Removed value: -null
  4. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Goes far beyond the annotations: it discloses that the tool reslices with resolver-derived material settings, merges overrides, runs a safety check, uploads, and physically starts a print, and that PrusaSlicer or OrcaSlicer must be installed locally. It also documents two refusal codes (MULTI_NOZZLE_MIXED_SIZES, ABRASIVE_ON_SOFT_NOZZLE) and the consent rules for overriding them, plus the preview_token requirement that the model be shown to the person first. This is unusually rich context for a destructive, real-world-action tool.

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 opening prose is well front-loaded — purpose, mechanism, usage, example, prerequisite all land before any parameter text. But roughly half the description is an Args block that duplicates the schema word-for-word at 100% coverage, so a large fraction of the text does not earn its place. The example call is valuable; the restated parameter docs are not.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter mutation tool with no output schema, the description covers prerequisites, the full action sequence, consent gates, and refusal modes, and it points at where results surface ('goal_material in the reply', the print's own record). It does not describe the overall response shape or what a failed upload/print start looks like. Given the breadth of the parameter set, this is close to complete but leaves the return contract under-specified.

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 the schema already carries all 17 parameter descriptions, and the Args block in the description is essentially verbatim duplication rather than added meaning. The one genuinely clarifying touch is the ams_mapping example tying slot '[1]' to tray A2 in the sample call. No new semantics are introduced for the interaction between goal_id, chosen_by, version_id and in_place_of beyond what the schema states.

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?

States a specific verb and resource ('Reprint a model with a different material') and immediately names the mechanism (reslice, merge overrides, safety check, upload, start print). It clearly differentiates itself from lower-level siblings it references (slice_model, build_material_overrides) by billing itself as a 'one-shot convenience tool'. It never addresses smart_reprint or reslice_with_overrides, which an agent would plausibly confuse it with.

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?

Gives explicit when-to-use framing plus two concrete motivating examples (PLA → PETG for outdoor durability, PLA → TPU for flexibility) and a full worked invocation. The 'One-shot' framing implicitly contrasts with doing the slice/upload steps individually. It offers no when-NOT-to-use rule or named alternative for the case where the agent only wants to reslice without printing.

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