# Demand Response Baseline Calculator AI Agent Connect

> Demand Response Baseline Calculator MCP gives your AI agent the math it needs to model electricity demand. It handles the heavy lifting of generating counterfactual baselines, adjusting for weather variations, and validating historical data sufficiency so you can accurately measure demand-response event performance.

## Overview
- **Category:** utilities
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_EpZ12KBQ0xgXJLcVmyKlK9jT3tSHqrQZAA0PrUd5/ai-agent-connect
- **Tags:** demand-response, electricity, baseline, load-forecasting, utility-analytics

## Description

You can use this MCP to automate the complex math behind electricity demand modeling. Instead of manually calculating what load would have been without a demand-response event, you let your AI client handle the computation. It processes historical demand data, applies specific lookback rules, and accounts for weather drivers to produce reliable counterfactual baselines. 

If you're worried about data quality, the MCP includes built-in checks to ensure your historical datasets are robust enough for your chosen methodology. You can also strip out specific dates, like holidays or maintenance periods, to keep your models clean. It's a specialized toolkit designed to turn raw historical load profiles into actionable comparison metrics for any DR event.

## Tools

### calculate_baseline
This tool generates the counterfactual baseline and comparison metrics for a specific demand-response event.

### filter_excluded_data
This tool removes historical intervals that fall on dates you specify as excluded.

### get_weather_adjusted_load
This tool adjusts historical load profiles to account for weather differences between the historical period and the event period.

### validate_history_sufficiency
This tool checks if your historical dataset is strong enough to support your requested baseline method and lookback rule.

## Prompt Examples

**Prompt:** 
```
Calculate the baseline for a demand-response event using the average-of-history method with these historical intervals and event data.
```

**Response:** 
```
The calculated baseline intervals for the event period are [45.2, 44.8, 46.1, 45.5] kW, with an adjustment factor of 1.02 and an uncertainty of 0.45.
```

**Prompt:** 
```
Check if my historical demand data is enough for a same-weekday lookback rule using the average-of-history method.
```

**Response:** 
```
The historical data is sufficient for the requested method and lookback rule.
```

**Prompt:** 
```
Remove the data from the excluded dates 2023-12-25 and 2024-01-01 from my historical demand dataset.
```

**Response:** 
```
The historical dataset has been cleaned. 2 records were removed based on the excluded dates.
```

## Capabilities

### Counterfactual Modeling
Your agent uses this to predict what electricity load would have been without a demand-response event.

### Weather Normalization
The AI adjusts historical load profiles to match the weather conditions during the event period.

### Data Integrity Checks
Your agent verifies that the historical dataset meets the requirements for your specific baseline method.

### Automated Data Cleaning
The MCP removes specific historical intervals that fall on user-defined excluded dates.

### Metric Generation
The tool produces adjustment factors and comparison metrics for event analysis.

## Use Cases

### Event Performance Measurement
Calculate exactly how much load was reduced during a specific demand-response event.

### Weather-Adjusted Forecasting
Correct historical load profiles when the weather during the event differs from the historical period.

### Data Quality Assurance
Ensure your historical data is robust enough for a specific lookback rule before you start modeling.

### Holiday Data Filtering
Remove anomalous data from holidays or special events to prevent baseline skewing.

## Benefits

- Automates the calculation of counterfactual baselines.
- Adjusts historical load for weather-driven variations.
- Validates data sufficiency before running complex models.
- Cleans datasets by filtering out excluded dates.

## How It Works

Connect your client to Vinkius and start running calculations immediately.

1. Connect your MCP-compatible client to the Vinkius hosted environment.
2. Provide your historical demand data and event details to your AI agent.
3. The agent uses the MCP tools to clean, validate, and adjust the data.
4. The agent runs the final baseline calculation and presents the results.

## Frequently Asked Questions

**What does this MCP actually calculate?**
It generates counterfactual electricity demand baselines and comparison metrics used to measure demand-response event performance.

**How does it handle weather differences?**
The get_weather_adjusted_load tool adjusts historical load profiles to account for weather differences between the historical period and the event period.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client like Claude, Cursor, or Windsurf.

**How do I ensure my historical data is sufficient?**
You can use the validate_history_sufficiency tool to check if your dataset supports your chosen baseline method and lookback rule.

**Can I exclude specific dates from my analysis?**
Yes, the filter_excluded_data tool allows you to remove historical intervals that fall on dates you specify.

**Does this tool calculate actual load reduction?**
No. The tool provides comparison metrics between the actual event load and the calculated baseline. It does not claim or return a verified load reduction value.

**How can I ensure my historical data is sufficient?**
You can use the `validate_history_sufficiency` tool to check if your dataset meets the requirements for your chosen baseline method and lookback rule.

**Can I adjust for weather changes?**
Yes, the `get_weather_adjusted_load` tool allows you to scale historical load profiles to account for weather differences between the historical period and the event.
