Skip to main content
Glama

repair_mesh

Fix degenerate triangles and bad normals in STL meshes. Removes zero-area triangles and recomputes face normals for reliable slicing.

Instructions

Basic mesh repair: fix degenerate triangles and bad normals (fast, safe).

        For deeper repair with hole closing and boundary edge fixes, use
        ``repair_mesh_advanced``. Removes zero-area triangles and recomputes
        face normals.  Use this on meshes from AI generation providers before
        slicing.

        :param file_path: Path to the STL file to repair.
        :param output_path: Output path.  Defaults to overwriting the input.
        :returns: Dict with repair statistics.
        

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
output_pathNo
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool is 'fast, safe', removes zero-area triangles, and defaults to overwriting the input file. This covers key behavioral aspects, though it could mention permissions or potential side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a purpose sentence, an alternative mention, a brief action list, a usage recommendation, and parameter docs. It is front-loaded with key information and contains no fluff.

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?

Given the lack of annotations and output schema, the description covers the essential aspects: purpose, usage guidance, parameters, return value, and default behavior. It is complete for a simple repair tool, though it could mention any file size or complexity limitations.

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?

The description includes clear documentation for both parameters: file_path is explained as 'Path to the STL file to repair' and output_path as 'Output path. Defaults to overwriting the input.' Since the schema has no descriptions (0% coverage), this adds essential meaning beyond the schema's type information.

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 clearly states the tool's purpose: 'Basic mesh repair: fix degenerate triangles and bad normals' and explicitly distinguishes it from the sibling tool 'repair_mesh_advanced' which handles deeper repairs. This provides a specific verb and resource with clear differentiation.

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?

The description recommends using this tool 'on meshes from AI generation providers before slicing' and points to 'repair_mesh_advanced' for deeper repair needs. This gives clear context for when to use and when to use an alternative.

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