Bed size calculator
calculate_bed_fitUse this when someone asks which bed size fits a bedroom, or whether a king, queen or double bed fits. Checks which US and European beds fit a bedroom with walkways beside and at the foot of the bed, keeping clear of a door's swing and a wardrobe and the walkway in front of it. Returns for each bed whether it fits, the widest walkway it leaves and the smallest room for it; the largest US and European bed that fits; where the chosen bed stands; the floor area; and whether the room meets the smallest bedroom of the IRC (R304: 70 sq ft, 7 ft each way) and of England's nationally described space standard. Beds for two keep a walkway on both sides; beds for one stand against a side wall. Walkways: 24 in at least (Sleep Foundation), 36 in comfortable (Dimensions.com). Beds: bed_twin, bed_single_xl (twin XL), bed_full, bed_queen, bed_king, bed_king_xl (California king), 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).
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": {
"width": "<width>",
"length": "<length>"
},
"name": "calculate_bed_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bed | No | The bed to place; bed_queen without it. | |
| door | No | A door that swings into the room. | |
| width | Yes | Length of the wall behind the bed, inside the walls, in millimeters. | |
| length | Yes | Distance from the wall behind the bed to the opposite wall, in millimeters. | |
| walkway | No | Walkway beside and at the foot of the bed and in front of a wardrobe: 609.6 (24 in) without it, 914.4 (36 in) for comfort, or 600 and 900 in a metric room, in millimeters. | |
| wardrobe | No | A wardrobe against a wall. |