# Load Duration Curve Calculator AI Agent Connect

> Load Duration Curve Calculator MCP handles the heavy lifting for electrical demand analysis. It lets your AI client transform time-stamped power data into Load Duration Curves, calculate critical metrics like peak and base loads, and verify the integrity of your datasets through automated time-continuity checks.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_RPQ0cHavmnqD3wP7ZZ356bFWiXkwKjQQreD5o73K/ai-agent-connect
- **Tags:** electrical-engineering, power-systems, load-duration-curve, demand-analysis, energy-data

## Description

You can stop manually processing demand datasets to find load factors or peak values. This MCP gives your AI client the specific math and logic needed for electrical engineering and power systems planning. Instead of you calculating percentiles or checking for gaps in time-stamped data, your agent does it instantly. You provide the raw demand or power data, and the MCP handles the transformation into a Load Duration Curve. It can characterize whether a load profile is flat or peaky, helping you make better decisions about capacity and infrastructure. Whether you are looking for specific load percentiles for planning or need to ensure your dataset is continuous before running a model, this tool handles the validation and the math in one go.

## Tools

### calculate_ldc_metrics
This tool generates the core Load Duration Curve data and all necessary descriptive statistics. It calculates peak load, base load, and load factors from your dataset.

### get_load_percentiles
This tool extracts specific load values based on the percentiles you define. It is useful for capacity planning and determining threshold levels.

### validate_time_continuity
This tool checks your time-stamped dataset for integrity. It identifies if there are any unauthorized gaps in your time series.

### analyze_load_shape
This tool characterizes the shape of your load profile. It compares different load levels to tell you if a profile is flat or peaky.

## Prompt Examples

**Prompt:** 
```
Calculate the LDC metrics for this dataset: [{'timestamp': '2023-01-01T00:00:00Z', 'value': 100}, {'timestamp': '2023-01-01T01:00:00Z', 'value': 150}, {'timestamp': '2023-01-01T02:00:00Z', 'value': 120}] with a 60 minute interval.
```

**Response:** 
```
The peak load is 150, the base load is 100, and the load factor is 123.33.
```

**Prompt:** 
```
Is this load profile peaky? The sorted values are [500, 450, 400, 100, 50] and the base load threshold is 150.
```

**Response:** 
```
The load profile is characterized as peaky because the peak-to-base ratio is high.
```

**Prompt:** 
```
Check if there are any gaps in this time series: [{'timestamp': '2023-01-01T00:00:00Z', 'value': 10}, {'timestamp': '2023-01-01T02:00:00Z', 'value': 20}] with a 60 minute expected interval.
```

**Response:** 
```
A gap was detected between 2023-01-01T00:00:00Z and 2023-01-01T02:00:00Z with a duration of 60 minutes.
```

## Capabilities

### LDC Generation
Your agent uses this to turn raw time-series demand into a Load Duration Curve.

### Data Integrity Checks
The AI checks for missing time intervals to ensure your analysis is accurate.

### Statistical Extraction
Your agent pulls specific percentiles and load factors from the data.

### Profile Characterization
The tool identifies if a load profile is flat or peaky based on load levels.

## Use Cases

### Capacity Planning
Use percentiles to determine how much generation capacity is needed to meet specific demand levels.

### Data Validation
Run continuity checks to ensure your demand data doesn't have missing timestamps before you start modeling.

### Load Shape Analysis
Determine if a customer's load is peaky or flat to inform tariff or infrastructure decisions.

### Grid Metric Calculation
Quickly get load factors and peak-to-base ratios from raw electrical data.

## Benefits

- Automates the math for peak, base, and load factor calculations.
- Identifies data gaps in time-stamped series automatically.
- Provides instant characterization of load profile shapes.
- Enables rapid capacity planning via percentile extraction.

## How It Works

Connecting to this MCP gives your AI client immediate access to electrical engineering math tools.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your time-stamped demand or power data to your AI agent.
3. Ask the agent to perform specific tasks like calculating LDC metrics or checking for gaps.
4. The agent uses the MCP tools to process the data and returns the results.

## Frequently Asked Questions

**What can this MCP do with electrical demand data?**
It transforms time-stamped demand data into Load Duration Curves and calculates metrics like peak load, base load, and load factor.

**Can it check for missing data in my time series?**
Yes, the validate_time_continuity tool checks your dataset to ensure no gaps exist in the time stamps.

**How does it help with capacity planning?**
It uses the get_load_percentiles tool to extract specific load values, which helps in determining necessary capacity.

**Can I use this with any AI client?**
Yes, it works with any MCP-compatible client like Claude, Cursor, or Windsurf once connected via Vinkius.

**What is the difference between flat and peaky loads in this tool?**
The analyze_load_shape tool compares different load levels to characterize whether a profile is flat or peaky.

**What can I calculate with this server?**
You can calculate peak and base loads, load factors, specific percentiles, and analyze the shape of the load profile using `calculate_ldc_metrics` and `analyze_load_shape`.

**How do I ensure my data is valid for analysis?**
Use the `validate_time_continuity` tool to check for unauthorized gaps in your time-stamped dataset based on your expected interval.

**Can I define custom percentiles for capacity planning?**
Yes, the `get_load_percentiles` tool allows you to retrieve specific load values for any user-defined percentile targets.
