{
  "openapi": "3.1.0",
  "info": {
    "title": "Ardenvale Construction free planning tools",
    "version": "1.0.0",
    "description": "Read-only planning calculators for Ontario commercial space. Every result is a preliminary planning figure; the architect, the engineer and the permit set govern. The same tools are also available as a stateless MCP server (JSON-RPC 2.0 over Streamable HTTP, POST) at https://ardenvaleconstruction.com/mcp."
  },
  "servers": [
    {
      "url": "https://ardenvaleconstruction.com"
    }
  ],
  "paths": {
    "/api/tools/office-space-calculator": {
      "get": {
        "operationId": "office_space_calculator",
        "summary": "Estimate usable and rentable office square feet from headcount, growth, desk sharing, rooms, circulation and load factor.",
        "description": "Preliminary planning estimate only. The architect's test fit, the building drawings and the permit set govern the actual layout.",
        "parameters": [
          {
            "name": "employees",
            "in": "query",
            "required": true,
            "description": "Employees now (required). Unit: people.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "growth_pct",
            "in": "query",
            "required": false,
            "description": "Expected growth over the lease term. Unit: percent.",
            "schema": {
              "type": "number",
              "default": 20
            }
          },
          {
            "name": "pattern",
            "in": "query",
            "required": false,
            "description": "Work pattern. Sets the default desk sharing ratio.",
            "schema": {
              "type": "string",
              "enum": [
                "office",
                "hybrid",
                "remote"
              ],
              "default": "hybrid"
            }
          },
          {
            "name": "people_per_desk",
            "in": "query",
            "required": false,
            "description": "Desk sharing ratio, 1 or more. Default follows pattern: office 1, hybrid 1.5, remote 3. Unit: people per desk.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "private_offices",
            "in": "query",
            "required": false,
            "description": "Private offices. Unit: count.",
            "schema": {
              "type": "integer",
              "default": 4
            }
          },
          {
            "name": "small_meeting_rooms",
            "in": "query",
            "required": false,
            "description": "Small meeting rooms (up to 4 people). Unit: count.",
            "schema": {
              "type": "integer",
              "default": 2
            }
          },
          {
            "name": "medium_meeting_rooms",
            "in": "query",
            "required": false,
            "description": "Medium meeting rooms (up to 8 people). Unit: count.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "large_meeting_rooms",
            "in": "query",
            "required": false,
            "description": "Large meeting rooms (12 or more people). Unit: count.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "reception",
            "in": "query",
            "required": false,
            "description": "Include a reception area.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "kitchen_sqft",
            "in": "query",
            "required": false,
            "description": "Kitchen and break area. 0 for none. Unit: sq ft.",
            "schema": {
              "type": "number",
              "default": 300
            }
          },
          {
            "name": "storage_room",
            "in": "query",
            "required": false,
            "description": "Include a storage or server room.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "area_workstation_sqft",
            "in": "query",
            "required": false,
            "description": "Area per workstation. Unit: sq ft each.",
            "schema": {
              "type": "number",
              "default": 45
            }
          },
          {
            "name": "area_private_office_sqft",
            "in": "query",
            "required": false,
            "description": "Area per private office. Unit: sq ft each.",
            "schema": {
              "type": "number",
              "default": 150
            }
          },
          {
            "name": "area_small_meeting_sqft",
            "in": "query",
            "required": false,
            "description": "Area per small meeting room. Unit: sq ft each.",
            "schema": {
              "type": "number",
              "default": 110
            }
          },
          {
            "name": "area_medium_meeting_sqft",
            "in": "query",
            "required": false,
            "description": "Area per medium meeting room. Unit: sq ft each.",
            "schema": {
              "type": "number",
              "default": 200
            }
          },
          {
            "name": "area_large_meeting_sqft",
            "in": "query",
            "required": false,
            "description": "Area per large meeting room. Unit: sq ft each.",
            "schema": {
              "type": "number",
              "default": 350
            }
          },
          {
            "name": "area_reception_sqft",
            "in": "query",
            "required": false,
            "description": "Reception area. Unit: sq ft.",
            "schema": {
              "type": "number",
              "default": 200
            }
          },
          {
            "name": "area_storage_sqft",
            "in": "query",
            "required": false,
            "description": "Storage or server room area. Unit: sq ft.",
            "schema": {
              "type": "number",
              "default": 120
            }
          },
          {
            "name": "circulation_pct",
            "in": "query",
            "required": false,
            "description": "Circulation allowance added to the components. Unit: percent.",
            "schema": {
              "type": "number",
              "default": 25
            }
          },
          {
            "name": "load_factor_pct",
            "in": "query",
            "required": false,
            "description": "Load factor: rentable = usable x (1 + load factor). Unit: percent.",
            "schema": {
              "type": "number",
              "default": 15
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/occupant-load-calculator": {
      "get": {
        "operationId": "occupant_load_calculator",
        "summary": "Minimum design occupant load for a floor area from Ontario Building Code Table 3.1.17.1 area per person values.",
        "description": "Preliminary planning figure only. The architect, the engineer and the permit set govern the occupant load used for design and approval.",
        "parameters": [
          {
            "name": "use",
            "in": "query",
            "required": true,
            "description": "Use of the floor area (required). One slug, or several separated by commas to match area. Allowed names: office, personal-service-shop, retail-first, retail-second-entrance, retail-other, dining, assembly-tables, assembly-seats, assembly-standing, stage, stadium, bowling-pool, classroom, school-shop, reading-lounge, school-lab, manufacturing, warehouse, storage-garage, hangar, kitchen, cleaning-repair, storage, public-corridor, dormitory, care-b2, care-b3, detention-b1.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "area",
            "in": "query",
            "required": true,
            "description": "Floor area for each use (required). Comma separated when several uses are given. Unit: unit.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Area unit.",
            "schema": {
              "type": "string",
              "enum": [
                "m2",
                "ft2"
              ],
              "default": "m2"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/washroom-fixture-calculator": {
      "get": {
        "operationId": "washroom_fixture_calculator",
        "summary": "Minimum water closets and lavatories for each sex in an Ontario office or retail space (Building Code Tables 3.7.4.7 and 3.7.4.8).",
        "description": "Preliminary planning figure only. Accessible and universal washroom rules apply separately. The architect, the engineer and the permit set govern.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Occupancy: office (Group D, Table 3.7.4.7) or retail (Group E, Table 3.7.4.8).",
            "schema": {
              "type": "string",
              "enum": [
                "office",
                "retail"
              ],
              "default": "office"
            }
          },
          {
            "name": "persons",
            "in": "query",
            "required": true,
            "description": "Occupant load (office) or employees at one time (retail). Required. Unit: people.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "male_pct",
            "in": "query",
            "required": false,
            "description": "Share counted as male, 0 to 100. The rest are counted as female. Unit: percent.",
            "schema": {
              "type": "number",
              "default": 50
            }
          },
          {
            "name": "public",
            "in": "query",
            "required": false,
            "description": "Retail only: customers at one time. Unit: people.",
            "schema": {
              "type": "integer",
              "default": 80
            }
          },
          {
            "name": "area_m2",
            "in": "query",
            "required": false,
            "description": "Retail only: total area excluding basements. Unit: m2.",
            "schema": {
              "type": "number",
              "default": 400
            }
          },
          {
            "name": "urinals",
            "in": "query",
            "required": false,
            "description": "Use urinals for males up to the Code limit.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/child-care-space-checker": {
      "get": {
        "operationId": "child_care_space_checker",
        "summary": "Check indoor play space, outdoor play space and sleeping area per child for an Ontario licensed child care centre.",
        "description": "Preliminary planning check only. Licensing is decided by the ministry. The architect, the engineer and the permit set govern the design.",
        "parameters": [
          {
            "name": "groups",
            "in": "query",
            "required": true,
            "description": "Required. Licensed age groups as group:children:floor_area, comma separated, for example preschool:24:70,infant:10:25. Allowed names: infant, toddler, preschool, family, kindergarten, primary-junior, junior.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Area unit for every area value.",
            "schema": {
              "type": "string",
              "enum": [
                "m2",
                "ft2"
              ],
              "default": "m2"
            }
          },
          {
            "name": "outdoor_area",
            "in": "query",
            "required": false,
            "description": "Outdoor play space available. 0 shows only the requirement. Unit: unit.",
            "schema": {
              "type": "number",
              "default": 0
            }
          },
          {
            "name": "six_hours",
            "in": "query",
            "required": false,
            "description": "Program runs six hours or more in a day.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "sleeping_area",
            "in": "query",
            "required": false,
            "description": "Sleeping area available. Unit: unit.",
            "schema": {
              "type": "number",
              "default": 0
            }
          },
          {
            "name": "sleeping_children",
            "in": "query",
            "required": false,
            "description": "Children sleeping at one time. Unit: children.",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/restaurant-seating-and-washroom-requirement": {
      "get": {
        "operationId": "restaurant_seating_and_washroom_requirement",
        "summary": "Occupant load, seat capacity and minimum patron and employee water closets and lavatories for an Ontario restaurant or bar (Building Code Table 3.7.4.3.-D, -E and -F).",
        "description": "Preliminary planning figure only. The architect, the public health unit, the building official and the permit set govern the seat count and the fixture count.",
        "parameters": [
          {
            "name": "dining_area_m2",
            "in": "query",
            "required": true,
            "description": "Dining, beverage and cafeteria floor area open to patrons (required). Unit: m2.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "seats",
            "in": "query",
            "required": false,
            "description": "Seats planned. 0 to use the occupant load from the area. The occupant load is the larger of the two. Unit: seats.",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "description": "restaurant: a dining room or cafeteria (Table 3.7.4.3.-D). bar: an establishment used primarily for alcoholic beverages with limited or no food service (Table 3.7.4.3.-E).",
            "schema": {
              "type": "string",
              "enum": [
                "restaurant",
                "bar"
              ],
              "default": "restaurant"
            }
          },
          {
            "name": "employees",
            "in": "query",
            "required": false,
            "description": "Employees normally present at one time, those present more than 25 percent of the working day (Sentence 3.7.4.3.(9)). Unit: people.",
            "schema": {
              "type": "integer",
              "default": 8
            }
          },
          {
            "name": "male_pct",
            "in": "query",
            "required": false,
            "description": "Share counted as male, 0 to 100. The rest are counted as female. Unit: percent.",
            "schema": {
              "type": "number",
              "default": 50
            }
          },
          {
            "name": "urinals",
            "in": "query",
            "required": false,
            "description": "Use urinals for males up to the Code limit.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "storeys",
            "in": "query",
            "required": false,
            "description": "Storeys in the building (sets the minimum number of universal washrooms). Unit: storeys.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/exit-width-and-egress-door-calculator": {
      "get": {
        "operationId": "exit_width_and_egress_door_calculator",
        "summary": "Required exit width, number of exits, door count and travel distance limit for an occupant load under Ontario Building Code Subsections 3.4.2 and 3.4.3.",
        "description": "Preliminary planning figure only. The architect, the fire protection engineer and the permit set govern the means of egress.",
        "parameters": [
          {
            "name": "occupant_load",
            "in": "query",
            "required": true,
            "description": "Occupant load of the floor area served (required). Use the occupant load calculator for the table value. Unit: persons.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Major occupancy of the floor area.",
            "schema": {
              "type": "string",
              "enum": [
                "assembly",
                "residential",
                "business",
                "mercantile",
                "industrial-low",
                "industrial-medium",
                "industrial-high",
                "care"
              ],
              "default": "mercantile"
            }
          },
          {
            "name": "sprinklered",
            "in": "query",
            "required": false,
            "description": "Floor area sprinklered throughout.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "storeys",
            "in": "query",
            "required": false,
            "description": "Building height in storeys. Unit: storeys.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "element",
            "in": "query",
            "required": false,
            "description": "Exit element to size in the headline answer.",
            "schema": {
              "type": "string",
              "enum": [
                "doorway",
                "corridor",
                "ramp",
                "ramp-steep",
                "stair",
                "stair-other"
              ],
              "default": "doorway"
            }
          },
          {
            "name": "door_clear_width_mm",
            "in": "query",
            "required": false,
            "description": "Clear opening of one door leaf you plan to use, 850 mm or more. Unit: mm.",
            "schema": {
              "type": "number",
              "default": 850
            }
          },
          {
            "name": "stairs_storeys_served",
            "in": "query",
            "required": false,
            "description": "Storeys the exit stair serves above the lowest exit level. Over 2 sets the 1,100 mm minimum stair width. Unit: storeys.",
            "schema": {
              "type": "integer",
              "default": 2
            }
          },
          {
            "name": "floor_area_m2",
            "in": "query",
            "required": false,
            "description": "Floor area, to test the one-exit option. Unit: m2.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "travel_distance_m",
            "in": "query",
            "required": false,
            "description": "Longest travel distance from any point to an exit, measured along the path of travel. Unit: m.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "max_diagonal_m",
            "in": "query",
            "required": false,
            "description": "Maximum diagonal dimension of the floor area, to find the least distance between two exits. Unit: m.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/accessible-washroom-clearance-checker": {
      "get": {
        "operationId": "accessible_washroom_clearance_checker",
        "summary": "Pass or fail check of barrier-free stall, ambulatory stall or universal washroom clear dimensions against Ontario Building Code Articles 3.8.3.8 and 3.8.3.12.",
        "description": "Preliminary clearance check only. The architect, the accessibility consultant and the building official govern. This does not certify a washroom.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "stall: barrier-free water closet stall. ambulatory: ambulatory stall. universal: universal washroom.",
            "schema": {
              "type": "string",
              "enum": [
                "stall",
                "ambulatory",
                "universal"
              ],
              "default": "stall"
            }
          },
          {
            "name": "stall_width_mm",
            "in": "query",
            "required": false,
            "description": "Stall clear width (stall and ambulatory). Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "stall_depth_mm",
            "in": "query",
            "required": false,
            "description": "Stall clear depth (stall and ambulatory). Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "front_clear_diameter_mm",
            "in": "query",
            "required": false,
            "description": "Stall only: diameter of clear floor space in front of the stall. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "door_clear_opening_mm",
            "in": "query",
            "required": false,
            "description": "Door clear opening with the door open (all types). Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "door_swing",
            "in": "query",
            "required": false,
            "description": "Stall door swing.",
            "schema": {
              "type": "string",
              "enum": [
                "outward",
                "inward"
              ]
            }
          },
          {
            "name": "inward_door_clear_area_ok",
            "in": "query",
            "required": false,
            "description": "Stall with inward door: is a clear floor area of 820 mm by 1,440 mm inside the stall, clear of the door swing?",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "wc_centre_to_wall_mm",
            "in": "query",
            "required": false,
            "description": "Stall only: water closet centre line to the nearest side wall. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "transfer_space_width_mm",
            "in": "query",
            "required": false,
            "description": "Stall only: clear transfer space width beside the water closet. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "transfer_space_depth_mm",
            "in": "query",
            "required": false,
            "description": "Stall only: clear transfer space depth beside the water closet. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "seat_height_mm",
            "in": "query",
            "required": false,
            "description": "Stall only: water closet seat height above the floor. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "stall_face_to_door_mm",
            "in": "query",
            "required": false,
            "description": "Stall with inward washroom door: clearance from stall face to that door. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "stall_face_to_obstruction_mm",
            "in": "query",
            "required": false,
            "description": "Stall only: clearance from stall face to any wall-mounted fixture or obstruction. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "room_width_mm",
            "in": "query",
            "required": false,
            "description": "Universal washroom internal width. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "room_length_mm",
            "in": "query",
            "required": false,
            "description": "Universal washroom internal length. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "turning_diameter_mm",
            "in": "query",
            "required": false,
            "description": "Universal washroom: diameter of open turning space. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "power_door_operator",
            "in": "query",
            "required": false,
            "description": "Universal washroom: power door operator fitted.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "latch_height_mm",
            "in": "query",
            "required": false,
            "description": "Universal washroom: latch height above the floor. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "change_table_space_width_mm",
            "in": "query",
            "required": false,
            "description": "Universal washroom: clear space width for an adult change table. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "change_table_space_length_mm",
            "in": "query",
            "required": false,
            "description": "Universal washroom: clear space length for an adult change table. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "lavatory_rim_height_mm",
            "in": "query",
            "required": false,
            "description": "Lavatory rim height above the floor. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "lavatory_knee_clearance_mm",
            "in": "query",
            "required": false,
            "description": "Clearance under the lavatory at the front edge. Unit: mm.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/retail-store-layout-and-aisle-width-calculator": {
      "get": {
        "operationId": "retail_store_layout_and_aisle_width_calculator",
        "summary": "Occupant load, exits, aisle widths and accessible route for an Ontario retail store, with a fixture run estimate from shelving depth.",
        "description": "Preliminary planning figure only. The architect, the fire protection engineer and the permit set govern the layout and the means of egress.",
        "parameters": [
          {
            "name": "floor_area_m2",
            "in": "query",
            "required": true,
            "description": "Retail floor area on the storey (required). Unit: m2.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "storey",
            "in": "query",
            "required": false,
            "description": "Storey type, which sets the area per person: first (basement or first storey, 3.70 m2), upper-entrance (second storey with principal entrance from a pedestrian thoroughfare or parking area, 3.70 m2), other (5.60 m2).",
            "schema": {
              "type": "string",
              "enum": [
                "first",
                "upper-entrance",
                "other"
              ],
              "default": "first"
            }
          },
          {
            "name": "sprinklered",
            "in": "query",
            "required": false,
            "description": "Floor area sprinklered throughout.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "storeys",
            "in": "query",
            "required": false,
            "description": "Building height in storeys. Unit: storeys.",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "aisle_width_mm",
            "in": "query",
            "required": false,
            "description": "Clear aisle width you plan between fixtures. Unit: mm.",
            "schema": {
              "type": "number",
              "default": 1100
            }
          },
          {
            "name": "fixture_depth_mm",
            "in": "query",
            "required": false,
            "description": "Depth of one fixture run (for example a double-sided gondola). Unit: mm.",
            "schema": {
              "type": "number",
              "default": 600
            }
          },
          {
            "name": "door_clear_width_mm",
            "in": "query",
            "required": false,
            "description": "Clear opening of one door leaf, 850 mm or more. Unit: mm.",
            "schema": {
              "type": "number",
              "default": 850
            }
          },
          {
            "name": "store_width_m",
            "in": "query",
            "required": false,
            "description": "Store width, to estimate the number of fixture runs. Depth is area divided by width. Unit: m.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "travel_distance_m",
            "in": "query",
            "required": false,
            "description": "Longest travel distance from any point to an exit. Unit: m.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/parking-stall-count-for-change-of-use": {
      "get": {
        "operationId": "parking_stall_count_for_change_of_use",
        "summary": "Indicative parking stall count for a change of use in Toronto, Mississauga or Brampton from the zoning by-law rates, with the by-law named. Confirm with the municipality.",
        "description": "Indicative only. Parking requirements differ by municipality, zone and site-specific exceptions. Confirm with the municipality's zoning examiner.",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": true,
            "description": "Municipality (required). Only cities whose by-law we opened are offered.",
            "schema": {
              "type": "string",
              "enum": [
                "toronto",
                "mississauga",
                "brampton"
              ]
            }
          },
          {
            "name": "use",
            "in": "query",
            "required": true,
            "description": "Proposed use (required). Not every use is mapped for every city. Allowed names: office, medical-office, retail, restaurant, take-out, personal-service, financial, grocery, day-care, warehouse, fitness.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gross_floor_area_m2",
            "in": "query",
            "required": true,
            "description": "Gross floor area of the use (required). Each by-law defines its own gross floor area. Unit: m2.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Toronto: parking zone pza, pzb or other. Mississauga: parking precinct 1, 2, 3 or 4. Ignored for Brampton.",
            "schema": {
              "type": "string",
              "enum": [
                "pza",
                "pzb",
                "other",
                "1",
                "2",
                "3",
                "4"
              ],
              "default": "other"
            }
          },
          {
            "name": "brampton_core",
            "in": "query",
            "required": false,
            "description": "Brampton only: the property is inside the Downtown, Central Area and Hurontario/Main Corridor area (Schedule B-7), which has no minimum.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/change-of-use-document-checklist": {
      "get": {
        "operationId": "change_of_use_document_checklist",
        "summary": "Printable Toronto building permit document checklist for a commercial change of use or interior alteration, from the City of Toronto Building guide. Organizes forms and drawings only.",
        "description": "Document organizer only. It is not a permit determination or a fee estimate. The City of Toronto examiner and your designer decide what the application needs.",
        "parameters": [
          {
            "name": "designer",
            "in": "query",
            "required": false,
            "description": "Who prepares the drawings: architect_engineer, other_designer, or owner_exempt (a property owner exempt from qualification).",
            "schema": {
              "type": "string",
              "enum": [
                "architect_engineer",
                "other_designer",
                "owner_exempt"
              ],
              "default": "architect_engineer"
            }
          },
          {
            "name": "professional_review",
            "in": "query",
            "required": false,
            "description": "Whether the Building Code requires professional design and field review: yes, no or unsure.",
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ],
              "default": "unsure"
            }
          },
          {
            "name": "exterior_work",
            "in": "query",
            "required": false,
            "description": "The project includes exterior, parking or loading changes.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "roof_work",
            "in": "query",
            "required": false,
            "description": "The project includes roof changes or new rooftop equipment.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "assembly_work",
            "in": "query",
            "required": false,
            "description": "The project changes wall or floor assemblies, fire separations, stairs, guards or handrails.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to json for a JSON answer. Default is plain text.",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ],
              "default": "text"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, limits, source and links.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or bad parameters. The body lists accepted parameters and an example.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/": {
      "get": {
        "operationId": "list_tools",
        "summary": "List every tool, its parameters and an example link.",
        "responses": {
          "200": {
            "description": "Tool list.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "json"
              ]
            }
          }
        ]
      }
    }
  }
}