Skip to main content
Glama

deboss_during_print

Carve a debossed image into the top of an in-flight 3D print by modifying the paused job's G-code, enabling design changes without restarting the print.

Instructions

Carve a debossed image into the top of an in-flight print (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": {
      "image_path": "<image_path>",
      "gcode_path": "<gcode_path>",
      "current_layer": "<current_layer>"
    },
    "name": "deboss_during_print"
  }
}

Input Schema

NameRequiredDescriptionDefault
bevelNoSoften the walls of the cut. Default ``True``. Default: true.
bed_tempNoBed temperature, read the same way.
depth_mmNoDeboss depth in mm. Must be in (0, 5]. Default: 1.2.
thresholdNoHow dark a pixel must be to be cut (0.0-1.0, default 0.35). Default: 0.35.
gcode_pathYesOriginal sliced .gcode of the in-flight job.
image_pathYesPNG/JPG to deboss into the top.
output_dirNoWhere to write the files. Left out, a new session folder is used.
top_layersNoNot used. The layers that can be carved are read from the print's own file.
hotend_tempNoNozzle temperature. Leave unset to use the one the print's own file heats to; a value that differs from it is kept and said in ``warnings``.
image_scaleNo0.7 means the image fills 70% of the top face's shorter side. Default: 0.7.
resume_z_mmNoThe height you believe the print is at. The file's own height for that layer is used; a different number here is said in ``warnings``.
aspect_policyNoHow to fit an image whose shape differs from the top face: ``"auto_crop"`` (default), ``"auto_scale"`` or ``"strict"`` (refuse a mismatch). Default: "auto_crop".
current_layerYes1-indexed layer the printer is paused at. The print continues from this layer; the carve begins above it.
filament_typeNoThe print's material. Leave it out and Kiln reads the print's own; when nothing says which, the call is refused (``PRINT_MATERIAL_UNKNOWN``).
package_as_3mfNoFor a Bambu printer the edited print is packaged as a 3MF and returned as ``resume_3mf_path``; pass ``False`` to leave that field empty and use ``resume_gcode_path``. Other printers get G-code either way. Default: true.
printer_z_knownNoREQUIRED ``True``: your confirmation that the printer has not been power-cycled or re-homed since it paused. Otherwise refused with ``PRINTER_Z_UNKNOWN``. Default: false.
source_3mf_pathNoThe original job's .3mf, for its thumbnail on the printer's screen. Default: "".
accept_subtle_depthNoYes to a carve shallower than reads clearly, when an answer of ``needs_acceptance`` names it. Default: false.
accept_bridge_cascade_riskNoYes to a carve that cuts into the layer where the print bridges across its infill, when an answer of ``needs_acceptance`` names it. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv1.6.0
    • addedInput schema / properties / accept_bridge_cascade_risk
      Added value: +{
      +  "description": "Yes to a carve that cuts into the layer where the print bridges across its infill, when an answer of ``needs_acceptance`` names it. Default: false.",
      +  "title": "Accept Bridge Cascade Risk",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / accept_subtle_depth
      Added value: +{
      +  "description": "Yes to a carve shallower than reads clearly, when an answer of ``needs_acceptance`` names it. Default: false.",
      +  "title": "Accept Subtle Depth",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / aspect_policy / description
      Previous value: -"How to fit a non-matching aspect ratio onto the carve region.  ``\"auto_crop\"`` crops the image to match (default), ``\"auto_scale\"`` letterboxes it, ``\"strict\"`` rejects mismatches. Default: \"auto_crop\"."New value: +"How to fit an image whose shape differs from the top face: ``\"auto_crop\"`` (default), ``\"auto_scale\"`` or ``\"strict\"`` (refuse a mismatch). Default: \"auto_crop\"."
    • changedInput schema / properties / bed_temp / description
      Previous value: -"Bed setpoint for the 3MF metadata, read the same way as ``hotend_temp``."New value: +"Bed temperature, read the same way."
    • changedInput schema / properties / bevel / description
      Previous value: -"Add a 1-layer bevel ring around the deboss for cleaner visual edges.  Default ``True``. Default: true."New value: +"Soften the walls of the cut.  Default ``True``. Default: true."
    • changedInput schema / properties / current_layer / description
      Previous value: -"1-indexed layer the printer is paused at. The deboss starts at ``current_layer + 1`` so the carve never touches the layer currently being laid down."New value: +"1-indexed layer the printer is paused at. The print continues from this layer; the carve begins above it."
    • changedInput schema / properties / filament_type / description
      Previous value: -"The print's material, for 3MF metadata. Leave it out and Kiln reads the print's own material; when nothing says which, the call is refused (``PRINT_MATERIAL_UNKNOWN``)."New value: +"The print's material.  Leave it out and Kiln reads the print's own; when nothing says which, the call is refused (``PRINT_MATERIAL_UNKNOWN``)."
    • changedInput schema / properties / hotend_temp / description
      Previous value: -"Hotend setpoint for the resume 3MF metadata.  Leave unset to use the temperature the print's own file heats to; a value that differs from it is kept and said in ``warnings``."New value: +"Nozzle temperature.  Leave unset to use the one the print's own file heats to; a value that differs from it is kept and said in ``warnings``."
    • changedInput schema / properties / image_scale / description
      Previous value: -"Heightmap-to-bed scale factor — 0.7 means the image fills 70% of the carved region's bounding box. Default: 0.7."New value: +"0.7 means the image fills 70% of the top face's shorter side. Default: 0.7."
    • changedInput schema / properties / output_dir / description
      Previous value: -"Output directory for the carved + resume files.  ``None`` uses the system temp dir."New value: +"Where to write the files.  Left out, a new session folder is used."
    • changedInput schema / properties / package_as_3mf / description
      Previous value: -"When ``True`` (default), the tool also wraps the resume gcode as a Bambu resume-mode 3MF and returns its path as ``resume_3mf_path``.  Disable for non-Bambu targets or when you want to inspect the carved gcode before packaging.  On failure the error is surfaced via ``warnings`` — the .gcode path is still returned so the caller can recover. Default: true."New value: +"For a Bambu printer the edited print is packaged as a 3MF and returned as ``resume_3mf_path``; pass ``False`` to leave that field empty and use ``resume_gcode_path``.  Other printers get G-code either way. Default: true."
    • changedInput schema / properties / printer_z_known / description
      Previous value: -"REQUIRED ``True``.  Same safety gate as ``generate_recovery_gcode`` — if the printer's Z isn't trustworthy, refuses with ``PRINTER_Z_UNKNOWN``. Default: false."New value: +"REQUIRED ``True``: your confirmation that the printer has not been power-cycled or re-homed since it paused.  Otherwise refused with ``PRINTER_Z_UNKNOWN``. Default: false."
    • changedInput schema / properties / resume_z_mm / description
      Previous value: -"Explicit resume Z height in mm.  ``None`` means the resume scanner derives it from the carved G-code at ``current_layer + 1``."New value: +"The height you believe the print is at.  The file's own height for that layer is used; a different number here is said in ``warnings``."
    • changedInput schema / properties / source_3mf_path / description
      Previous value: -"Passed through to the 3MF wrapper. Supplying the original job's .3mf preserves its thumbnail and 3D model preview on the printer's display. Default: \"\"."New value: +"The original job's .3mf, for its thumbnail on the printer's screen. Default: \"\"."
    • changedInput schema / properties / threshold / description
      Previous value: -"Heightmap value above which a pixel is treated as carved-away (0.0–1.0, default 0.35). Default: 0.35."New value: +"How dark a pixel must be to be cut (0.0-1.0, default 0.35). Default: 0.35."
    • changedInput schema / properties / top_layers / description
      Previous value: -"Reserved override for the top-layer count. ``None`` (default) uses the value detected from ``analyze_top_region`` (TYPE:Top tags or solid-infill inference)."New value: +"Not used.  The layers that can be carved are read from the print's own file."
  2. Changed17 schema fields changedv1.5.1
    • changedInput schema / properties / aspect_policy / description
      Previous value: -"Default: \"auto_crop\"."New value: +"How to fit a non-matching aspect ratio onto the carve region.  ``\"auto_crop\"`` crops the image to match (default), ``\"auto_scale\"`` letterboxes it, ``\"strict\"`` rejects mismatches. Default: \"auto_crop\"."
    • changedInput schema / properties / bed_temp / description
      Previous value: -"Default: 65."New value: +"Bed setpoint for the 3MF metadata, read the same way as ``hotend_temp``."
    • changedInput schema / properties / bevel / description
      Previous value: -"Default: true."New value: +"Add a 1-layer bevel ring around the deboss for cleaner visual edges.  Default ``True``. Default: true."
    • addedInput schema / properties / current_layer / description
      Added value: +"1-indexed layer the printer is paused at. The deboss starts at ``current_layer + 1`` so the carve never touches the layer currently being laid down."
    • changedInput schema / properties / depth_mm / description
      Previous value: -"Default: 1.2."New value: +"Deboss depth in mm.  Must be in (0, 5]. Default: 1.2."
    • changedInput schema / properties / filament_type / description
      Previous value: -"Default: \"PLA\"."New value: +"The print's material, for 3MF 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: +"Original sliced .gcode of the in-flight job."
    • changedInput schema / properties / hotend_temp / description
      Previous value: -"Default: 220."New value: +"Hotend setpoint for the resume 3MF metadata.  Leave unset to use the temperature the print's own file heats to; a value that differs from it is kept and said in ``warnings``."
    • addedInput schema / properties / image_path / description
      Added value: +"PNG/JPG to deboss into the top."
    • changedInput schema / properties / image_scale / description
      Previous value: -"Default: 0.7."New value: +"Heightmap-to-bed scale factor — 0.7 means the image fills 70% of the carved region's bounding box. Default: 0.7."
    • addedInput schema / properties / output_dir / description
      Added value: +"Output directory for the carved + resume files.  ``None`` uses the system temp dir."
    • changedInput schema / properties / package_as_3mf / description
      Previous value: -"Default: true."New value: +"When ``True`` (default), the tool also wraps the resume gcode as a Bambu resume-mode 3MF and returns its path as ``resume_3mf_path``.  Disable for non-Bambu targets or when you want to inspect the carved gcode before packaging.  On failure the error is surfaced via ``warnings`` — the .gcode path is still returned so the caller can recover. Default: true."
    • changedInput schema / properties / printer_z_known / description
      Previous value: -"Default: false."New value: +"REQUIRED ``True``.  Same safety gate as ``generate_recovery_gcode`` — if the printer's Z isn't trustworthy, refuses with ``PRINTER_Z_UNKNOWN``. Default: false."
    • addedInput schema / properties / resume_z_mm / description
      Added value: +"Explicit resume Z height in mm.  ``None`` means the resume scanner derives it from the carved G-code at ``current_layer + 1``."
    • changedInput schema / properties / source_3mf_path / description
      Previous value: -"Default: \"\"."New value: +"Passed through to the 3MF wrapper. Supplying the original job's .3mf preserves its thumbnail and 3D model preview on the printer's display. Default: \"\"."
    • changedInput schema / properties / threshold / description
      Previous value: -"Default: 0.35."New value: +"Heightmap value above which a pixel is treated as carved-away (0.0–1.0, default 0.35). Default: 0.35."
    • addedInput schema / properties / top_layers / description
      Added value: +"Reserved override for the top-layer count. ``None`` (default) uses the value detected from ``analyze_top_region`` (TYPE:Top tags or solid-infill inference)."
  3. Addedv1.5.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, and 'Carve' is consistent with a write operation. Beyond that the description adds nothing: the refusal paths (PRINTER_Z_UNKNOWN, PRINT_MATERIAL_UNKNOWN), the needs_acceptance flow, and the warnings mechanism are only documented in the schema, not the description.

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 zero filler and no repetition of structured fields. It is efficient, though its brevity verges on under-specification for a tool of this complexity.

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

Completeness2/5

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

With 19 parameters, multiple refusal and acceptance branches, and no output schema, the description should at least signal the paused-print precondition and the confirmation/acceptance gates. Instead it says nothing about them, leaving an agent to discover critical safety behavior only by opening the schema.

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% across 19 parameters, so per-parameter meaning is fully carried by the schema and the description cannot add more without restating it. The one-sentence description contributes no parameter-level semantics, which is the expected baseline here.

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?

States a specific verb and resource: 'Carve a debossed image into the top of an in-flight print.' An agent can tell this modifies a paused job rather than slicing a new one. It does not distinguish itself from near-siblings like decorate_during_print or add_feature_during_print, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The phrase 'in-flight print' implies the job must be paused, but the description gives no explicit when-to-use, when-not, or alternative routing despite several closely named siblings that also modify in-flight prints. Guidance is left entirely to the schema.

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