# Wholesale Price Scenario Calculator AI Agent Connect

> Wholesale Price Scenario Calculator is an MCP designed for modeling wholesale electricity markets. It lets your AI client calculate market clearing prices, determine generator merit stacks, and evaluate how outages or reserve shortages impact market stability and pricing.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_pkP09absaVQ8vAfIQn8KdljoVEG88LoL2JUpneZl/ai-agent-connect
- **Tags:** electricity, market-clearing, merit-order, power-grid, economics

## Description

You can use this MCP to build complex electricity market models through your AI client. Instead of manual spreadsheets, you can ask your agent to run clearing price calculations or assess how a specific generator failure shifts the merit stack. It handles the math for marginal costs and reserve adequacy, allowing you to focus on the economic implications of different grid scenarios. You can test how adding renewable capacity or changing fuel costs affects the final clearing price. It is built for anyone needing to simulate market dynamics, from assessing the impact of sudden outages to checking if current reserves meet regulatory requirements.

## Tools

### analyze_reserve_adequacy
This tool checks if the current system capacity meets specific reserve requirements for a given demand level.

### get_unit_marginal_costs
This tool calculates the marginal cost for a specific generator based on its fuel cost and heat rate.

### calculate_market_clearing
This tool finds the market clearing price and identifies the specific unit that sets the price for a given demand scenario.

### simulate_outage_impact
This tool models how the failure of specific generators changes market prices and overall grid stability.

## Prompt Examples

**Prompt:** 
```
Calculate the market clearing for a scenario with 500MW demand and these generator offers: [{"id": "G1", "capacity": 300, "fuelCost": 20, "heatRate": 1.0}, {"id": "G2", "capacity": 300, "fuelCost": 50, "heatRate": 1.2}] with 50MW of renewables and 20MW imports.
```

**Response:** 
```
The market clearing price is 50.0, set by unit G2.
```

**Prompt:** 
```
What is the marginal cost for a generator with a fuel cost of 30 and a heat rate of 1.5?
```

**Response:** 
```
The marginal cost for the generator is 45.0.
```

**Prompt:** 
```
Check if the system has enough reserves for 1000MW demand with 1200MW total capacity and a 150MW reserve requirement.
```

**Response:** 
```
The reserve margin is 50.0, which is inadequate to meet the 150MW requirement.
```

## Capabilities

### Price Modeling
Your agent calculates the exact price-setting unit and clearing price for any demand scenario.

### Outage Simulation
The AI models how losing specific generation capacity impacts market prices.

### Reserve Assessment
Your client evaluates if the grid has enough capacity to meet demand and regulatory reserve margins.

### Cost Analysis
The MCP computes marginal costs for individual units using fuel and heat rate data.

## Use Cases

### Price Sensitivity Testing
Run scenarios to see how changes in fuel costs for specific units shift the market clearing price.

### Reliability Assessment
Verify if the system can maintain required reserve margins during peak demand periods.

### Contingency Planning
Simulate the loss of a major generator to see the resulting price spikes or stability issues.

### Merit Order Analysis
Determine the order of dispatch for various generators to understand market dynamics.

## Benefits

- Replaces manual spreadsheet modeling with direct AI-driven calculations.
- Provides immediate feedback on how generator outages shift market prices.
- Automates the calculation of marginal costs from fuel and heat rate inputs.
- Enables rapid testing of reserve adequacy against specific demand levels.

## How It Works

Connect your AI client to the Vinkius hosted MCP to start running market models.

1. Connect your AI client to the MCP via Vinkius.
2. Provide your demand, capacity, and cost data to your agent.
3. Ask your agent to run a specific tool like calculate_market_clearing.
4. Review the calculated prices, reserve margins, or outage impacts.

## Frequently Asked Questions

**What can this MCP do for electricity market modeling?**
It calculates market clearing prices, determines generator marginal costs, evaluates reserve adequacy, and simulates the impact of generator outages.

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

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You connect your client and start using the tools.

**Can I simulate the impact of a generator failing?**
Yes, you can use the simulate_outage_impact tool to see how generator failures affect prices and market stability.

**How does it calculate marginal costs?**
The MCP uses the fuel cost and heat rate of a generator to determine its marginal cost through the get_unit_marginal_costs tool.

**How is the market clearing price determined?**
The price is determined by the marginal cost of the last unit required to satisfy the total demand and reserve requirements.

**Can I simulate the impact of a power plant failure?**
Yes, you can use the `simulate_outage_impact` tool to recalculate the market state after specific units are removed from the supply pool.

**What happens if the demand exceeds available supply?**
The market will return an infeasible status if the total available capacity cannot meet both the demand and the required reserve margin.
