compare_print_options
Compares local 3D printing costs with outsourced fulfillment quotes side by side, helping agents recommend the lower-cost option based on material, quantity, and shipping.
Instructions
Compare local printing cost vs. outsourced manufacturing.
Runs a local cost estimate and (if Craftcloud is configured) fetches
a fulfillment quote, then returns a side-by-side comparison to help
agents recommend the best option.
Args:
file_path: Path to the G-code file (for local) or model file
(STL/3MF for fulfillment). If a G-code file is provided,
only local estimate is returned.
material: Filament material for the local estimate (PLA, PETG, …).
Leave empty to use what the file was sliced for, PLA when it
names nothing. When Kiln's servers answer, the
local estimate also carries a ``cost_intelligence`` field; what
it holds depends on the tier.
fulfillment_material_id: Material ID from ``fulfillment_materials``
for the outsourced quote. If omitted, the fulfillment quote
is skipped. A model that arrived with no real size is not
sent to be priced: ``fulfillment`` then carries ``code``
``SIZE_NOT_CHOSEN`` and ``next_call`` (set its size with
``rescale_model``). A priced model's size is in
``fulfillment.priced_size_mm``. A model that arrived lying
down is priced standing up, from a turned copy of the file
(never the file itself); ``fulfillment.pose`` says so, and its
``said`` line is for the person.
quantity: Number of copies for fulfillment (default 1).
electricity_rate: Cost per kWh in USD (default 0.12).
printer_wattage: Printer power consumption in watts (default 200).
shipping_country: ISO country code for fulfillment shipping.
printer_id: Optional registered printer the local print is for;
passed on with the file when kiln-pro is asked.
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": "compare_print_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | Filament material for the local estimate (PLA, PETG, …). Leave empty to use what the file was sliced for, PLA when it names nothing. When Kiln's servers answer, the local estimate also carries a ``cost_intelligence`` field; what it holds depends on the tier. Default: "". | |
| quantity | No | Number of copies for fulfillment (default 1). Default: 1. | |
| file_path | Yes | Path to the G-code file (for local) or model file (STL/3MF for fulfillment). If a G-code file is provided, only local estimate is returned. | |
| printer_id | No | Optional registered printer the local print is for; passed on with the file when kiln-pro is asked. Default: "". | |
| printer_wattage | No | Printer power consumption in watts (default 200). Default: 200.0. | |
| electricity_rate | No | Cost per kWh in USD (default 0.12). Default: 0.12. | |
| shipping_country | No | ISO country code for fulfillment shipping. Default: "US". | |
| fulfillment_material_id | No | Material ID from ``fulfillment_materials`` for the outsourced quote. If omitted, the fulfillment quote is skipped. A model that arrived with no real size is not sent to be priced: ``fulfillment`` then carries ``code`` ``SIZE_NOT_CHOSEN`` and ``next_call`` (set its size with ``rescale_model``). A priced model's size is in ``fulfillment.priced_size_mm``. A model that arrived lying down is priced standing up, from a turned copy of the file (never the file itself); ``fulfillment.pose`` says so, and its ``said`` line is for the person. |