# Merit Order Dispatch Calculator AI Agent Connect

> Merit Order Dispatch Calculator MCP gives your AI agent the ability to model electricity markets. It handles the math for ranking generators by marginal cost while respecting physical grid constraints like ramp limits, reserve requirements, and renewable priority. You can use it to run dispatch scenarios, check generator availability, and analyze the economic impact of different grid configurations.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_lSiHkrxS9KLWArD0b3MRJG7spEc9VXNRdoPqbohd/ai-agent-connect
- **Tags:** electricity, dispatch, merit-order, grid-modeling, power-systems

## Description

You can use this MCP to automate the heavy lifting of electricity market modeling. Instead of manually calculating how to meet demand, you let your AI client handle the merit-order ranking. It sorts generators from lowest to highest marginal cost to find the most efficient dispatch schedule. The math accounts for real-world constraints that usually break simple models, such as minimum stable generation levels, ramp rate limits, and the need for spinning reserves. It also prioritizes renewable energy inputs to reflect modern grid realities. Whether you are testing how a new wind farm affects curtailment or checking if a specific set of generators can meet a sudden demand spike, this MCP provides the computational backbone for your power system simulations.

## Tools

### calculate_merit_order_dispatch
This tool runs the core math to find the most efficient dispatch schedule for a specific time period.

### get_generator_list
Use this to pull the current list of all available generators in the system.

### summarize_dispatch_economics
This tool analyzes your completed dispatch to provide a breakdown of operating costs and curtailment ratios.

### validate_dispatch_parameters
This tool checks your input data to ensure the dispatch parameters are physically and economically possible.

## Prompt Examples

**Prompt:** 
```
Calculate the merit order dispatch for a demand of 500MW with a reserve requirement of 50MW, given these generators: [{'id': 'G1', 'marginalCost': 10, 'capacity': 300, 'minOutput': 50, 'rampLimit': 100}, {'id': 'G2', 'marginalCost': 30, 'capacity': 400, 'minOutput': 20, 'rampLimit': 150}] and 100MW of renewable capacity.
```

**Response:** 
```
The dispatch results are: G1 is dispatched at 300MW, G2 is dispatched at 250MW, and there is 100MW of renewable output. The marginal unit is G2.
```

**Prompt:** 
```
What are the available generators in the system?
```

**Response:** 
```
The current generator catalog includes Nuclear (Base Load), Combined Cycle Gas (Mid-Merit), and Open Cycle Gas (Peaking) units.
```

**Prompt:** 
```
Analyze the economics of this dispatch: {'totalCost': 5000, 'averageCostPerUnit': 10, 'curtailmentRatio': 0.1}
```

**Response:** 
```
The dispatch resulted in a total operating cost of 5000, an average cost of 10 per unit, and a curtailment ratio of 0.1.
```

## Capabilities

### Merit Order Ranking
Your agent sorts generators by marginal cost to minimize total system expenditure.

### Constraint Modeling
Your agent applies ramp limits and minimum stable generation levels to every calculation.

### Renewable Integration
The system prioritizes renewable capacity within the dispatch schedule.

### Economic Analysis
Your agent calculates curtailment ratios and total operating costs from dispatch results.

### Parameter Validation
Your agent checks if your requested dispatch is physically feasible before running the full model.

## Use Cases

### Renewable Impact Studies
Model how adding renewable capacity changes the merit order and curtailment levels.

### Cost Optimization
Determine the lowest cost way to meet a specific load requirement using available units.

### Reserve Adequacy Testing
Check if the current generator fleet can satisfy specific reserve requirements.

### Scenario Analysis
Run different demand levels through the model to see how the marginal unit changes.

## Benefits

- Automates the ranking of generators based on marginal cost.
- Incorporates physical constraints like ramp limits and minimum output.
- Provides immediate economic summaries of dispatch results.
- Validates input parameters to prevent impossible dispatch scenarios.

## How It Works

Connect your client to Vinkius and start running power models immediately.

1. Connect your AI client to the Vinkius hosted MCP.
2. Provide your generator data and demand requirements to your agent.
3. Your agent uses the validation tool to check the feasibility of your inputs.
4. Your agent runs the merit order calculation to find the optimal schedule.
5. Your agent summarizes the economic results for your review.

## Frequently Asked Questions

**What kind of constraints does this MCP handle?**
It handles renewable priority, reserve requirements, minimum stable generation levels, and ramp limits.

**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 does it handle renewable energy?**
The tool treats renewables as a priority in the merit order dispatch process.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You connect and use it.

**What is the purpose of the economic summary tool?**
It analyzes a completed dispatch to give you insights into total operating costs and curtailment ratios.

**How does the merit order calculation handle renewable energy?**
Renewable energy sources are treated as having zero marginal cost and are prioritized at the beginning of the dispatch sequence to minimize total operating costs.

**Can I check if my dispatch parameters are valid?**
Yes, you can use the `validate_dispatch_parameters` tool to check if the total capacity is sufficient to meet both the demand and the required reserve before running the full calculation.

**What happens if a generator cannot meet its ramp limit?**
If a dispatch solution violates physical constraints like ramp limits or minimum output levels, the `calculate_merit_order_dispatch` tool will report these in the `violations` array within the result.
