Skip to main content
Glama

mirror_mesh_model

Destructive

Reflect an STL mesh along the X, Y, or Z axis to create a mirrored copy, with triangle winding reversed so normals stay correct. Save to a new path or overwrite the original.

Instructions

Mirror (reflect) a mesh along an axis.

        Creates a mirror image by negating coordinates on the chosen axis
        and reversing triangle winding order to preserve correct normals.

        :param file_path: Path to the STL file.
        :param axis: Axis to mirror ("x", "y", or "z", default "x").
        :param output_path: Output path (defaults to overwriting input).
        :returns: Dict with mirror info; ``step_path`` is the mirrored
            CAD when the part's CAD file sat beside it.

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": "mirror_mesh_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
axisNoAxis to mirror ("x", "y", or "z", default "x"). Default: "x".
file_pathYesPath to the STL file.
output_pathNoOutput path (defaults to overwriting input). Default: "".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.5.1
    • changedInput schema / properties / axis / description
      Previous value: -"Default: \"x\"."New value: +"Axis to mirror (\"x\", \"y\", or \"z\", default \"x\"). Default: \"x\"."
    • addedInput schema / properties / file_path / description
      Added value: +"Path to the STL file."
    • changedInput schema / properties / output_path / description
      Previous value: -"Default: \"\"."New value: +"Output path (defaults to overwriting input). Default: \"\"."
  2. Changed4 schema fields changedv1.5.0
    • removedInput schema / properties / axis / default
      Removed value: -"x"
    • addedInput schema / properties / axis / description
      Added value: +"Default: \"x\"."
    • removedInput schema / properties / output_path / default
      Removed value: -""
    • addedInput schema / properties / output_path / description
      Added value: +"Default: \"\"."
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

The annotations declare destructiveHint=true, and the description earns credit for explaining exactly why: output_path defaults to overwriting the input file. It also discloses winding-order reversal for correct normals and the on-success inline 3D stage with automatic decimation for oversized meshes — behavior an agent could not infer from the annotations. It stops short of covering failure modes or the hosted-vs-panel distinction in any depth.

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 purpose sentence is front-loaded and the winding-order rationale earns its place, but the Sphinx-style :param/:returns block duplicates schema content verbatim and the stage paragraph is prose-heavy. It reads as a docstring pasted into a tool description rather than a tightened agent-facing spec.

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?

With no output schema, the :returns line usefully describes the returned dict and the conditional step_path field, which is the key gap it needed to fill. Combined with the overwrite-default warning and the stage behavior, an agent has enough to call this correctly; error handling and decimation thresholds remain unstated.

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% and the description merely restates the same three parameters (file_path, axis, output_path) with the same default notes. No additional semantics, formats, or constraints are added beyond the schema, so the baseline 3 applies.

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?

"Mirror (reflect) a mesh along an axis" states a specific verb and resource, and the follow-up sentence explains the geometric operation. It never names a sibling (e.g. rotate_model, rescale_model) to disambiguate when a transform vs. a reflection is appropriate, so it lands at 4 rather than 5.

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 only implied by the operation itself; there is no explicit statement of when to prefer mirroring over rotating or rescaling a model, nor any preconditions. The note that CAD output is produced only when the source CAD file sits beside the STL is the one piece of conditional guidance present.

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