# Building Demand-Flexibility Calculator AI Agent Connect

> Building Demand-Flexibility Calculator MCP models the relationship between thermal physics, HVAC limits, and occupant comfort. It gives your AI client the ability to calculate power envelopes, identify physical constraints, and predict secondary energy demands caused by thermal drift. Use it to manage load shifting without violating temperature bounds.

## Overview
- **Category:** energy-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_m7qkojXRCnC8Bif9vblMXrJQoNmv5Jd4RCjIygVn/ai-agent-connect
- **Tags:** hvac, demand-response, thermal-mass, energy-efficiency, building-automation

## Description

You can use this MCP to map out the operational boundaries of a building's power demand. Instead of guessing how much load you can shed, you get a precise calculation based on the actual thermal mass and HVAC constraints of the facility. It works by looking at how temperature changes over time and how that affects your ability to move power around. 

Your AI client can use these calculations to participate in demand response events or to optimize energy costs. It doesn't just look at raw power numbers; it accounts for the physical reality of the building. You can check if a proposed power profile will keep occupants comfortable or if a specific constraint, like maximum cooling capacity, is preventing you from shifting more load. It also helps you prepare for the aftermath of a flexibility event by evaluating the rebound risk, which is the secondary energy demand that happens when the building tries to recover its temperature.

## Tools

### calculate_flexibility_envelope
This tool finds the total power capacity available for shifting demand within a specific time window.

### get_active_constraints
Use this to identify which specific physical or operational limit is stopping further flexibility.

### validate_comfort_compliance
This tool checks if a proposed power profile stays within your required thermal comfort limits.

### analyze_rebound_risk
This tool evaluates the secondary energy demand caused by thermal drift during a flexibility event.

## Prompt Examples

**Prompt:** 
```
Calculate the flexibility envelope for a commercial building with these parameters.
```

**Response:** 
```
The building has an upward flexibility of 50kW and a downward flexibility of 30kW for the next 60 minutes.
```

**Prompt:** 
```
What is limiting the building's ability to shift more load?
```

**Response:** 
```
The limiting factor is the HVAC capacity reaching its maximum cooling limit.
```

**Prompt:** 
```
Will this power profile violate comfort bounds?
```

**Response:** 
```
No, the proposed power profile is compliant with the specified comfort bounds.
```

## Capabilities

### Power Envelope Calculation
Your agent calculates the specific upward and downward power limits for a given timeframe.

### Constraint Identification
The AI identifies the physical factors, like HVAC capacity, that limit load shifting.

### Comfort Verification
Your agent checks power profiles against temperature bounds to ensure occupant comfort.

### Rebound Risk Assessment
The AI evaluates the secondary energy demand resulting from thermal drift.

## Use Cases

### Demand Response Planning
Determine how much load a building can shed during a grid event without losing comfort.

### HVAC Optimization
Identify if HVAC capacity is the primary bottleneck for energy flexibility.

### Thermal Drift Management
Analyze the rebound risk to prepare for the energy surge after a load-shedding period.

### Comfort Compliance Auditing
Verify that proposed energy-saving schedules won't push temperatures outside of set limits.

## Benefits

- Calculates power limits based on thermal physics rather than simple estimates.
- Identifies the specific physical constraints preventing further load shifting.
- Prevents comfort violations by checking power profiles against temperature bounds.
- Predicts secondary energy spikes caused by thermal drift.

## How It Works

You connect the MCP to your AI client and start running energy calculations immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide building parameters and constraints to your AI agent.
3. The agent uses the MCP tools to run thermal and power calculations.
4. Receive specific power limits, constraint reports, or comfort validations.

## Frequently Asked Questions

**What does the flexibility envelope represent?**
It represents the total power capacity available for shifting demand within a specific time window.

**How does this MCP handle occupant comfort?**
It uses the validate_comfort_compliance tool to check if power profiles stay within specified temperature bounds.

**Can I find out why I can't shift more load?**
Yes, the get_active_constraints tool identifies the physical or operational limits preventing further flexibility.

**What is rebound risk in this context?**
Rebound risk is the secondary energy demand that occurs because of thermal drift during a flexibility event.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**What is a demand-flexibility envelope?**
It is the range of power a building can shift or curtail while still maintaining occupant comfort within defined temperature bounds.

**How do I check if a power profile is safe?**
You can use the `validate_comfort_compliance` tool to verify if a proposed power profile stays within the thermal comfort limits.

**What causes the rebound effect?**
Rebound occurs when the temperature drifts during a flexibility event, requiring a surge in energy to return to the setpoint.
