check_filament_availability
Compare a sliced 3MF project's per-slot filament consumption against your declared remaining grams to check if stock suffices, accounting for copies and a safety margin.
Instructions
Compare sliced-project per-slot consumption against caller-supplied remaining filament grams. Read-only, no printer or stock service connection. Copies multiply the entire project. Sufficiency is an estimate; metadata may omit purge and tower waste. Missing slots or plate consumption remain unknown.
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": {
"path": "<path>",
"filaments": "<filaments>"
},
"name": "check_filament_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sliced 3MF with per-filament consumption metadata. | |
| copies | No | Number of copies of the entire project. | |
| filaments | Yes | User-declared stock assignment; each slot must refer to a separate supply, not the same spool counted twice. | |
| safety_margin_percent | No | Reserve added to recorded consumption; it cannot guarantee coverage of unrecorded waste. |