Window size calculator
calculate_window_sizeUse this when someone asks how big the windows of a room must be for daylight, ventilation or an egress window under building code. Calculates the window area a room needs for daylight and fresh air from its floor area, under a building rule: the smallest glass or window-opening area, the smallest area that opens, and the smallest total window size with frame for the window type and frame share. It gives the rule's emergency escape (egress) opening, and checks windows and an escape opening when they are given. Areas are in square meters. Rules: irc2021 (United States, R303.1 and R310), england (Approved Documents F and B), mbo (Germany: Musterbauordnung, NRW, Brandenburg), baybo (Bavaria), dm1975 (Italy), catalonia (Spain, Catalonia), portoAlegre (Brazil, Porto Alegre).
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": {
"area": "<area>",
"rules": "<rules>"
},
"name": "calculate_window_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | Floor area of the room, in square meters. | |
| type | No | How the windows open: a casement opens fully, hung and sliding windows open half, a fixed window does not open. Hung when missing. | |
| frame | No | Share of each window's area that is frame, not glass; 0.3 when missing. | |
| rules | Yes | The building rule of the country or region. | |
| escape | No | The escape window to check against the rule's emergency escape opening. | |
| windows | No | Windows of one size to check against the rule. |