add_spool
Add a filament spool to Kiln inventory or correct the remaining grams on a recorded spool so print usage counts match what is actually left.
Instructions
Add a filament spool to inventory, or correct how much is left on one.
To ADD a spool, give its ``material``. ``remaining_grams`` is what is
left on a spool that is not new; left out, the spool is full.
To CORRECT a spool already on record, pass its ``spool_id`` (from
``list_spools``) with ``remaining_grams``: the person says they have
more left than Kiln shows, or less. Only the amount changes. Kiln
counts a spool down as the prints it starts use it, and a count drifts,
so the person's word wins. ``remaining_grams=0`` records the spool as
used up and keeps it on the list; ``remove_spool`` takes it off.
Args:
material: Material type (PLA, PETG, ABS, etc.). Required to add.
color: Filament color.
brand: Manufacturer brand.
weight_grams: Total spool weight in grams (default 1000).
cost_usd: Cost of the spool in USD.
remaining_grams: Grams left on the spool.
spool_id: A spool already on record whose remaining amount to set.
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": "add_spool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | Manufacturer brand. | |
| color | No | Filament color. | |
| cost_usd | No | Cost of the spool in USD. | |
| material | No | Material type (PLA, PETG, ABS, etc.). Required to add. | |
| spool_id | No | A spool already on record whose remaining amount to set. | |
| weight_grams | No | Total spool weight in grams (default 1000). Default: 1000.0. | |
| remaining_grams | No | Grams left on the spool. |