Skip to main content
Glama

analyze_mid_print_impact

Read-only

Checks a mid-print edit's carved G-code to show which layers will actually change before commit, flagging depth mismatches and per-layer carve impact.

Instructions

Pre-commit truth gate: which layers will actually change (Pro).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_mid_print_impact"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idNoSession key from a prior ``decorate_during_print`` / ``add_feature_during_print`` call. Resolved under ~/.kiln/mid_print_sessions/ and the legacy tempdir fallbacks that ``get_print_before_edit`` uses. Default: "".
carved_gcode_pathNoExplicit path to a carved gcode, bypassing session lookup entirely. Useful for analysing a carved artifact that isn't in a standard session directory. Default: "".
engine_output_dirNoDirect path to the session directory. Higher priority if both supplied. Default: "".
requested_depth_mmNoThe decoration depth the originating tool call asked for. Used to compute the ``depth_gap_mm`` and fire ``DEPTH_SHY`` / ``DEPTH_OVER`` when the file carves less or more than that by over half a layer. Pass 0.0 (default) to skip depth warnings — the per-layer breakdown + carve metrics still populate. Default: 0.0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • changedInput schema / properties / requested_depth_mm / description
      Previous value: -"The decoration depth the originating tool call asked for.  Used to compute the ``depth_gap_mm`` and fire ``DEPTH_SHY`` when the achievable depth falls short.  Pass 0.0 (default) to skip depth warnings — the per-layer breakdown + carve metrics still populate. Default: 0.0."New value: +"The decoration depth the originating tool call asked for.  Used to compute the ``depth_gap_mm`` and fire ``DEPTH_SHY`` / ``DEPTH_OVER`` when the file carves less or more than that by over half a layer.  Pass 0.0 (default) to skip depth warnings — the per-layer breakdown + carve metrics still populate. Default: 0.0."
  2. Changed4 schema fields changedv1.5.1
    • changedInput schema / properties / carved_gcode_path / description
      Previous value: -"Default: \"\"."New value: +"Explicit path to a carved gcode, bypassing session lookup entirely.  Useful for analysing a carved artifact that isn't in a standard session directory. Default: \"\"."
    • changedInput schema / properties / engine_output_dir / description
      Previous value: -"Default: \"\"."New value: +"Direct path to the session directory.  Higher priority if both supplied. Default: \"\"."
    • changedInput schema / properties / requested_depth_mm / description
      Previous value: -"Default: 0.0."New value: +"The decoration depth the originating tool call asked for.  Used to compute the ``depth_gap_mm`` and fire ``DEPTH_SHY`` when the achievable depth falls short.  Pass 0.0 (default) to skip depth warnings — the per-layer breakdown + carve metrics still populate. Default: 0.0."
    • changedInput schema / properties / session_id / description
      Previous value: -"Default: \"\"."New value: +"Session key from a prior ``decorate_during_print`` / ``add_feature_during_print`` call.  Resolved under ~/.kiln/mid_print_sessions/ and the legacy tempdir fallbacks that ``get_print_before_edit`` uses. Default: \"\"."
  3. Addedv1.5.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already establish that the tool is read-only, non-destructive, and closed-world. The description adds that it reports actual rather than merely requested layer changes, but gives no further behavioral detail such as carve metrics, depth warnings, or the practical meaning of “Pro.”

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 single short statement is front-loaded with the pre-commit purpose and contains no repetition. Its brevity is mostly effective, although the jargon “truth gate” and dangling “(Pro)” tag contribute less than operational wording would.

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?

Together with the rich input schema and safety annotations, the description is sufficient for basic selection and invocation. Because there is no output schema, however, the lack of any description of the per-layer breakdown, carve metrics, or DEPTH_SHY/DEPTH_OVER diagnostics leaves a notable completeness gap.

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%, including source-selection precedence and the optional depth-warning behavior, so the baseline is 3. The description itself adds no parameter semantics beyond those structured fields.

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 identifies a specialized purpose: verifying which layers will actually change before committing a mid-print modification. “Truth gate” is somewhat slogan-like and “(Pro)” is unexplained, but the layer-impact focus distinguishes the tool's general role from the broader print-analysis siblings.

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

Usage Guidelines4/5

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

“Pre-commit” provides explicit timing, and “truth gate” conveys that the analysis should inform a go/no-go decision. It does not identify prerequisites, when not to use it, or an alternative for other kinds of print analysis.

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