Filament weight ⇄ length ⇄ cost
calculate_filament_usageConvert filament grams to metres (and back), compute volume and cost, and estimate how much is left on a spool from its gross weight. Knows densities for PLA, PETG, ABS, ASA, TPU, Nylon, PC, CF blends. Give either grams or meters.
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": "calculate_filament_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grams | No | Filament weight. Give grams or meters, not both. | |
| meters | No | Filament length. Give grams or meters, not both. | |
| material | No | pla, petg, abs, asa, tpu, nylon, pc, pla-cf, petg-cf, pa-cf … | pla |
| diameter_mm | No | Filament diameter (1.75 or 2.85 are standard). | |
| density_g_cm3 | No | Override density if known. | |
| spool_price_usd | No | ||
| spool_weight_kg | No | ||
| empty_spool_weight_grams | No | Weight of the empty spool (typ. 130–250 g). | |
| spool_gross_weight_grams | No | Weight of spool + remaining filament, to estimate what is left. |