Skip to main content
Glama

reslice_with_overrides

Reslice a 3D model with custom slicer settings to fix adhesion, speed, or quality issues. Adjust brim, temperature, infill, and layer height, then generate new G-code.

Instructions

Reslice a 3D model with custom slicer parameter overrides.

        Accepts a base printer profile and a JSON dict of overrides to customize
        the slice. Common override keys (PrusaSlicer INI format):

          Adhesion: brim_width (mm), skirts (count), skirt_distance (mm)
          Temperature: temperature, first_layer_temperature, bed_temperature
          Speed: perimeter_speed, infill_speed, external_perimeter_speed, first_layer_speed, travel_speed (mm/s)
          Structure: fill_density (e.g. "25%"), fill_pattern (gyroid/grid/honeycomb), layer_height
          Support: support_material (0/1), support_material_buildplate_only (0/1)
          Retraction: retract_length, retract_speed

        Example overrides JSON: {"brim_width": "8", "perimeter_speed": "30", "fill_density": "25%"}

        Use this tool when a print failed due to adhesion, wobble, or quality issues
        and you need to reslice with adjusted settings. Pair with rotate_model to
        also change part orientation before reslicing.  A brim too wide for the
        room beside the part is refused (``BRIM_PAST_BED``) with the width that
        fits; a skirt past the edge of the bed is dropped and said in ``bed_fit``.

        Requires PrusaSlicer or OrcaSlicer installed locally.
        Use kiln find-slicer or the find_slicer MCP tool to verify.

        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 response's ``soft_nozzle`` says which
                filament goes through which nozzle on their say-so.
            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.
            plate_number: Which plate to slice of a slicer project that
                holds several plates (1 for the first).  Leave unset for
                any other file.  A several-plate project with none named
                is refused with ``code: "PLATE_NOT_CHOSEN"`` and a list of
                its plates: ask the user which plate, then pass it.
            input_path: Path to the input file (STL, 3MF, STEP, OBJ, AMF).
            printer_id: Printer model ID for bundled profile selection
                (e.g. ``"prusa_mini"``, ``"bambu_a1"``).
            overrides: Slicer keys to override, as a JSON object or its
                string form (e.g. ``{"brim_width": "8", "fill_density": "25%"}``).
            output_dir: Directory for the output G-code.  Defaults to the
                system temp directory.
            slicer_path: Explicit path to the slicer binary.  Auto-detected
                if omitted.
            printer_name: Registered printer this reslice is FOR.  Omit
                for the default printer.  Naming a second machine
                resolves its profile, its bed and its temperature
                ceilings instead of the default printer's.
            material: Filament material for this slice (``"PLA"``,
                ``"PETG"``, …).  It sets the temperatures, melt rate and
                cooling (``build_material_overrides`` shows them) and its
                density weighs the print; any of them you also pass in
                ``overrides`` stays yours.  Omitted, the loaded spool
                answers, then PLA — the response's ``filament`` block
                says which.
            placement: Where the part goes when the plate still holds the
                last print: ``[x, y]`` in mm (the part's footprint
                origin), a named region (``"front-left"``, ``"centre"``,
                ``"back-right"``, …), or ``"keep"``.  Omitted, an
                occupied plate refuses and lists the spots that would
                work; a clear plate reslices as before.  The response's
                ``placement`` block is the clearance verdict, checked
                again on the sliced file.  The clearance verdict is
                always given; placing and starting a second print on an
                occupied plate is included where the plan carries it.
            auto_center: Centre the model on the plate before slicing
                (default ``True``).  ``False`` keeps the model where its
                file places it.

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": {
      "input_path": "<input_path>"
    },
    "name": "reslice_with_overrides"
  }
}

Input Schema

NameRequiredDescriptionDefault
materialNoFilament material for this slice (``"PLA"``, ``"PETG"``, …). It sets the temperatures, melt rate and cooling (``build_material_overrides`` shows them) and its density weighs the print; any of them you also pass in ``overrides`` stays yours. Omitted, the loaded spool answers, then PLA — the response's ``filament`` block says which.
overridesNoSlicer keys to override, as a JSON object or its string form (e.g. ``{"brim_width": "8", "fill_density": "25%"}``).
placementNoWhere the part goes when the plate still holds the last print: ``[x, y]`` in mm (the part's footprint origin), a named region (``"front-left"``, ``"centre"``, ``"back-right"``, …), or ``"keep"``. Omitted, an occupied plate refuses and lists the spots that would work; a clear plate reslices as before. The response's ``placement`` block is the clearance verdict, checked again on the sliced file. The clearance verdict is always given; placing and starting a second print on an occupied plate is included where the plan carries it.
input_pathYesPath to the input file (STL, 3MF, STEP, OBJ, AMF).
output_dirNoDirectory for the output G-code. Defaults to the system temp directory.
printer_idNoPrinter model ID for bundled profile selection (e.g. ``"prusa_mini"``, ``"bambu_a1"``).
auto_centerNoCentre the model on the plate before slicing (default ``True``). ``False`` keeps the model where its file places it. Default: true.
slicer_pathNoExplicit path to the slicer binary. Auto-detected if omitted.
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.
plate_numberNoWhich plate to slice of a slicer project that holds several plates (1 for the first). Leave unset for any other file. A several-plate project with none named is refused with ``code: "PLATE_NOT_CHOSEN"`` and a list of its plates: ask the user which plate, then pass it.
printer_nameNoRegistered printer this reslice is FOR. Omit for the default printer. Naming a second machine resolves its profile, its bed and its temperature ceilings instead of the default printer's.
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 response's ``soft_nozzle`` says which filament goes through which nozzle on their say-so. 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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.6.0
    • 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 / 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 / plate_number
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Which plate to slice of a slicer project that holds several plates (1 for the first).  Leave unset for any other file.  A several-plate project with none named is refused with ``code: \"PLATE_NOT_CHOSEN\"`` and a list of its plates: ask the user which plate, then pass it.",
      +  "title": "Plate Number"
      +}
    • 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 response's ``soft_nozzle`` says which filament goes through which nozzle on their say-so. Default: false.",
      +  "title": "Soft Nozzle Confirmed",
      +  "type": "boolean"
      +}
  2. Changed9 schema fields changedv1.5.1
    • changedInput schema / properties / auto_center / description
      Previous value: -"Default: true."New value: +"Centre the model on the plate before slicing (default ``True``).  ``False`` keeps the model where its file places it. Default: true."
    • addedInput schema / properties / input_path / description
      Added value: +"Path to the input file (STL, 3MF, STEP, OBJ, AMF)."
    • addedInput schema / properties / material / description
      Added value: +"Filament material for this slice (``\"PLA\"``, ``\"PETG\"``, …).  It sets the temperatures, melt rate and cooling (``build_material_overrides`` shows them) and its density weighs the print; any of them you also pass in ``overrides`` stays yours.  Omitted, the loaded spool answers, then PLA — the response's ``filament`` block says which."
    • addedInput schema / properties / output_dir / description
      Added value: +"Directory for the output G-code.  Defaults to the system temp directory."
    • addedInput schema / properties / overrides / description
      Added value: +"Slicer keys to override, as a JSON object or its string form (e.g. ``{\"brim_width\": \"8\", \"fill_density\": \"25%\"}``)."
    • addedInput schema / properties / placement / description
      Added value: +"Where the part goes when the plate still holds the last print: ``[x, y]`` in mm (the part's footprint origin), a named region (``\"front-left\"``, ``\"centre\"``, ``\"back-right\"``, …), or ``\"keep\"``.  Omitted, an occupied plate refuses and lists the spots that would work; a clear plate reslices as before.  The response's ``placement`` block is the clearance verdict, checked again on the sliced file.  The clearance verdict is always given; placing and starting a second print on an occupied plate is included where the plan carries it."
    • addedInput schema / properties / printer_id / description
      Added value: +"Printer model ID for bundled profile selection (e.g. ``\"prusa_mini\"``, ``\"bambu_a1\"``)."
    • addedInput schema / properties / printer_name / description
      Added value: +"Registered printer this reslice is FOR.  Omit for the default printer.  Naming a second machine resolves its profile, its bed and its temperature ceilings instead of the default printer's."
    • addedInput schema / properties / slicer_path / description
      Added value: +"Explicit path to the slicer binary.  Auto-detected if omitted."
  3. Changed10 schema fields changedv1.5.0
    • removedInput schema / properties / auto_center / default
      Removed value: -true
    • addedInput schema / properties / auto_center / description
      Added value: +"Default: true."
    • addedInput schema / properties / material
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Material"
      +}
    • removedInput schema / properties / output_dir / default
      Removed value: -null
    • changedInput schema / properties / overrides / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / overrides / default
      Removed value: -null
    • 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
    • addedInput schema / properties / printer_name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Printer Name"
      +}
    • removedInput schema / properties / slicer_path / default
      Removed value: -null
  4. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false; the description goes well beyond that. It discloses real side effects and failure semantics: writing G-code to output_dir (defaulting to temp), a local slicer binary dependency, and named refusal codes with their remediation (BRIM_PAST_BED with a fitting width, a dropped skirt reported in bed_fit, PLATE_NOT_CHOSEN, MULTI_NOZZLE_MIXED_SIZES, ABRASIVE_ON_SOFT_NOZZLE). It even documents the inline 3D stage and automatic mesh decimation, which is behavior nothing else in the structured fields conveys.

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?

Well organized with a purpose statement, key catalog, usage trigger, prerequisite, and Args block, and the trigger is reasonably front-loaded. But it is long, the Args section duplicates the input-schema descriptions almost word for word (no added value), and some parentheticals are garbled mid-sentence ('is refused (``BRIM_PAST_BED``) with the width that fits'). Trimming the duplication would improve it without losing information.

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 13-parameter, multi-modal tool (paths, overrides, plates, nozzles, placement, materials) the description covers what an agent needs: prerequisites, per-parameter escalation rules that require user consent, refusal codes with recovery actions, and the fact that a plate can be occupied and refuse until placement is supplied. An output schema exists, and references to response blocks (bed_fit, filament, placement, soft_nozzle) are used to explain when to look, not to re-document returns.

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 the baseline is 3 and the Args block mostly restates schema text verbatim. However, the description adds material meaning the schema lacks for the highest-risk parameter: a categorized catalog of override keys (adhesion, temperature, speed, structure, support, retraction) with units and value formats, plus a worked JSON example. That is real added semantics for `overrides`, lifting it above baseline.

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?

Opens with a specific verb and resource: 'Reslice a 3D model with custom slicer parameter overrides', which is unambiguous on its own. It also routes to siblings by pairing (rotate_model, find_slicer) and references refusal codes from slice_model, but it never states plainly how this differs from slice_model (i.e. use slice_model when no overrides are needed), so the sibling distinction is inferred 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete trigger ('when a print failed due to adhesion, wobble, or quality issues'), a prerequisite ('Requires PrusaSlicer or OrcaSlicer installed locally. Use kiln find-slicer or the find_slicer MCP tool to verify'), and a companion tool (rotate_model) with the condition that selects it. Per-parameter guidance on when to ask the user (plate_number, mixed_nozzle_experiment, soft_nozzle_confirmed) is genuinely useful. No explicit when-not-to-use or comparison against slice_model keeps it below a 5.

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