Skip to main content
Glama

wrap_gcode_as_resume_3mf

Package resume G-code as a 3MF file so a Bambu printer can pick up and continue an interrupted print.

Instructions

Package resume G-code as a 3MF a Bambu printer can pick the print back up from (Pro).

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": {
      "gcode_path": "<gcode_path>"
    },
    "name": "wrap_gcode_as_resume_3mf"
  }
}

Input Schema

NameRequiredDescriptionDefault
bed_tempNoBed setpoint for the embedded metadata. Leave unset to use the one the gcode body's preamble heats to.
gcode_pathYesPath to the resume ``.gcode`` file (typically the ``resume_gcode_path`` returned by ``generate_recovery_gcode`` or ``deboss_during_print``).
hotend_tempNoHotend setpoint for the embedded metadata. Leave unset to use the one the gcode body's preamble heats to.
output_pathNoWhere to write the ``.3mf``. Empty = replace the ``.gcode`` extension with ``.3mf`` next to the input. Default: "".
printer_nameNoOptional. The file is checked against the bed of the printer the print started on, which Kiln reads from its own record of the print. Only when Kiln holds no such record does this name (a printer of yours, or a model such as ``bambu_a1``) say whose bed to check. The answer's ``bed_check`` says which printer was used, or that the file could not be checked. Default: "".
filament_typeNoThe print's material, for metadata. Leave it out and Kiln reads the print's own material; when nothing says which, the call is refused (``PRINT_MATERIAL_UNKNOWN``).
source_3mf_pathNoOptional source ``.3mf`` to extract thumbnails + 3D model geometry from (preserves the printer-display preview from the original job). Empty = generate a minimal placeholder. Default: "".
prime_extruder_on_resumeNoDefault ``True``: refuse to emit a 3MF whose embedded gcode lacks the unconditional extruder prime, which guards against a resume that moves through every layer without depositing filament after a cancel/start cycle. Set ``False`` only when the extruder is primed out-of-band. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / printer_name
      Added value: +{
      +  "description": "Optional. The file is checked against the bed of the printer the print started on, which Kiln reads from its own record of the print. Only when Kiln holds no such record does this name (a printer of yours, or a model such as ``bambu_a1``) say whose bed to check. The answer's ``bed_check`` says which printer was used, or that the file could not be checked. Default: \"\".",
      +  "title": "Printer Name",
      +  "type": "string"
      +}
  2. Changed7 schema fields changedv1.5.1
    • changedInput schema / properties / bed_temp / description
      Previous value: -"Default: 65."New value: +"Bed setpoint for the embedded metadata. Leave unset to use the one the gcode body's preamble heats to."
    • changedInput schema / properties / filament_type / description
      Previous value: -"Default: \"PLA\"."New value: +"The print's material, for metadata. Leave it out and Kiln reads the print's own material; when nothing says which, the call is refused (``PRINT_MATERIAL_UNKNOWN``)."
    • addedInput schema / properties / gcode_path / description
      Added value: +"Path to the resume ``.gcode`` file (typically the ``resume_gcode_path`` returned by ``generate_recovery_gcode`` or ``deboss_during_print``)."
    • changedInput schema / properties / hotend_temp / description
      Previous value: -"Default: 220."New value: +"Hotend setpoint for the embedded metadata.  Leave unset to use the one the gcode body's preamble heats to."
    • changedInput schema / properties / output_path / description
      Previous value: -"Default: \"\"."New value: +"Where to write the ``.3mf``.  Empty = replace the ``.gcode`` extension with ``.3mf`` next to the input. Default: \"\"."
    • changedInput schema / properties / prime_extruder_on_resume / description
      Previous value: -"Default: true."New value: +"Default ``True``: refuse to emit a 3MF whose embedded gcode lacks the unconditional extruder prime, which guards against a resume that moves through every layer without depositing filament after a cancel/start cycle.  Set ``False`` only when the extruder is primed out-of-band. Default: true."
    • changedInput schema / properties / source_3mf_path / description
      Previous value: -"Default: \"\"."New value: +"Optional source ``.3mf`` to extract thumbnails + 3D model geometry from (preserves the printer-display preview from the original job). Empty = generate a minimal placeholder. Default: \"\"."
  3. Addedv1.5.0

TDQS

B3.4/5.0
Behavior3/5

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

The description adds one genuinely useful non-schema fact: this is a Pro-gated capability. Annotations already declare the operation is a non-read-only but non-destructive write with no open-world access. Beyond that the sentence says nothing about the bed-compatibility check, refusal conditions, or thumbnail/model embedding, all of which appear only inside parameter descriptions.

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?

A single front-loaded sentence with no filler, so it scans quickly. The clause 'a Bambu printer can pick the print back up from' is slightly convoluted phrasing for what could be stated more directly, which keeps it just short of top marks.

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

Completeness3/5

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

With eight parameters, no output schema, and a mutation (writes a .3mf, potentially overwriting the default output path), the description does not mention overwrite behavior, the returned bed_check field, or failure modes. The rich schema compensates substantially, but an agent relying on the one-liner alone would miss real behavioral risk.

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 all eight parameters carry their own semantics, including defaults, fallbacks, and error codes like PRINT_MATERIAL_UNKNOWN. The description adds no parameter-level meaning beyond the schema, which is the expected baseline of 3 when the schema does the heavy lifting.

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 gives a specific verb (package/wrap) and a specific resource transformation: resume G-code into a 3MF that a Bambu printer can resume from. That is clearer than the sibling 'wrap_gcode_as_3mf', though it never states explicitly how it differs from that near-namesake, so the agent must infer the 'resume' qualifier is the distinguishing factor.

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?

Usage is implied by the wording 'resume G-code' and 'pick the print back up from', which situates it downstream of recovery-gcode generation. There is no explicit when-to-use/when-not statement and no named alternative (e.g. wrap_gcode_as_3mf for non-resume jobs), leaving selection to inference.

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