Skip to main content
Glama

slice_and_estimate

Read-only

Slice a 3D model to estimate print time, filament use, cost, and printability before committing to a job, without uploading or starting a print.

Instructions

Primary estimation tool — slice a 3D model and return time, filament, cost, and printability analysis.

        For G-code files (already sliced), use ``estimate_cost`` instead.
        For quick volume-based estimates without slicing, use ``estimate_material_cost``.

        Slices the model using PrusaSlicer or OrcaSlicer, parses the
        output G-code for time and filament metadata, runs printability
        analysis on the file as it was sliced (a STEP file as Kiln's
        mesh of it), and returns adhesion recommendations — all without
        uploading or starting a print.  When the analysis could not be
        made, ``printability`` is null and ``printability_note`` says
        why.

        Use this tool to answer "how long will this take?" or "how much
        filament will I use?" before committing to a print job.

        Args:
            speed_by_height: The person's own speeds for height ranges of the part, only when they ask
                for them: a list like ``[{"from_mm": 0, "to_mm": 6, "percent": 50}, {"from_mm": 6,
                "speed_mm_s": 120}]`` (millimetres up from the plate; ``to_mm`` left out means to the
                top; one speed per range), or ``"kiln"`` to have Kiln choose them from the part's shape
                (Kiln Pro).  ``slice_model`` says what is read back and what is refused.
            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.
            plate_number: Which plate to estimate 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, OBJ, 3MF, STEP, AMF).
            printer_id: Optional printer model ID for bundled profile
                auto-selection (e.g. ``"bambu_a1"``, ``"prusa_mini"``).
            profile: Path to a slicer profile/config file (.ini or .json).
                Takes precedence over ``printer_id`` auto-selection.
            material: Filament material (e.g. ``"PLA"``, ``"PETG"``,
                ``"TPU"``).  The slice is set for it -- temperatures,
                melt rate and cooling -- so the time is the time THIS
                material takes (a TPU part is far slower than the same
                part in PLA), and its density gives the weight.
                Default is ``"PLA"``.
            printer_name: Registered printer this estimate is FOR.  Omit
                for the default printer.  An estimate is only as true as
                the profile behind it, so naming a second machine costs
                the job on that machine rather than on the default.
            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"``.  An estimate never
                refuses because of the plate: when the plate still holds
                the last print and no safe spot is named, the estimate is
                for the part on an empty plate and ``plate_note`` says
                so.  Where a named spot is safe, the estimate is of the
                part there, with the clearance verdict in ``placement``.

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": "slice_and_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoPath to a slicer profile/config file (.ini or .json). Takes precedence over ``printer_id`` auto-selection.
materialNoFilament material (e.g. ``"PLA"``, ``"PETG"``, ``"TPU"``). The slice is set for it -- temperatures, melt rate and cooling -- so the time is the time THIS material takes (a TPU part is far slower than the same part in PLA), and its density gives the weight. Default is ``"PLA"``. Default: "PLA".
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"``. An estimate never refuses because of the plate: when the plate still holds the last print and no safe spot is named, the estimate is for the part on an empty plate and ``plate_note`` says so. Where a named spot is safe, the estimate is of the part there, with the clearance verdict in ``placement``.
input_pathYesPath to the input file (STL, OBJ, 3MF, STEP, AMF).
printer_idNoOptional printer model ID for bundled profile auto-selection (e.g. ``"bambu_a1"``, ``"prusa_mini"``).
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 estimate 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 estimate is FOR. Omit for the default printer. An estimate is only as true as the profile behind it, so naming a second machine costs the job on that machine rather than on the default.
speed_by_heightNoThe person's own speeds for height ranges of the part, only when they ask for them: a list like ``[{"from_mm": 0, "to_mm": 6, "percent": 50}, {"from_mm": 6, "speed_mm_s": 120}]`` (millimetres up from the plate; ``to_mm`` left out means to the top; one speed per range), or ``"kiln"`` to have Kiln choose them from the part's shape (Kiln Pro). ``slice_model`` says what is read back and what is refused.
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
    • 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 estimate 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. Default: false.",
      +  "title": "Soft Nozzle Confirmed",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / speed_by_height
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The person's own speeds for height ranges of the part, only when they ask for them: a list like ``[{\"from_mm\": 0, \"to_mm\": 6, \"percent\": 50}, {\"from_mm\": 6, \"speed_mm_s\": 120}]`` (millimetres up from the plate; ``to_mm`` left out means to the top; one speed per range), or ``\"kiln\"`` to have Kiln choose them from the part's shape (Kiln Pro).  ``slice_model`` says what is read back and what is refused.",
      +  "title": "Speed By Height"
      +}
  2. Changed6 schema fields changedv1.5.1
    • addedInput schema / properties / input_path / description
      Added value: +"Path to the input file (STL, OBJ, 3MF, STEP, AMF)."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"PLA\"."New value: +"Filament material (e.g. ``\"PLA\"``, ``\"PETG\"``, ``\"TPU\"``).  The slice is set for it -- temperatures, melt rate and cooling -- so the time is the time THIS material takes (a TPU part is far slower than the same part in PLA), and its density gives the weight. Default is ``\"PLA\"``. Default: \"PLA\"."
    • 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\"``.  An estimate never refuses because of the plate: when the plate still holds the last print and no safe spot is named, the estimate is for the part on an empty plate and ``plate_note`` says so.  Where a named spot is safe, the estimate is of the part there, with the clearance verdict in ``placement``."
    • addedInput schema / properties / printer_id / description
      Added value: +"Optional printer model ID for bundled profile auto-selection (e.g. ``\"bambu_a1\"``, ``\"prusa_mini\"``)."
    • addedInput schema / properties / printer_name / description
      Added value: +"Registered printer this estimate is FOR.  Omit for the default printer.  An estimate is only as true as the profile behind it, so naming a second machine costs the job on that machine rather than on the default."
    • addedInput schema / properties / profile / description
      Added value: +"Path to a slicer profile/config file (.ini or .json). Takes precedence over ``printer_id`` auto-selection."
  3. Changed6 schema fields changedv1.5.0
    • removedInput schema / properties / material / default
      Removed value: -"PLA"
    • addedInput schema / properties / material / description
      Added value: +"Default: \"PLA\"."
    • 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 / profile / default
      Removed value: -null
  4. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint/destructiveHint annotations: it discloses that no upload or print is started, that printability may be null with a printability_note reason, that an estimate never refuses on plate occupancy but falls back to an empty plate with plate_note, that oversized meshes are decimated for the 3D stage, and that a mismatched filament_map is refused before slicing. It even enumerates refusal codes and the consent-gated overrides for MULTI_NOZZLE_MIXED_SIZES and ABRASIVE_ON_SOFT_NOZZLE.

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 is well front-loaded — purpose, sibling routing, and the plain-language use case all appear in the first few sentences. However, the description then duplicates all eleven parameter descriptions character-for-character from the schema, which is substantial dead weight for a tool whose schema is already fully documented.

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 an eleven-parameter slicing tool with no output schema, the description covers return contents (time, filament, cost, printability, plate_note/placement), failure codes, and the inline 3D stage side effect. The only mild gap is that the shape of the cost/printability payloads is described by name rather than by field, though the note fields are explained.

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 already 100%, so the schema carries the parameter documentation. The Args section in the description repeats those same parameter descriptions nearly verbatim (e.g. profile, plate_number, filament_map) rather than adding new syntax or format detail, so it does not meaningfully extend what the schema already says; baseline 3 applies.

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?

States a specific verb and resource up front ('slice a 3D model and return time, filament, cost, and printability analysis'), and immediately names the two siblings it is not (estimate_cost for already-sliced G-code, estimate_material_cost for volume-only estimates). An agent can distinguish it from the surrounding estimate_* tools without opening any schema.

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 routing rules with conditions: G-code files go to estimate_cost, quick non-slicing estimates go to estimate_material_cost, and this tool answers 'how long will this take?' / 'how much filament will I use?' before committing. It also tells the agent when to set flags only on user consent ('Only on their yes, each time') and what to do on PLATE_NOT_CHOSEN ('ask the user which plate, then pass it').

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