Skip to main content
Glama

repair_mesh

Repair 3D mesh defects such as degenerate triangles, bad normals, and open holes. Use the default pass for fast safe fixes or enable close_holes for watertight results.

Instructions

Repair mesh defects: degenerate triangles, bad normals, open holes.

        The default pass is fast and safe: removes zero-area triangles and
        recomputes face normals.  Use it on meshes from AI generation
        providers before slicing.  Pass ``close_holes=True`` for the deep
        pass, which additionally finds boundary edges (edges shared by only
        one triangle) and closes small holes via fan triangulation — use it
        when the mesh is not watertight.

        :param file_path: Path to the STL file to repair.
        :param output_path: Output path.  Defaults to overwriting the input.
        :param close_holes: Also close open holes and fix boundary edges
            (slower; default False).
        :returns: Dict with repair statistics.
        

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
close_holesNo
output_pathNo
Behavior4/5

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

Discloses default pass behavior (fast, safe, removes zero-area triangles, recomputes normals) and deep pass (finds boundary edges, closes holes via fan triangulation). Mentions overwrite default. Lacks details on error handling or file size limits but adequate given no annotations.

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?

Well-structured with two paragraphs, first sentence captures purpose. Slightly verbose with docstring-style parameter descriptions but not excessive.

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?

Covers purpose, usage, parameters, behavioral details, and return type (dict with repair statistics). No output schema, but description provides sufficient context for a 3-parameter 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?

Schema coverage 0%, but description adds full meaning for all three parameters: file_path (STL path), output_path (output path, default overwrite), close_holes (boolean, deep pass). Complements schema effectively.

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?

Description clearly states it repairs mesh defects (degenerate triangles, bad normals, open holes), specifies two passes (default and deep), and distinguishes from siblings by focusing on specific repair actions.

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

Usage Guidelines5/5

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

Explicitly advises using on meshes from AI generation before slicing, and when to pass close_holes=True for non-watertight meshes. Provides clear when-to-use guidance.

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

Install Server

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