Skip to main content
Glama

slice_stl

Destructive

Slices STL or 3MF files into printer-safe G-code or sliced 3MF for a specified Bambu Lab model, with options for quality, strength, supports, orientation, and plate layout.

Instructions

Slice an STL or 3MF file using a slicer to generate printable G-code or sliced 3MF. IMPORTANT: bambu_model must be specified to ensure the slicer generates safe G-code for the correct printer. The text result is the sliced file's path. When Bambu Studio or OrcaSlicer writes a result.json, structuredContent.slicer_result carries it verbatim, success or error: error_string, return_code and each sliced_plates[].warning_message, such as a floating cantilever. structuredContent.slicer_report says whether it failed; for a failure, its message is a plain sentence for a person and slicer_message keeps the slicer's words, which a failed slice's text gives after that sentence. A 3MF that carries its own process settings (a designer's Bambu Studio or Orca project) slices with them unless slicer_profile, template_name or template_3mf_path is given; the machine still comes from bambu_model. quality and strength adjust that process, and strength never lowers its walls or infill.

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": {
      "stl_path": "<stl_path>",
      "bambu_model": "<bambu_model>"
    },
    "name": "slice_stl"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoUniform scale factor applied to all axes. 1.0 = original size, 2.0 = double, 0.5 = half. Applied before slicing.
orientNoAuto-orient the model for optimal printability (minimize supports, maximize bed adhesion). Recommended for raw STL imports that lack a pre-set orientation.
rotateNoRotate the model around the Z-axis (vertical) by this many degrees before slicing. Positive = counterclockwise when viewed from above.
arrangeNoAuto-arrange all objects on the build plate with optimal spacing; STL input is arranged by default. Set false only to keep a 3MF's existing layout: an STL that is not already on the plate then fails to slice.
qualityNoPrint quality: draft (thicker layers, faster), standard (the preset's own layer height) or fine (thinner layers). The server picks the layer height for the nozzle in use; an explicit layer_height wins.
bed_typeNoBed plate type for slicing (default: textured_plate).
min_saveNoWrite a smaller output 3MF by omitting non-essential metadata. Reduces file size for faster FTP upload to the printer.
rotate_xNoRotate the model around the X-axis by this many degrees before slicing. Useful for reorienting prints for better layer adhesion.
rotate_yNoRotate the model around the Y-axis by this many degrees before slicing. Useful for reorienting prints for better layer adhesion.
stl_pathYesPath to the STL or 3MF file to slice
strengthNoPart strength: standard (the process's own walls and infill), strong or max (at least more walls and denser infill; a process that already has more keeps it). The server picks the values; explicit wall_loops or sparse_infill_density win.
uptodateNoRefresh 3MF preset configs to match the latest BambuStudio version. Use when slicing downloaded or older 3MF files to prevent stale-config failures.
wall_loopsNoNumber of walls (perimeters), written as the process preset's wall_loops. Bambu-compatible slicers only.
bambu_modelYesREQUIRED: Bambu Lab printer model. Ask the user if not known. Using the wrong model can damage the printer.
nozzle_typeNoBambu-compatible slicing: the hotend nozzle material installed on the printer (default: BAMBU_NOZZLE_TYPE, else the model preset's stock nozzle, usually stainless_steel). Printing compares it with the printer's reported nozzle.
repetitionsNoSlice N identical copies of the model. Bambu Studio and OrcaSlicer copy an STL with --clone-objects; do not also pass clone_objects. Copies may need multiple plates; print_3mf prints one selected plate per call. For 3MF input, select slice_plate explicitly.
slice_plateNoWhich plate index to slice. 0 = all plates for local slicers; remote slicing defaults to plate 1 and rejects 0. Use 1, 2, etc. to slice only a specific plate in multi-plate 3MF projects.
slicer_pathNoPath to the slicer executable (default: value from env). Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1.
slicer_typeNoType of slicer to use. Bambu-compatible choices (bambustudio, orcaslicer, orcaslicer-bambulab) export sliced 3MF; aliases such as fulu-orca and orca-studio are accepted.
layer_heightNoLayer height in mm, such as 0.28 (draft), 0.2 (standard) or 0.12 (fine). Written as the process preset's layer_height over the machine and process preset this tool resolves; at most the nozzle diameter. Bambu-compatible slicers only.
skip_objectsNoSkip these object copies when slicing, by identify_id, comma-separated (e.g. '78,92'). The ids are the instances list_3mf_plates gives for each plate; they are not positions. Useful for multi-object 3MFs where you only want to print some parts.
support_typeNoSupport style, written as the process preset's support_type. Bambu-compatible slicers only.
template_dirNoOptional template directory override when resolving template_name.
clone_objectsNoClone the loaded model: total copies as a single integer, e.g. '3'. The Bambu-style CLIs count copies per input file and this tool loads one file, so a comma-separated list is rejected by the slicer.
ensure_on_bedNoDetect models floating above the bed and lower them onto the build surface. Safety net for imported models with incorrect Z origins.
template_nameNoOptional named template from the local registry. Resolves to template_3mf_path automatically.
allow_mix_tempNoAllow filaments with different temperature requirements on the same plate. Required for multi-material prints mixing e.g. PLA and PETG.
enable_supportNoTurn support generation on or off, written as the process preset's enable_support. Bambu-compatible slicers only.
load_filamentsNoOverride filament profiles. Semicolon-separated paths to filament JSON configs, e.g. 'pla_basic.json;petg_cf.json'.
slicer_profileNoPath to an optional process profile/config file. The exact bambu_model/nozzle machine preset is still required.
nozzle_diameterNoNozzle diameter in mm (default: 0.4)
pause_at_layersNoPause before each of these layers (1-based, as Bambu Studio and OrcaSlicer number them in the preview), for example to drop in magnets or nuts. The slicer writes the printer's own pause G-code there (M400 U1 on Bambu printers); the printer stops by itself and waits for Resume. Bambu Studio or OrcaSlicer CLI only. Pauses already in a project 3MF are kept.
enable_timelapseNoInsert timelapse parking moves into gcode. The toolhead parks at a fixed position each layer for camera capture. Adds ~10% print time.
filament_coloursNoOptional slot colours, one #RRGGBB per filament slot in order, separated by ';' (e.g. '#161616;#FFFFFF'). Defaults to the input 3MF's project colours, else the BambuStudio default.
filament_profileNoCompatibility alias for load_filaments. Semicolon-separated Orca/Bambu filament profile JSON paths.
load_filament_idsNoMap filaments to objects/parts. Comma-separated IDs matching load_filaments order, e.g. '1,2,3,1' assigns filament 1 to objects 0 and 3.
template_3mf_pathNoOptional template 3MF whose embedded Bambu slicer settings should be reused when slicing a new STL or 3MF.
nozzle_volume_typeNoBambu-compatible slicing: the flow type of the nozzle installed on the printer (default: BAMBU_NOZZLE_VOLUME_TYPE, else standard). high_flow uses the presets' High Flow values, such as the filament's High Flow max volumetric speed, and is refused if the machine preset has no High Flow variant. Printing compares it with the printer's reported nozzle flow.
skip_modified_gcodesNoStrip custom start/end gcodes embedded in the 3MF. Recommended for downloaded 3MFs since custom gcodes from other users' profiles may be unsafe for your printer.
sparse_infill_densityNoSparse infill density as a percentage, such as "15%", written as the process preset's sparse_infill_density. Bambu-compatible slicers only.
use_printer_filamentsNoWhen true, and no explicit slicer profile or load_filaments override is provided, use the printer's current or first loaded AMS filament as the slicer filament profile. Template 3MF process settings can still be used at the same time.
support_threshold_angleNoOverhang threshold in degrees for automatic supports, written as the process preset's support_threshold_angle (0 lets the slicer decide). Bambu-compatible slicers only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.77
    • changedInput schema / properties / bed_type / description
      Previous value: -"Bed plate type for slicing (default: textured_plate). SuperTack is accepted only for pre-sliced print jobs until the BambuStudio CLI identifier is verified."New value: +"Bed plate type for slicing (default: textured_plate)."
    • changedInput schema / properties / skip_objects / description
      Previous value: -"Skip specific objects during slicing by index. Comma-separated, e.g. '3,5,10'. Useful for multi-object 3MFs where you only want to print some parts."New value: +"Skip these object copies when slicing, by identify_id, comma-separated (e.g. '78,92'). The ids are the instances list_3mf_plates gives for each plate; they are not positions. Useful for multi-object 3MFs where you only want to print some parts."
  2. Changed7 schema fields changedv1.1.61
    • addedInput schema / properties / enable_support
      Added value: +{
      +  "description": "Turn support generation on or off, written as the process preset's enable_support. Bambu-compatible slicers only.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / pause_at_layers
      Added value: +{
      +  "description": "Pause before each of these layers (1-based, as Bambu Studio and OrcaSlicer number them in the preview), for example to drop in magnets or nuts. The slicer writes the printer's own pause G-code there (M400 U1 on Bambu printers); the printer stops by itself and waits for Resume. Bambu Studio or OrcaSlicer CLI only. Pauses already in a project 3MF are kept.",
      +  "items": {
      +    "minimum": 2,
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / quality
      Added value: +{
      +  "description": "Print quality: draft (thicker layers, faster), standard (the preset's own layer height) or fine (thinner layers). The server picks the layer height for the nozzle in use; an explicit layer_height wins.",
      +  "enum": [
      +    "draft",
      +    "standard",
      +    "fine"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / repetitions / description
      Previous value: -"Print N identical copies of the model. Each copy gets its own plate placement. Example: 3 prints three copies. OrcaSlicer copies an STL with --clone-objects; do not combine with clone_objects."New value: +"Slice N identical copies of the model. Bambu Studio and OrcaSlicer copy an STL with --clone-objects; do not also pass clone_objects. Copies may need multiple plates; print_3mf prints one selected plate per call. For 3MF input, select slice_plate explicitly."
    • addedInput schema / properties / strength
      Added value: +{
      +  "description": "Part strength: standard (the process's own walls and infill), strong or max (at least more walls and denser infill; a process that already has more keeps it). The server picks the values; explicit wall_loops or sparse_infill_density win.",
      +  "enum": [
      +    "standard",
      +    "strong",
      +    "max"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / support_threshold_angle
      Added value: +{
      +  "description": "Overhang threshold in degrees for automatic supports, written as the process preset's support_threshold_angle (0 lets the slicer decide). Bambu-compatible slicers only.",
      +  "maximum": 90,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / support_type
      Added value: +{
      +  "description": "Support style, written as the process preset's support_type. Bambu-compatible slicers only.",
      +  "enum": [
      +    "normal(auto)",
      +    "tree(auto)",
      +    "normal(manual)",
      +    "tree(manual)"
      +  ],
      +  "type": "string"
      +}
  3. Changed3 schema fields changedv1.1.51
    • addedInput schema / properties / layer_height
      Added value: +{
      +  "description": "Layer height in mm, such as 0.28 (draft), 0.2 (standard) or 0.12 (fine). Written as the process preset's layer_height over the machine and process preset this tool resolves; at most the nozzle diameter. Bambu-compatible slicers only.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / sparse_infill_density
      Added value: +{
      +  "description": "Sparse infill density as a percentage, such as \"15%\", written as the process preset's sparse_infill_density. Bambu-compatible slicers only.",
      +  "pattern": "^\\s*\\d+(\\.\\d+)?\\s*%\\s*$",
      +  "type": "string"
      +}
    • addedInput schema / properties / wall_loops
      Added value: +{
      +  "description": "Number of walls (perimeters), written as the process preset's wall_loops. Bambu-compatible slicers only.",
      +  "maximum": 1000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  4. Changed1 schema field changedv1.1.42
    • changedInput schema / properties / bambu_model / enum
      Previous value: -[
      -  "p1s",
      -  "p1p",
      -  "p2s",
      -  "x1c",
      -  "x1e",
      -  "a1",
      -  "a1mini",
      -  "h2d",
      -  "h2s",
      -  "h2c",
      -  "x2d"
      -]New value: +[
      +  "p1s",
      +  "p1p",
      +  "p2s",
      +  "x1c",
      +  "x1e",
      +  "a1",
      +  "a1mini",
      +  "h2d",
      +  "h2dpro",
      +  "h2s",
      +  "h2c",
      +  "x2d"
      +]
  5. Changed3 schema fields changedv1.1.37
    • changedInput schema / properties / arrange / description
      Previous value: -"Auto-arrange all objects on the build plate with optimal spacing. Recommended when importing STLs or adding multiple objects. Set false to preserve existing plate layout."New value: +"Auto-arrange all objects on the build plate with optimal spacing; STL input is arranged by default. Set false only to keep a 3MF's existing layout: an STL that is not already on the plate then fails to slice."
    • changedInput schema / properties / clone_objects / description
      Previous value: -"Duplicate specific objects on the plate. Comma-separated clone counts per object index, e.g. '1,3,1,10' clones object 0 once, object 1 three times, etc."New value: +"Clone the loaded model: total copies as a single integer, e.g. '3'. The Bambu-style CLIs count copies per input file and this tool loads one file, so a comma-separated list is rejected by the slicer."
    • changedInput schema / properties / repetitions / description
      Previous value: -"Print N identical copies of the model. Each copy gets its own plate placement. Example: 3 prints three copies."New value: +"Print N identical copies of the model. Each copy gets its own plate placement. Example: 3 prints three copies. OrcaSlicer copies an STL with --clone-objects; do not combine with clone_objects."
  6. Changed3 schema fields changedv1.1.31
    • addedInput schema / properties / nozzle_volume_type
      Added value: +{
      +  "description": "Bambu-compatible slicing: the flow type of the nozzle installed on the printer (default: BAMBU_NOZZLE_VOLUME_TYPE, else standard). high_flow uses the presets' High Flow values, such as the filament's High Flow max volumetric speed, and is refused if the machine preset has no High Flow variant. Printing compares it with the printer's reported nozzle flow.",
      +  "enum": [
      +    "standard",
      +    "high_flow"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / slice_plate / description
      Previous value: -"Which plate index to slice. 0 = all plates (default). Use 1, 2, etc. to slice only a specific plate in multi-plate 3MF projects."New value: +"Which plate index to slice. 0 = all plates for local slicers; remote slicing defaults to plate 1 and rejects 0. Use 1, 2, etc. to slice only a specific plate in multi-plate 3MF projects."
    • changedInput schema / properties / slicer_type / enum
      Previous value: -[
      -  "bambustudio",
      -  "orcaslicer",
      -  "orcaslicer-bambulab",
      -  "prusaslicer",
      -  "cura",
      -  "slic3r",
      -  "fulu-orca",
      -  "fulu-orcaslicer",
      -  "orca-studio",
      -  "orca-bambulab"
      -]New value: +[
      +  "bambustudio",
      +  "orcaslicer",
      +  "orcaslicer-bambulab",
      +  "orca-slicer-api",
      +  "prusaslicer",
      +  "cura",
      +  "slic3r",
      +  "fulu-orca",
      +  "fulu-orcaslicer",
      +  "orca-studio",
      +  "orca-bambulab"
      +]
  7. Changed1 schema field changedv1.1.22
    • addedInput schema / properties / nozzle_type
      Added value: +{
      +  "description": "Bambu-compatible slicing: the hotend nozzle material installed on the printer (default: BAMBU_NOZZLE_TYPE, else the model preset's stock nozzle, usually stainless_steel). Printing compares it with the printer's reported nozzle.",
      +  "enum": [
      +    "stainless_steel",
      +    "hardened_steel",
      +    "tungsten_carbide",
      +    "brass"
      +  ],
      +  "type": "string"
      +}
  8. Changed4 schema fields changedv1.1.14
    • changedInput schema / properties / bambu_model / enum
      Previous value: -[
      -  "p1s",
      -  "p1p",
      -  "p2s",
      -  "x1c",
      -  "x1e",
      -  "a1",
      -  "a1mini",
      -  "h2d",
      -  "h2s"
      -]New value: +[
      +  "p1s",
      +  "p1p",
      +  "p2s",
      +  "x1c",
      +  "x1e",
      +  "a1",
      +  "a1mini",
      +  "h2d",
      +  "h2s",
      +  "h2c",
      +  "x2d"
      +]
    • addedInput schema / properties / filament_colours
      Added value: +{
      +  "description": "Optional slot colours, one #RRGGBB per filament slot in order, separated by ';' (e.g. '#161616;#FFFFFF'). Defaults to the input 3MF's project colours, else the BambuStudio default.",
      +  "type": "string"
      +}
    • changedInput schema / properties / slicer_path / description
      Previous value: -"Path to the slicer executable (default: value from env)"New value: +"Path to the slicer executable (default: value from env). Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1."
    • changedInput schema / properties / slicer_profile / description
      Previous value: -"Path to the slicer profile/config file (optional, overrides bambu_model preset)"New value: +"Path to an optional process profile/config file. The exact bambu_model/nozzle machine preset is still required."
  9. First observedv1.1.1

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already mark the tool as non-read-only, open-world, non-idempotent, and destructive, and the description adds useful behavioral detail about the generated file path and the structured slicer result and report objects. It does not restate the destructive annotation directly, but it does not contradict it either.

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?

The description front-loads the purpose and required safety-critical parameter, then explains return structure and 3MF process-setting behavior. It is dense and long, but the length is largely justified because there is no output schema and the tool has 42 parameters.

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 complex slicing tool with no output schema, the description covers the core operation, the critical printer-model requirement, return-value structure, and process-setting precedence. Remaining gaps such as explicit sibling comparisons and direct disclosure of file-overwrite behavior are partially covered by annotations and the schema.

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, but the description adds meaningful cross-parameter semantics: bambu_model is safety-critical, embedded 3MF settings take precedence unless profile or template overrides are given, and quality/strength adjust process settings with strength never reducing walls or infill. That goes beyond what the parameter descriptions state individually.

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 description states a specific verb and resource: slicing an STL or 3MF file to produce printable G-code or sliced 3MF. It is clear enough that an agent can identify the operation, but it does not explicitly distinguish this tool from the sibling slice_with_template.

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?

The description gives important usage context, especially that bambu_model is required and that embedded 3MF process settings are reused unless overrides are supplied. However, it does not explicitly say when to choose this tool over slice_with_template or other slicing-related siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.