# Contribution Margin Calculator MCP for AI Agents MCP

> The Contribution Margin Calculator provides specialized financial tools for measuring unit profitability and assessing product line health. It calculates margins after variable costs and taxes, determines portfolio-wide margin indices based on revenue weight, and flags specific products that fall below your required profit thresholds.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_doZNmfSJClxaHkf4MfLDd67LoOoSmCmgRBQIMsXC/mcp
- **Tags:** margin, profitability, financial-tools, pricing, unit-economics

## Description

Figuring out true product profitability is tough work, especially when you're juggling multiple cost inputs like tax rates and variable expenses. This MCP handles the deep dive into unit economics so you don't have to manually build complex spreadsheets. You can calculate a single item’s margin—both its dollar value and percentage index—in one step. Need to know if your entire product collection is making enough money? The tool determines the overall weighted margin for a group of products based on how much revenue each contributes. It also flags every item that falls short of your minimum profitability goals, saving you hours of manual auditing. You connect this MCP through Vinkius and let your AI client handle all the messy calculations, giving you clear, actionable data points instead of just numbers.

## Tools

### calculate_portfolio_weighted_margin
Determines the total average margin index for a collection of products based on how much they contribute to overall revenue.

### identify_underperforming_products
Flags specific items from your list that drop below an established minimum profitability threshold.

### calculate_unit_margin_metrics
Calculates both the absolute dollar value and percentage margin for a single product after taxes and variable costs are accounted for.

## Prompt Examples

**Prompt:** 
```
What is the unit margin for a product sold at $1,200 with variable costs of $450 and an 8% tax rate?
```

**Response:** 
```
**Unit Margin Calculation**

*   Selling Price: $1,200.00
*   Variable Costs (COGS): $450.00
*   Tax Rate: 8%

**Results:**

*   Contribution Margin Amount: **$756.00**
*   Contribution Margin Index: **63%**
The item is highly profitable.
```

**Prompt:** 
```
Check the weighted margin for Product A (25% margin, 40% weight) and Product B (15% margin, 60% weight).
```

**Response:** 
```
**Portfolio Margin Analysis**

The weighted average margin index is **23.5%**.

This calculation accounts for the fact that Product B generates more revenue, pulling the overall margin closer to its lower rate. This confirms your current mix requires attention.
```

**Prompt:** 
```
Identify any products below a 18% profit threshold from this list: X (15%), Y (22%), and Z (10%).
```

**Response:** 
```
**Underperforming Products Found:**

The following items fall beneath the required 18% profitability floor:

*   **Product X**: Margin is 15%. Needs cost review.
*   **Product Z**: Margin is 10%. Requires immediate pricing or strategic change.
```

## Capabilities

### Calculate single-product margin metrics
It determines both the currency value and percentage index for a product's contribution margin after accounting for taxes and variable costs.

### Determine portfolio weighted margin
The tool computes an aggregate margin index for multiple products by factoring in their relative impact on total revenue.

### Identify underperforming products
It flags specific items in a product list that fail to meet a required profitability threshold you set.

## Use Cases

### Identifying drag on overall profit
A Product Manager needs to know if a new accessory line is hurting profitability. They ask their agent to run `calculate_portfolio_weighted_margin` across all product groups, immediately spotting that the accessories are pulling down the total margin index by 5%.

### Revising pricing for low-profit items
A Pricing Director suspects certain seasonal goods aren't making enough money. They use `identify_underperforming_products` against a 20% threshold, receiving a clear list of the exact SKUs that need price adjustments.

### Calculating profitability for new items
A Financial Analyst gets a sample product and needs to know its true margin. They use `calculate_unit_margin_metrics`, inputting selling prices, variable costs, and tax rates, and immediately get the precise contribution margin index.

### Evaluating mixed revenue streams
A business owner wants to know if their three main service lines (Premium, Standard, Basic) are collectively profitable. They feed all the data into `calculate_portfolio_weighted_margin` for a single, weighted average figure.

## Benefits

- Pinpoint poor performers instantly. Use `identify_underperforming_products` to get a list of exactly which items need a price increase or cost reduction.
- Understand true profitability. The `calculate_unit_margin_metrics` tool provides both the dollar amount and percentage margin for any single item, factoring in taxes and variable costs.
- Get the big picture view. You can run `calculate_portfolio_weighted_margin` to see one aggregate number that tells you how healthy your entire product mix is.
- Save calculation time. Instead of building multiple spreadsheets, your agent handles complex weighted average math instantly.
- Test pricing changes quickly. Model different cost structures and tax rates with the unit margin metrics before implementing them in reality.

## How It Works

The bottom line is that you get immediate, accurate insights into exactly where your business profit comes from, without ever touching a spreadsheet.

1. You feed your AI client the raw data, such as a list of products, their selling prices, and associated costs.
2. The agent calls the appropriate tool—for example, calculating the weighted margin for an entire product line or checking individual unit profitability against taxes.
3. Your agent returns structured financial metrics: precise margin indices, dollar amounts, and clear flags identifying underperforming items.

## Frequently Asked Questions

**How do I figure out if my entire product line is profitable?**
You can use the Contribution Margin Calculator to find the weighted margin index for your whole collection. It calculates a single average percentage that shows the true profit health of all products combined, which is much better than just looking at total sales.

**What is the difference between gross revenue and contribution margin?**
Gross revenue is just how much money came in. The contribution margin is a much deeper metric; it tells you what's left after factoring out variable costs and taxes, giving you a truer picture of actual profit.

**Does the Contribution Margin Calculator help me set better prices?**
Yes. By running unit margin metrics with different cost inputs, you can simulate price changes before implementing them. This helps you ensure that your new pricing meets or exceeds your minimum profit goals.

**How do I check if my current product mix is healthy?**
The weighted margin tool gives you this answer. It takes into account how much revenue each product generates, so it doesn't just tell you the average margin—it tells you the *weighted* average margin based on your actual sales volume.

**What if some of my products are barely making money?**
The Contribution Margin Calculator will flag those items. Using the underperforming product tool, you can set a minimum profitability threshold and immediately get a list of every SKU that falls short, letting you know exactly where to focus your efforts.