Skip to main content
Glama

estimate_print_time

Read-only

Estimate 3D print time, filament length and weight, and layer count by slicing a model or parsing existing G-code, so you can plan material and time before printing.

Instructions

Estimate print time and filament usage for a model.

        Slices the model and parses the G-code for print time, filament
        length/weight, and layer count.

        For **already-sliced** G-code files, pass the ``.gcode`` path
        directly — it will be parsed without re-slicing.

        Weight needs a filament density, which lives on a filament
        profile; Kiln's bundled profiles describe a PRINTER and name no
        filament, so pass ``material`` to get a weight.  Without it the
        weight is reported as absent rather than guessed — a key missing
        from the result means the slicer could not answer it, never that
        the answer is zero.

        **See also:** ``estimate_material_cost`` for weight and cost from
        a mesh with your own price per kg, and ``slice_and_estimate`` for
        a fuller analysis with the printability verdict.

        :param file_path: Path to STL/3MF/OBJ or .gcode file.
        :param profile: Optional slicer profile path.
        :param printer_id: Optional printer model ID for bundled profile
            (e.g. ``"bambu_a1"``).  Used when no explicit profile is given.
        :param slicer_path: Optional explicit slicer binary path.
        :param material: Optional filament family (``"PLA"``, ``"PETG"``,
            …) used only as a density source for the weight.
        :returns: Dict with time, filament, and layer estimates.
        :param 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.
        :param placement: Where the part goes when the plate still holds
            the last print: ``[x, y]`` in mm, a named region
            (``"front-left"``, ``"centre"``, …) or ``"keep"``.  An
            estimate never refuses because of the plate: with no safe
            spot named the estimate is for the part on an empty plate
            and ``plate_note`` says so.  Not read for a ``.gcode`` input.
        :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": {
      "file_path": "<file_path>"
    },
    "name": "estimate_print_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoOptional slicer profile path. Default: "".
materialNoOptional filament family (``"PLA"``, ``"PETG"``, …) used only as a density source for the weight. Default: "".
file_pathYesPath to STL/3MF/OBJ or .gcode file.
placementNoWhere the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``"front-left"``, ``"centre"``, …) or ``"keep"``. An estimate never refuses because of the plate: with no safe spot named the estimate is for the part on an empty plate and ``plate_note`` says so. Not read for a ``.gcode`` input.
printer_idNoOptional printer model ID for bundled profile (e.g. ``"bambu_a1"``). Used when no explicit profile is given. Default: "".
slicer_pathNoOptional explicit slicer binary path. Default: "".
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.
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. 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 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"
      +}
  2. Changed6 schema fields changedv1.5.1
    • addedInput schema / properties / file_path / description
      Added value: +"Path to STL/3MF/OBJ or .gcode file."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"\"."New value: +"Optional filament family (``\"PLA\"``, ``\"PETG\"``, …) used only as a density source for the weight. Default: \"\"."
    • addedInput schema / properties / placement / description
      Added value: +"Where the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``\"front-left\"``, ``\"centre\"``, …) or ``\"keep\"``.  An estimate never refuses because of the plate: with no safe spot named the estimate is for the part on an empty plate and ``plate_note`` says so.  Not read for a ``.gcode`` input."
    • changedInput schema / properties / printer_id / description
      Previous value: -"Default: \"\"."New value: +"Optional printer model ID for bundled profile (e.g. ``\"bambu_a1\"``).  Used when no explicit profile is given. Default: \"\"."
    • changedInput schema / properties / profile / description
      Previous value: -"Default: \"\"."New value: +"Optional slicer profile path. Default: \"\"."
    • changedInput schema / properties / slicer_path / description
      Previous value: -"Default: \"\"."New value: +"Optional explicit slicer binary path. Default: \"\"."
  3. Changed9 schema fields changedv1.5.0
    • removedInput schema / properties / material / default
      Removed value: -""
    • addedInput schema / properties / material / description
      Added value: +"Default: \"\"."
    • 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: -""
    • addedInput schema / properties / printer_id / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / profile / default
      Removed value: -""
    • addedInput schema / properties / profile / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / slicer_path / default
      Removed value: -""
    • addedInput schema / properties / slicer_path / description
      Added value: +"Default: \"\"."
  4. Changed1 schema field changedv1.3.1
    • addedInput schema / properties / material
      Added value: +{
      +  "default": "",
      +  "title": "Material",
      +  "type": "string"
      +}
  5. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered; the description goes well beyond that. It discloses the absent-key vs zero semantics ('a key missing from the result means the slicer could not answer it, never that the answer is zero'), that an estimate never refuses due to plate occupancy but returns a plate_note, and that `placement` is ignored for .gcode input.

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 high-value material (purpose, .gcode shortcut, missing-key semantics, sibling pointers) is front-loaded and clear. However, the body then duplicates all ten schema parameter descriptions verbatim, which is padding rather than added value, and the docstring structure is disordered ('':returns:'' appears in the middle of the parameter list, with plate_number, placement, and the two confirmation flags following it).

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 10-parameter read-only tool with no output schema, the description covers the mechanism, refusal codes, and plate behavior well. The return contract is thin ('Dict with time, filament, and layer estimates') and relies on inference about field names and units, but the missing-key convention is explained, which is the part most likely to trip an agent up.

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 baseline is 3. The description's per-parameter text is essentially a verbatim restatement of the schema descriptions (file_path, profile, printer_id, material, placement, filament_map all match), so it adds little meaning beyond the structured field. The one added nuance is the interactive sequencing for plate_number (ask the user, then pass it), which is already mirrored in the schema.

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 ('Estimate print time and filament usage for a model') and the next sentence explains the mechanism (slices the model and parses G-code for time, filament length/weight, layer count). The 'See also' block names the closest siblings (estimate_material_cost, slice_and_estimate) and says how they differ, so an agent can route without opening other schemas.

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?

It gives explicit when-to-use branches: pass a .gcode path directly for already-sliced files (no re-slicing), supply `material` when a weight is needed, and use estimate_material_cost or slice_and_estimate for cost or fuller analysis. Refusal cases (PLATE_NOT_CHOSEN, MULTI_NOZZLE_MIXED_SIZES, ABRASIVE_ON_SOFT_NOZZLE) each include the remediation step, which is actionable routing guidance.

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