estimate_material_cost
Estimate filament weight, length, and cost for a 3D print from a mesh file, using material, infill percentage, wall shells, and nozzle size.
Instructions
Estimate material usage and cost for printing a mesh.
Computes filament weight, length, and cost based on mesh volume,
infill percentage, wall shell count, and material density. The
walls are as wide as the nozzle, and the reply's ``nozzle`` says
which size was used and where it came from.
**See also:** ``estimate_print_cost_from_mesh`` for a richer
estimate that includes support material, adhesion, and electricity.
Supported materials: pla, petg, abs, tpu, asa, nylon, pc, pla+,
carbon_fiber_pla.
:param file_path: Path to mesh file (.stl, .obj, or .glb).
:param material: Material type (default "pla").
:param infill_pct: Interior fill percentage 0-100 (default 20).
:param wall_layers: Number of perimeter shells (default 3).
:param cost_per_kg: Override material cost in $/kg (0 = use default).
:param nozzle_mm: Nozzle size in mm. Left out, Kiln uses the
nozzle of the only printer it knows of, else its default.
:returns: Dict with weight, filament length, cost, and ``nozzle``.
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": {
"file_path": "<file_path>"
},
"name": "estimate_material_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | Material type (default "pla"). Default: "pla". | |
| file_path | Yes | Path to mesh file (.stl, .obj, or .glb). | |
| nozzle_mm | No | Nozzle size in mm. Left out, Kiln uses the nozzle of the only printer it knows of, else its default. | |
| infill_pct | No | Interior fill percentage 0-100 (default 20). Default: 20.0. | |
| cost_per_kg | No | Override material cost in $/kg (0 = use default). Default: 0.0. | |
| wall_layers | No | Number of perimeter shells (default 3). Default: 3. |