Rug size calculator
calculate_rug_sizeUse this when someone asks what size of rug to buy for a living room, bedroom or dining room. Calculates the rug for a living room (sofa or L-shaped sectional with seats across, all legs on, front legs on or floating), a bed (US or European size, under the lower two thirds or the whole bed) or a dining table (rectangle, square or round), and rounds it to the nearest standard sizes sold in the US (feet: 3 × 5 to 12 × 15, rounds and squares 3 to 10 ft) and in Europe (cm: 60 × 90 to 300 × 400, rounds and squares 80 to 300). Returns the rug area with its position relative to the furniture, the US and European sizes oriented to it (undefined when no standard size fits), and with a room size the largest rugs that keep bare floor to the walls. Margins: sofa 12 in or 30 cm, bed 24 in or 50 cm, dining table 24 in or 60 cm, walls 18 in or 25 cm.
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": {
"room": "<room>"
},
"name": "calculate_rug_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arm | No | Living room: short side of an L-shaped sectional, from the back of the long side; leave out for a sofa, in millimeters. | |
| bed | No | Bedroom: US: bed_twin (38 × 75 in), bed_single_xl (twin XL), bed_full, bed_queen, bed_king, bed_king_xl (California king). European: bed_single (90 × 200 cm), bed_three_quarter_xl (100 × 200), bed_three_quarter (120 × 200), bed_double (140 × 200), bed_queen_xl (160 × 200), bed_super_king (180 × 200), bed_double_xl (200 × 200). | |
| room | Yes | The furniture the rug goes with: a sofa or sectional with seats across, a bed, or a dining table. | |
| sofa | No | Living room: length of the sofa, or of the long side of an L-shaped sectional, in millimeters. | |
| wall | No | Bare floor between the rug and the walls, in millimeters. Default 457 (18 in) for imperial, 250 for metric. | |
| cover | No | Bedroom: the rug under the lower two thirds of the bed, or under the whole bed. Default lower. | |
| depth | No | Living room: depth of the sofa, in millimeters. | |
| floor | No | The room, to check the rug and find the largest standard rug that keeps wall free. | |
| space | No | Living room: space from the front of the sofa to the front of the chairs or sofa across from it, in millimeters. | |
| table | No | Dining room: table shape; an oval table counts as a rectangle. | |
| units | No | Selects the default margins: US values in inches or European values in centimeters. Default imperial. | |
| width | No | Dining room: width of a rectangular table, in millimeters. | |
| length | No | Dining room: length of the table, its side, or its diameter, in millimeters. | |
| margin | No | How far the rug reaches past the furniture, in millimeters. Default for imperial and metric: sofa 305 or 300, bed 610 or 500, dining table 610 or 600. | |
| placement | No | Living room: all legs on the rug, front legs on, or a rug floating between the seats. |