Skip to main content
Glama

validate_and_prepare

Run a full pre-print validation pipeline on any 3D model: format and mesh checks, watertight repair, printability, bed fit and material risks, returning a pass/fail verdict with fixes.

Instructions

Comprehensive validation pipeline for any 3D model before printing.

        Runs format check, mesh analysis, watertight check, auto-repair,
        printability analysis, structural assessment, bed-fit check, and
        (optionally) material-specific checks.
        Returns a detailed pass/fail report with actionable recommendations
        and the printability verdict.

        Works with any model — AI-generated, downloaded from marketplaces,
        or created in CAD.  Every model passes Kiln's engineering review
        before it touches your printer.

        Each step is resilient — if a step's underlying module is unavailable
        the step is skipped and the pipeline continues.

        :param input_path: Path to a 3D model file (.stl, .3mf, .obj, .step, .glb).
        :param printer_id: Optional printer model ID (e.g. "bambu_a1") for
            bed-fit checking.  If empty, bed-fit check is skipped.
        :param material: Optional material name (e.g. "pla", "petg", "abs",
            "asa", "tpu").  When provided, adds a material-specific check
            for known print-quality risks.  If empty, material check is skipped.
        :returns: Dict with pass/fail status, per-check details, recommendations,
            ``printability_verdict`` and its sentence
            (analyze_printability's, for ``material`` and ``printer_id``;
            ``None`` when the analysis could not run), and
            ``readiness_score`` (0-100, the tally of the checks) with its
            ``score_breakdown``.  Tell the person the verdict.
        

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": {
      "input_path": "<input_path>"
    },
    "name": "validate_and_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
materialNoOptional material name (e.g. "pla", "petg", "abs", "asa", "tpu"). When provided, adds a material-specific check for known print-quality risks. If empty, material check is skipped. Default: "".
input_pathYesPath to a 3D model file (.stl, .3mf, .obj, .step, .glb).
printer_idNoOptional printer model ID (e.g. "bambu_a1") for bed-fit checking. If empty, bed-fit check is skipped. Default: "".

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.5.1
    • addedInput schema / properties / input_path / description
      Added value: +"Path to a 3D model file (.stl, .3mf, .obj, .step, .glb)."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"\"."New value: +"Optional material name (e.g. \"pla\", \"petg\", \"abs\", \"asa\", \"tpu\").  When provided, adds a material-specific check for known print-quality risks.  If empty, material check is skipped. Default: \"\"."
    • changedInput schema / properties / printer_id / description
      Previous value: -"Default: \"\"."New value: +"Optional printer model ID (e.g. \"bambu_a1\") for bed-fit checking.  If empty, bed-fit check is skipped. Default: \"\"."
  2. Changed4 schema fields changedv1.5.0
    • removedInput schema / properties / material / default
      Removed value: -""
    • addedInput schema / properties / material / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / printer_id / default
      Removed value: -""
    • addedInput schema / properties / printer_id / 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?

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), it discloses genuinely useful behavior: each step is resilient and skipped if its module is unavailable, the pipeline runs auto-repair, and it returns a pass/fail report with verdict and a 0-100 readiness score. The one notable omission is whether auto-repair writes a modified file or only reports, which matters given destructiveHint=false.

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 and step list are front-loaded and the param/return notes are orderly, but there is promotional filler — 'Works with any model — AI-generated, downloaded from marketplaces, or created in CAD' and 'Every model passes Kiln's engineering review before it touches your printer' — that does not help an agent decide or invoke.

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 annotations and an output schema present, the description covers the pipeline composition, resilience behavior, and optional-check conditions well. The main residual gap is the side-effect question (does auto-repair modify or write files?), which is not resolved by the non-destructive annotation alone.

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's parameter notes (accepted file extensions, printer-id and material examples, skip-if-empty behavior) restate what the schema already documents. It adds no syntax or format detail beyond the structured fields, 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?

The description states a specific verb and resource ('validation pipeline for any 3D model before printing') and enumerates exactly which checks run (format, mesh, watertight, auto-repair, printability, structural, bed-fit, material). That enumeration implicitly separates it from narrower siblings like validate_and_prepare_mesh or analyze_printability, though it never names them explicitly.

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?

It gives useful context — 'before printing', works with AI-generated, marketplace, or CAD models — and explains that bed-fit and material checks are skipped when the corresponding params are empty. But it offers no explicit when-to-use/when-not guidance against the several other validate_* and prepare_* siblings, leaving the routing decision to inference.

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