Skip to main content
Glama

rescale_model

Destructive

Rescale STL models to exact dimensions or scale factors so prints fit build volumes, using uniform or per-axis sizing with in-place updates.

Instructions

Rescale an STL model to meet dimensional targets.

        Useful when a generated model is the wrong size for the printer's
        build volume or doesn't match the desired dimensions.

        **Uniform scaling** -- provide exactly ONE of:

        - ``target_height_mm``: Scale so Z-axis equals this value.
        - ``scale_factor``: Uniform multiplier (2.0 = double size).
        - ``max_dimension_mm``: Scale down so largest axis fits this limit.
          It never enlarges.
        - ``longest_side_mm``: Scale up or down so the longest side is
          exactly this many mm.  Use ``target_height_mm`` for a height
          once the model stands the way it prints.

        **Per-axis scaling** -- provide ``scale_x``, ``scale_y``, and/or
        ``scale_z``.  Omitted axes default to 1.0 (no change).

        Cannot combine uniform and per-axis options.

        Args:
            file_path: Path to the STL file to rescale (modified in-place).
            target_height_mm: Desired Z-axis height in mm.
            scale_factor: Uniform scale multiplier.
            max_dimension_mm: Maximum dimension on any axis.
            scale_x: Per-axis X scale factor.
            scale_y: Per-axis Y scale factor.
            scale_z: Per-axis Z scale factor.
            longest_side_mm: The longest side, in mm, up or down.

        A note of where the model came from (``kiln.arrival``) follows the
        rescaled file; any option but ``max_dimension_mm`` marks its size
        as one the person chose.

        A part with its CAD file beside it stays a CAD part through an
        even resize: the reply's ``step_path`` is the resized CAD.  A
        per-axis stretch is made on the mesh only, and ``cad_note`` says
        so.

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": {
      "file_path": "<file_path>"
    },
    "name": "rescale_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
scale_xNoPer-axis X scale factor.
scale_yNoPer-axis Y scale factor.
scale_zNoPer-axis Z scale factor.
file_pathYesPath to the STL file to rescale (modified in-place).
scale_factorNoUniform scale multiplier.
longest_side_mmNoThe longest side, in mm, up or down.
max_dimension_mmNoMaximum dimension on any axis.
target_height_mmNoDesired Z-axis height in mm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / longest_side_mm
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The longest side, in mm, up or down.",
      +  "title": "Longest Side Mm"
      +}
  2. Changed7 schema fields changedv1.5.1
    • addedInput schema / properties / file_path / description
      Added value: +"Path to the STL file to rescale (modified in-place)."
    • addedInput schema / properties / max_dimension_mm / description
      Added value: +"Maximum dimension on any axis."
    • addedInput schema / properties / scale_factor / description
      Added value: +"Uniform scale multiplier."
    • addedInput schema / properties / scale_x / description
      Added value: +"Per-axis X scale factor."
    • addedInput schema / properties / scale_y / description
      Added value: +"Per-axis Y scale factor."
    • addedInput schema / properties / scale_z / description
      Added value: +"Per-axis Z scale factor."
    • addedInput schema / properties / target_height_mm / description
      Added value: +"Desired Z-axis height in mm."
  3. Changed6 schema fields changedv1.5.0
    • removedInput schema / properties / max_dimension_mm / default
      Removed value: -null
    • removedInput schema / properties / scale_factor / default
      Removed value: -null
    • removedInput schema / properties / scale_x / default
      Removed value: -null
    • removedInput schema / properties / scale_y / default
      Removed value: -null
    • removedInput schema / properties / scale_z / default
      Removed value: -null
    • removedInput schema / properties / target_height_mm / default
      Removed value: -null
  4. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations flag destructiveHint=true and readOnlyHint=false; the description supplies the concrete consequence — 'file_path ... modified in-place' — plus non-obvious semantics such as max_dimension_mm never enlarging, omitting axes defaulting to 1.0, and per-axis stretches breaking CAD linkage (cad_note). The inline 3D stage discussion, including automatic mesh decimation and the PNG-preview floor, is genuine behavioral context not present in annotations. Minor gap: no mention of failure modes (non-manifold meshes, unwritable paths) or how a CAD-part rescale differs in reversibility.

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 option groups are bolded and front-loaded, which is good structure, but the 'Args:' block restates all eight parameters verbatim from a schema that already has 100% description coverage — pure duplication that pushes the text longer than needed. The trailing provenance and CAD paragraphs are dense prose that could be tightened without losing content.

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 eight-parameter mutation tool with no output schema, the definition covers invocation rules, side effects on the file, side effects on filename/provenance, and the return payload's step_path and cad_note fields. What's missing is error behavior and whether the original mesh geometry is recoverable after a per-axis stretch — meaningful for a destructive tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even at 100% schema coverage, the description adds substantial meaning the schema cannot express: which options are alternatives to each other, that exactly ONE uniform option is permitted, that longest_side_mm uses the model's longest side up or down, that omitted per-axis values default to 1.0, and that uniform and per-axis modes cannot be combined. It also documents return-side fields (step_path, cad_note, kiln.arrival) that the input schema doesn't cover.

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 — 'Rescale an STL model to meet dimensional targets' — and immediately identifies the problem it solves (wrong size for build volume, mismatch with desired dimensions). This cleanly distinguishes it from neighboring tools like rotate_model, simplify_mesh_model, or center_model_on_bed, which change a model without changing its scale.

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?

Gives a clear trigger condition ('when a generated model is the wrong size for the printer's build volume or doesn't match the desired dimensions') and, more usefully, spells out the mutual-exclusion rules between option families so an agent knows which invocation shape is legal. It never names a sibling tool as an alternative for a related need, so it falls short of the top score.

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