Skip to main content
Glama

optimize_print_orientation

Auto-rotate an STL mesh to reduce overhangs and improve bed contact by evaluating multiple orientations and applying the highest printability score, then flatten on the build plate.

Instructions

Auto-rotate a mesh to minimize overhangs and maximize bed contact.

        Tests multiple candidate orientations and picks the one with the
        best printability score.  Re-orients the mesh and places it flat
        on the build plate (z_min = 0).

        :param file_path: Path to the STL file.
        :param output_path: Output path.  Defaults to overwriting the input.
        :returns: Dict with rotation angles, overhang stats, and new dimensions.

INLINE 3D STAGE: on success this tool also 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
output_pathNo
Install Server

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full transparency burden and exceeds it. It discloses the optimization loop, the z_min=0 placement, the default overwrite behavior, the side effect of opening an interactive 3D stage, automatic decimation of oversized meshes, and explicitly notes that the PNG preview is secondary. This is far more than a basic safety profile.

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 description is well-structured with a clear purpose, a brief algorithm outline, a docstring-style parameter section, and a separate note about the inline 3D stage. Each part adds unique value, though the final line about the PNG preview is slightly cryptic and could be tightened. Overall it is appropriately sized without wasteful repetition.

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

Completeness5/5

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

Despite having no output schema and minimal annotations, the description provides a complete picture: it explains the returned dict contents (rotation angles, overhang stats, new dimensions), the side effects (3D stage, decimation), and the default file overwrite behavior. For a mesh-operation tool with two simple parameters, this level of detail is sufficient for correct selection and invocation.

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?

Schema coverage is 0% and there are only two parameters, so the description must compensate. It does so fully: file_path is described as 'Path to the STL file,' and output_path includes the crucial default behavior ('Defaults to overwriting the input'). It also documents the return value, adding semantic meaning beyond the bare schema.

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?

The description opens with a specific active verb and outcome: 'Auto-rotate a mesh to minimize overhangs and maximize bed contact.' It then explains the algorithm ('Tests multiple candidate orientations and picks the one with the best printability score') and the final disposition ('Re-orients the mesh and places it flat on the build plate (z_min = 0)'), clearly differentiating it from generic rotation or orientation-checking siblings.

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?

The description implies use for automatically optimizing a mesh's orientation before printing, but it never explicitly states when to use this tool versus alternatives like auto_orient_model or rotate_model. No prerequisites, exclusions, or alternative recommendations are given, leaving the selection decision to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/codeofaxel/kiln'

If you have feedback or need assistance with the MCP directory API, please join our Discord server