Ramp calculator
calculate_rampUse this when someone plans a wheelchair ramp or an accessible ramp and asks how long it must be or whether it meets the ADA or a building rule. Calculates a ramp that climbs a height in equal runs with level landings: the slope, the number and length of the runs, the landings, the length with landings and the floor space, straight or as a switchback, checked against a ramp rule. Without a slope, it finds the shortest ramp the rule allows. Rules: ada2010 (United States, 2010 ADA Standards), admHomes (England, Approved Document M, M4(2) dwellings), admBuildings (England, Approved Document M, other buildings), din18040 (Germany), cte (Spain, CTE DB-SUA accessible route).
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_ramp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rise | Yes | Height the ramp climbs, in millimeters. | |
| rules | Yes | The ramp rule of the country and building type. | |
| slope | No | Slope of every run, rise over going, such as 0.0625 for 1:16; without it, the shortest ramp the rule allows. | |
| width | No | Clear width of the ramp; the rule's minimum when left out, in millimeters. | |
| layout | No | Straight, or a switchback that turns back at each landing; straight when left out. |