# Wine Distribution Margin Calculator AI Agent Connect

> Models multi-tier wine pricing, cascading margins, and regulatory compliance.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_JbH2whHSUukbJgSjrwTnI3a3Z4sRFnpUd3VU0yZ1/ai-agent-connect
- **Tags:** wine, pricing, margins, distribution, regulatory

## Description

This MCP server provides a specialized pricing engine for the wine industry. It models the standard three-tier distribution structure--Producer, Distributor, and Retailer--to calculate cascading margins and final retail costs. Users can use `calculate_full_chain_pricing` to get a complete breakdown from factory to shelf, including state-specific taxes. The engine also supports `get_state_regulatory_rules` to check for franchise state constraints and `apply_quantity_discount` to model volume-based savings. For sensitivity analysis, `simulate_margin_impact` allows users to see how changes in distributor or retailer markups affect the final consumer price.

## Tools

### simulate_margin_impact
Simulates how changing a single margin tier affects the final consumer price

### apply_quantity_discount
Calculates how much the base price changes based on the volume ordered

### calculate_full_chain_pricing
Calculates the complete price breakdown from factory to shelf for a specific volume and location

### get_state_regulatory_rules
Retrieves specific legal constraints and tax rules for a given region

## Prompt Examples

**Prompt:** 
```
What is the complete price breakdown for a wine with a $10 FOB price, 20% distributor margin, and 30% retailer margin in California?
```

**Response:** 
```
The distributor price is $12.00, the wholesale price is $15.60, and the final retail shelf price after California taxes is $18.45.
```

**Prompt:** 
```
How much will I save if I order 500 units instead of 100 for a wine priced at $15.00 FOB?
```

**Response:** 
```
By increasing the order to 500 units, the discounted FOB price drops to $13.50, resulting in a total savings of $750.00.
```

**Prompt:** 
```
If I increase the retailer margin from 30% to 35%, how much will the shelf price change for a $12.00 wholesale cost?
```

**Response:** 
```
Increasing the retailer margin by 5% will increase the final shelf price from $15.60 to $16.38, a difference of $0.78.
```

## Frequently Asked Questions

**How does the three-tier model work?**
The model calculates costs by adding a margin at each stage: the Producer's FOB price is increased by the distributor's markup, and that total is then increased by the retailer's markup, while accounting for regional taxes.

**Can I model direct shipping scenarios?**
Yes. By using `calculate_full_chain_pricing` with the direct shipping option enabled, the tool bypasses the distributor tier to model direct-to-consumer or direct-to-retailer flows.

**Does this account for state-specific laws?**
Yes, the engine uses `get_state_regulatory_rules` to identify franchise state restrictions and apply the correct excise taxes and compliance fees for the target jurisdiction.
