Calculate edgebanding
calculate_edgebandCalculate the linear feet of edgebanding a cabinet job requires, grouped by material code and including a waste allowance for trimming and setup.
Instructions
Calculate the linear feet of edgebanding a job needs, per material, with a waste allowance.
Use when ordering edgeband rolls or pricing edgebanding. For sheet goods use count_sheets; for the individual parts and which edges they get, use build_cutlist (its edgeband field drives this total).
Counted edges: the front edge of sides, bottoms, tops, top rails and adjustable shelves ('front'), and all four edges of doors and drawer fronts ('all'). Backs get no edgebanding. Edgeband is grouped by the part's material code, so doors in front_material are totalled separately from case parts.
Parameters: waste_pct is the extra percentage added for trimming and machine setup, 0-50 (default 10).
Behaviour: read-only and deterministic. Runs review_cabinet_schedule first and returns {error, review} instead of totals if the schedule has errors.
Returns: {job_number, waste_pct, by_material: {code: {linear_feet, with_waste_linear_feet}}, total_with_waste_linear_feet}. Feet are rounded to 0.1.
Example: one 30" x 30" x 12" wall cabinet with one door and waste_pct=0 gives 19.7 linear feet of the case material (sides, bottom and top front edges plus the door perimeter).
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": {
"job": "<job>"
},
"name": "calculate_edgeband"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | The cabinet job: job_number, material codes and the cabinets list (inches). | |
| waste_pct | No | Waste allowance in percent. Default 10. |