Flooring and tile calculator
calculate_flooringUse this when someone asks how much flooring, laminate, hardwood, vinyl or tile they need for a room, or how many boxes to buy. Calculates the planks, tiles or carpet for a floor, or tiles for a wall: the area from length × width or a given area, the area with waste for the laying pattern, the number of pieces (each tile counted with one grout joint added to its length and width), the boxes (from pieces per box, or the area per box) and the area in square yards. Waste when not given: straight 10 %, diagonal 15 %, herringbone 20 % (from Mullican Flooring's 5–7 % straight and 10–15 % diagonal and Havwoods' 15–20 % herringbone), carpet 10 %. Areas are in square meters (1 sq ft = 0.09290304 m²).
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": {
"material": "<material>"
},
"name": "calculate_flooring"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Floor or wall area in square meters, used instead of length and width. | |
| joint | No | Grout joint between tiles, in millimeters; 3.175 (1/8 in) when left out. | |
| waste | No | Percent added for cuts and breakage; when left out 10 for straight, 15 for diagonal, 20 for herringbone and 10 for carpet. | |
| width | No | Room width, in millimeters. | |
| length | No | Room length, in millimeters. | |
| perBox | No | Planks or tiles per box. | |
| boxArea | No | Square meters per box from the label, used without perBox or the piece size. | |
| pattern | No | Laying pattern of planks or tiles; straight when left out. | |
| material | Yes | Planks (laminate, wood or vinyl), tiles, or carpet from a roll. | |
| pieceWidth | No | Width of one plank or tile, in millimeters. | |
| pieceLength | No | Length of one plank or tile, in millimeters. |