Calculate materials for a ceiling, wall or insulation job
calculate_materialsRuns one of the website calculators for an area in square metres and returns the material list: items, quantities, unit prices and amounts before VAT, subtotal, 7% VAT and total, plus the matching website product for each line. Choices not given use the calculator defaults; the result lists the choices the customer can change. Nothing is saved or ordered.
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": {
"calculator": "<calculator>",
"area_m2": "<area_m2>"
},
"name": "calculate_materials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area_m2 | Yes | Area in square metres. | |
| choices | No | Optional. Choice id (from a previous result) to the option label, e.g. {"2960": "แผ่นยิปซัม ตราช้าง รุ่น มาตรฐาน 9 มม. ขอบลาด"}. | |
| calculator | Yes | Calculator key from list_calculators, e.g. "concealed-ceiling-calculator". |