Stair calculator
calculate_stairsUse this when someone asks how many stairs or steps they need, how to build or size a staircase, a stair's rise and run, stringer length or stairwell opening, or whether a stair meets code. Calculates a stair that climbs a floor-to-floor height in equal steps: the number of risers, riser height, tread depth, total run, pitch, stringer length, stairwell opening and floor space, straight or with an L or U landing, checked against a stair rule. Rules: irc2021 (United States), ukPartK (England), din18065 (Germany), cte (Spain), dm236 (Italy), nbr9050 (Brazil), blondel (the comfort rule used in France).
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": {
"rise": "<rise>",
"rules": "<rules>"
},
"name": "calculate_stairs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rise | Yes | Height from finished floor to finished floor, in millimeters; at least 300. | |
| first | No | Risers before the landing of an L or U stair. | |
| floor | No | Thickness of the upper floor, for the size of the opening, in millimeters. | |
| riser | No | Riser height to aim for, in millimeters. | |
| rules | Yes | The stair rule of the country where the stair is built. | |
| shape | No | Straight, or an L or U stair with a landing; straight when left out. | |
| tread | No | A fixed tread depth, in millimeters. | |
| width | No | Clear width of the stair, in millimeters. |