Skip to main content
Glama

rotate_model

Rotate STL or 3MF models by specified X, Y, or Z angles before slicing to improve print quality and reduce wobble or ringing artifacts.

Instructions

Rotate a 3D model file (STL or 3MF) by specified angles before slicing.

Useful for improving print quality — rotating a tall narrow part 45° around
the Z axis can reduce toolhead-induced wobble and ringing artifacts.

Args:
    input_path: Path to the STL or 3MF file to rotate.
    rotation_z: Rotation around Z axis in degrees (most common — rotates
        on the build plate).
    rotation_x: Rotation around X axis in degrees.
    rotation_y: Rotation around Y axis in degrees.
    output_path: Where to save the rotated file.  Defaults to
        ``<input>_rotated.<ext>``.

Returns dict with ``output_path`` (path to rotated file) and
``rotations_applied``; ``step_path`` is the turned CAD when the part's
CAD file sat beside it.

Pair with ``reslice_with_overrides`` to re-slice the rotated model with
adjusted settings (e.g., stronger brim after rotation).

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": {
      "input_path": "<input_path>"
    },
    "name": "rotate_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_pathYesPath to the STL or 3MF file to rotate.
rotation_xNoRotation around X axis in degrees. Default: 0.0.
rotation_yNoRotation around Y axis in degrees. Default: 0.0.
rotation_zNoRotation around Z axis in degrees (most common — rotates on the build plate). Default: 0.0.
output_pathNoWhere to save the rotated file. Defaults to ``<input>_rotated.<ext>``.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.5.1
    • addedInput schema / properties / input_path / description
      Added value: +"Path to the STL or 3MF file to rotate."
    • addedInput schema / properties / output_path / description
      Added value: +"Where to save the rotated file.  Defaults to ``<input>_rotated.<ext>``."
    • changedInput schema / properties / rotation_x / description
      Previous value: -"Default: 0.0."New value: +"Rotation around X axis in degrees. Default: 0.0."
    • changedInput schema / properties / rotation_y / description
      Previous value: -"Default: 0.0."New value: +"Rotation around Y axis in degrees. Default: 0.0."
    • changedInput schema / properties / rotation_z / description
      Previous value: -"Default: 0.0."New value: +"Rotation around Z axis in degrees (most common — rotates on the build plate). Default: 0.0."
  2. Changed7 schema fields changedv1.5.0
    • removedInput schema / properties / output_path / default
      Removed value: -null
    • removedInput schema / properties / rotation_x / default
      Removed value: -0
    • addedInput schema / properties / rotation_x / description
      Added value: +"Default: 0.0."
    • removedInput schema / properties / rotation_y / default
      Removed value: -0
    • addedInput schema / properties / rotation_y / description
      Added value: +"Default: 0.0."
    • removedInput schema / properties / rotation_z / default
      Removed value: -0
    • addedInput schema / properties / rotation_z / description
      Added value: +"Default: 0.0."
  3. Changed1 schema field changedv1.3.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "rotate_modelDictOutput",
      -  "type": "object"
      -}New value: +null
  4. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description usefully clarifies that rotation writes to a separate output file (default '<input>_rotated.<ext>') rather than mutating the input, plus a notable side effect: opening an interactive 3D stage with automatic mesh decimation. However, the returns sentence is garbled ('step_path is the turned CAD when the part's CAD file sat beside it'), leaving the actual return payload partly unclear, so the added value is real but not fully delivered.

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 core purpose and rationale are front-loaded and earn their place, and the interactive-stage paragraph carries unique information. But the Args block duplicates the input schema line-for-line, and the Returns sentence is muddled, so the text is longer than it needs to be without adding proportional value.

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 non-destructive file-transforming tool with no output schema, the description covers the essential gaps: where the file goes, what the defaults are, the return payload, a downstream pairing, and the UI side effect with decimation. Only the confusing step_path/returns clause and the absence of any error or format caveats keep it from being fully complete.

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 schema already documents every parameter, including the 'most common — rotates on the build plate' note for rotation_z and the output_path default. The description's Args block restates the schema almost verbatim and adds no units, ranges, or interaction semantics (e.g. axis order) beyond it.

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 opening sentence gives a precise verb and resource ('Rotate a 3D model file (STL or 3MF) by specified angles') plus the pipeline stage ('before slicing'), which distinguishes it from mirroring or rescaling at a glance. It never explicitly contrasts itself with the close sibling auto_orient_model, so an agent must reason about rotation-vs-auto-orient on its own.

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?

It supplies a concrete motivating scenario (rotating a tall narrow part 45° around Z to reduce wobble/ringing) and a follow-on recommendation ('Pair with reslice_with_overrides'). It stops short of stating when not to use it, e.g. when automatic orientation should be preferred, so there is no true exclusion 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