# Fire Safety Calculator MCP MCP

> The Fire Safety Calculator MCP determines mandatory safety infrastructure requirements for any commercial building. It calculates things like maximum evacuation path distances, minimum stair widths based on population density, and precise fire extinguisher placement counts using local building codes.

## Overview
- **Category:** structural-design
- **Price:** Free
- **Tags:** fire safety, egress path, stair width, occupancy load, fire code

## Description

Designing or retrofitting a public space requires proving compliance with strict life-safety standards. This connector models those regulations directly, connecting your agent to the calculation logic used by structural engineers. You input core parameters—like total area, occupancy load, and risk class—and get definitive data points for safe design. For example, you can determine if an exit path is too long or if a stairwell is too narrow for the building's population count.

The true power comes when you combine these checks into one workflow. Because compliance often demands multiple calculations (e.g., checking distance *and* required extinguishers), running these checks together through Vinkius ensures that your agent handles the entire sequence, using its secure zero-trust proxy to manage all inputs and outputs without ever storing sensitive credentials on a disk. The final report you get confirms if the design meets stringent US and local Brazilian fire department codes.

## Tools

### calculate_max_walking_distance
Checks if evacuation paths are compliant by calculating the maximum safe walking distance for a given area and population load.

### determine_min_stair_width
Calculates the minimum required width for stairs based on the floor's total population count and standard module size.

### specify_extinguisher_requirement
Determines the necessary quantity and type distribution of fire extinguishers by considering the usable area and assigned risk class.

## Prompt Examples

**Prompt:** 
```
The new office building has an area of 1500 sqm, a population load of 450 people, and is classified as 'Class B Office'. Check if the evacuation paths are compliant.
```

**Response:** 
```
I will use `calculate_max_walking_distance` with (1500, 450, 'Class B Office'). The result confirms compliance, and the maximum allowed distance is 75 meters. No potential violations found.
```

**Prompt:** 
```
We need to know the minimum stair width for a floor with 800 people, using a standard module of 60cm.
```

**Response:** 
```
Running `determine_min_stair_width` with (800, 60) shows the minimum required width is 480 cm. The recommendation suggests using a 528 cm stair for enhanced safety.
```

**Prompt:** 
```
For a warehouse space of 900 sqm with 'Medium Risk' classification, how many fire extinguishers are needed?
```

**Response:** 
```
I executed `specify_extinguisher_requirement` using (900, 'Medium Risk'). The total required is 12 extinguishers: 6 ABC Dry Chemical and 6 Type B Foam.
```

## Capabilities

### Checks maximum walking distance
Calculates whether current evacuation paths are within code limits given the building's size and population.

### Determines minimum stair width
Sets the absolute minimum required width for a stairwell based on how many people the floor can hold and standard module sizes.

### Specifies fire extinguisher needs
Calculates the exact quantity and type of fire suppression equipment needed across different areas and risk classes.

## Use Cases

### Retrofitting an old factory floor
The facility manager needs to know if the current stairwells are adequate for the new, increased worker population. They run `determine_min_stair_width` using the updated population load and a standard module size to get a clear, actionable minimum width.

### Designing a new multi-story office building
The architect needs to ensure no point in the building is too far from an exit. They run `calculate_max_walking_distance` using the total area and population load, getting immediate confirmation or violation details for all egress paths.

### Auditing a large warehouse space
The compliance officer needs to know how many extinguishers are required given the flammable materials and size. They use `specify_extinguisher_requirement` by inputting the total usable area and 'Medium Risk' classification.

## Benefits

- Verify evacuation paths instantly. Instead of manually calculating path lengths, use `calculate_max_walking_distance` to confirm if all exits stay within required regulatory limits based on area and population.
- Get precise stairwell dimensions. Stop guessing about structural needs. Run `determine_min_stair_width` with the floor's load count to find the absolute minimum width needed, plus a safety buffer recommendation.
- Audit fire equipment placement. Use `specify_extinguisher_requirement` by inputting usable area and risk class (A, B, or C) to get an accurate breakdown of required extinguisher types.
- Cross-check multiple risks at once. You can chain these tools together to build a single compliance audit that verifies distance, stair capacity, and suppression density in one workflow.
- Avoid catastrophic errors. This MCP ensures your design meets stringent US and local Brazilian fire department standards before the first blueprint is finalized.

## How It Works

The bottom line is you get an immediate, data-backed audit of your structure's safety compliance against global building codes.

1. First, you provide core building parameters: total usable area, population load count, and the building's designated risk class.
2. Next, your agent runs multiple calculations through this MCP. It verifies egress path compliance, calculates minimum stair dimensions, and determines necessary extinguisher placement.
3. The system returns a definitive compliance report detailing which metrics pass code and highlighting any structural violations.

## Frequently Asked Questions

**How do I use `calculate_max_walking_distance`?**
You pass three variables: total area, population load, and construction type. The tool returns the maximum allowed distance for safe evacuation paths, confirming if your structure passes compliance.

**`determine_min_stair_width` needs which numbers?**
It requires two inputs: the floor's population count and the standardized module size (like 60cm). The result is the minimum required stair width, along with a safety buffer recommendation.

**Can I check multiple things at once?**
Yes. You can chain this MCP with other tools to build a complete audit. For instance, you can combine it with an Occupancy Load tool and a Messaging MCP to automate the compliance report generation.

**Does `specify_extinguisher_requirement` account for risk?**
Yes. You must provide the risk class code (A, B, or C) along with the area. This ensures the tool specifies not just quantity, but also the correct type distribution of extinguishers.

**What happens if `calculate_max_walking_distance` returns a compliance violation?**
The result provides specific details on the nature of the violation and recommended fixes. It doesn't just flag non-compliance; it tells you exactly where and why your design fails to meet code standards.

**How is my building data secured when I run `determine_min_stair_width`?**
Your credentials never sit on a disk. Vinkius uses zero-trust proxying, and every call generates a cryptographically signed audit trail for full data integrity.

**Does `specify_extinguisher_requirement` handle different building occupancy types?**
Yes. The tool is built to accept varying risk class codes (A, B, or C) and calculates the appropriate density and mix of equipment required for that specific usage.

**What are the performance limits when running `calculate_max_walking_distance` on a large facility?**
The platform is optimized to handle massive data loads efficiently. Plus, Vinkius includes native token optimization that cuts down your token usage significantly during complex calculations.