Estimate cost
estimate_costCalculate total 3D print cost from filament, electricity, and extra fees like labour or markup. Use it to generate quotes or answer what a print costs, returning each cost component and the total.
Instructions
Work out what a print costs: filament plus electricity plus any extra such as labour or markup.
Use it for quotes or when the user asks what something costs; compare_slices already reports filament cost per variant. Returns each part of the cost and the total. Read-only; pure arithmetic.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra | No | Fixed amount added, e.g. labour or markup. | |
| gcode | No | Path to a sliced .gcode; supplies grams, time and filament price. Or give grams and print_time_s. | |
| grams | No | Filament used in grams, when no gcode is given. | |
| currency | No | Currency label for the result, e.g. 'USD'. | USD |
| price_per_kg | No | Filament price per kg. Default: the price stored in the G-code. | |
| print_time_s | No | Print time in seconds, when no gcode is given. | |
| printer_power_w | No | Average printer power draw in watts. | |
| electricity_per_kwh | No | Electricity price per kWh. |