Skip to main content
Glama

validate_and_prepare_mesh

Validates, repairs, analyzes, and prepares a 3D mesh for printing. Chains validation, auto-repair, printability scoring, and build volume checks into a single quality gate.

Instructions

Full validation pipeline: validate, repair, analyze, and prepare a mesh for printing.

        **See also:** ``validate_and_prepare`` for a more comprehensive
        10-step pipeline (format, mesh, scale, repair, printability,
        structural, bed-fit, material, and cost estimation).

        Runs every AI-generated mesh through Kiln's engineering review before
        it reaches the slicer or printer.  Chains validation → auto-repair →
        printability analysis → build volume check into a single quality gate.

        **Use this instead of ``validate_generated_mesh`` when you want the
        full pipeline** — repair, printability scoring, build volume checks,
        and actionable recommendations.

        The mesh file may be modified in place if ``auto_repair`` or
        ``auto_scale`` is enabled.  The response includes the final file
        path (which may differ from the input if repairs created a new file).

        Args:
            file_path: Path to an STL, OBJ, or GLB file.
            material: Filament material for printability analysis (default PLA).
            nozzle_diameter: Printer nozzle diameter in mm (default 0.4).
            layer_height: Print layer height in mm (default 0.2).
            build_volume_x: Optional X build dimension (mm).
            build_volume_y: Optional Y build dimension (mm).
            build_volume_z: Optional Z build dimension (mm).
            printer_id: Optional supported printer model id.  When
                provided, printer intelligence supplies the build volume.
            auto_repair: Auto-repair non-manifold meshes (default True).
            auto_scale: Auto-scale if mesh exceeds build volume (default False).
            min_printability_score: Minimum score (0-100) to pass (default 40).
        

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
materialNoPLA
file_pathYes
auto_scaleNo
printer_idNo
auto_repairNo
layer_heightNo
build_volume_xNo
build_volume_yNo
build_volume_zNo
nozzle_diameterNo
min_printability_scoreNo
Behavior4/5

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

Since no annotations are provided, the description must disclose behaviors. It notes that 'The mesh file may be modified in place if auto_repair or auto_scale is enabled' and that the response file path may differ. This covers key side effects, though it could mention additional behaviors like error handling or temporary file creation.

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 lead paragraph, a 'See also' notice, usage guidance, side-effect note, and a labeled Args section. It is moderately concise without redundancy, though the Args section could be slightly more compact. Overall, every sentence adds 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?

Given 11 parameters and no output schema, the description covers all parameters with defaults, explains the pipeline chain, and distinguishes from siblings. It could be more complete by describing the response structure (e.g., what the printability score looks like), but the provided information is sufficient for an agent to understand and use the 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?

With schema description coverage at 0%, the description fully compensates by providing detailed explanations for each parameter. For example, 'file_path: Path to an STL, OBJ, or GLB file' and 'printer_id: Optional supported printer model id. When provided, printer intelligence supplies the build volume.' This adds significant meaning beyond the raw 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 'Full validation pipeline: validate, repair, analyze, and prepare a mesh for printing,' which clearly states the tool's verb and resource. It distinguishes itself from siblings by explicitly noting when to use this instead of 'validate_generated_mesh' and contrasting with the more comprehensive 'validate_and_prepare' pipeline.

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 provides explicit usage guidance: 'Use this instead of validate_generated_mesh when you want the full pipeline — repair, printability scoring, build volume checks, and actionable recommendations.' It also references a more comprehensive alternative (validate_and_prepare) for a broader 10-step pipeline, helping the agent choose the right tool.

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