validate_and_prepare
Validates and prepares any 3D model for printing by checking format, mesh integrity, watertightness, bed fit, and material risks, then returns a pass/fail report with fixes and a printability score.
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
plus a numeric printability score (0-100).
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_score`` and ``printability_grade``
(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``.
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
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | 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: "". | |
| input_path | Yes | Path to a 3D model file (.stl, .3mf, .obj, .step, .glb). | |
| printer_id | No | Optional printer model ID (e.g. "bambu_a1") for bed-fit checking. If empty, bed-fit check is skipped. Default: "". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||