# Contribution Margin Calculator MCP for AI Agents AI Agent Connect

> Contribution Margin Calculator helps you see the real profit behind your products. It handles the math for unit margins, calculates weighted averages for your entire product portfolio, and flags items that aren't hitting your profitability targets. Whether you're pricing a new launch or reviewing your current lineup, this Connector gives you the numbers you need to make better calls.

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

## Description

Stop guessing which products are actually making you money. This Connector takes the heavy lifting out of unit economics by letting you run profitability checks on individual items or entire product lines. You can figure out exactly how much margin you're keeping after taxes and variable costs, then see how those numbers stack up across your whole catalog based on how much each item contributes to your revenue. It's about getting a clear picture of your business health without jumping between spreadsheets. When you connect this to Vinkius, you're giving your agent the ability to act as a real-time financial analyst. You can ask it to identify which products are dragging down your average margin or to double-check the math on a new price point. It turns raw product data into actionable insights about where to invest more and what to cut from your lineup.

## Tools

### calculate_portfolio_weighted_margin
Determine the aggregate margin index for a group of products based on their revenue weight. Use this to see the health of your entire catalog.

### identify_underperforming_products
Flag specific items that fail to meet your required profitability threshold. This helps you quickly spot and remove laggards.

### calculate_unit_margin_metrics
Get the currency value and percentage margin for a single product after taxes and costs. This helps you see the real profit per sale.

## Prompt Examples

**Prompt:** 
```
What's the margin on a shirt that costs $15 to make, sells for $40, and has a 7% tax?
```

**Response:** 
```
Based on those numbers, here is the margin breakdown for the shirt:

*   **Selling Price:** $40.00
*   **Variable Costs:** $15.00
*   **Tax Amount:** $2.80
*   **Contribution Margin:** **$22.20**
*   **Margin Index:** **55.5%**
```

**Prompt:** 
```
I have three products: A (20% margin, 80% revenue), B (40% margin, 15% revenue), and C (10% margin, 5% revenue). What's my total weighted margin?
```

**Response:** 
```
To find your weighted average, I've factored in the revenue impact for each product:

| Product | Margin | Revenue Weight | Weighted Contribution |
| :--- | :--- | :--- | :--- |
| Product A | 20% | 0.80 | 16% |
| Product B | 40% | 0.15 | 6% |
| Product C | 10% | 0.05 | 0.5% |
| **Total** | | | **22.5%** |
```

**Prompt:** 
```
Find everything in my list that makes less than a 12% margin.
```

**Response:** 
```
I've audited your current product list against the 12% threshold. Here are the items falling below your target:

*   **Product X:** 8.5% margin
*   **Product Y:** 11.2% margin
*   **Product Z:** 4.0% margin

Would you like me to calculate the adjusted price points for these items to bring them above 12%?
```

## Capabilities

### Calculate per-item profit
Get the exact currency value and percentage margin for any single product after taxes and variable costs.

### Weighted portfolio analysis
See the aggregate margin for your entire product mix based on actual revenue impact.

### Profitability auditing
Automatically flag products that fail to meet your specific profitability targets.

### Tax-adjusted margin checking
Factor in taxes and variable costs for more accurate bottom-line numbers.

### Revenue-based weighting
Weight your portfolio analysis by revenue impact rather than just unit volume.

## Use Cases

### New Product Launch
A manager asks the agent to check the margin on a new item with $50 costs and a $100 price to see if it hits the target.

### Portfolio Review
A retail lead asks for the weighted margin of the Home Goods category to see if it's as profitable as Electronics.

### Inventory Cleanup
An owner wants to find every product in their store making less than a 15% margin to decide what to discontinue.

### Discount Strategy
A marketing lead wants to know how much they can discount a high-volume item without falling below a 20% margin.

## Benefits

- Stop guessing on margins. Use calculate_unit_margin_metrics to see the real profit on every single item.
- See the big picture. Use calculate_portfolio_weighted_margin to understand how your entire catalog contributes to the bottom line.
- Cut the laggards fast. Use identify_underperforming_products to instantly spot items that aren't hitting your targets.
- Accurate tax accounting. Every calculation factors in taxes and variable costs so you don't get surprised by your net profit.
- Data-driven pricing. Move from gut feeling to hard numbers when deciding on discounts or price increases.

## How It Works

The bottom line is you get instant clarity on product profitability without manual spreadsheet updates.

1. Connect the Connector to your preferred AI client via the Vinkius dashboard.
2. Provide the agent with your product list, costs, and selling prices.
3. Ask it to run margin calculations or identify laggards in your lineup.

## Frequently Asked Questions

**Can the Contribution Margin Calculator handle taxes?**
Yes, it factors in taxes and variable costs automatically to give you a net margin rather than just a gross one.

**How does the Contribution Margin Calculator handle weighted portfolios?**
It calculates your aggregate margin by weighting each product's margin against its impact on your total revenue.

**Can I use the Contribution Margin Calculator to find my least profitable items?**
Absolutely. You can set a specific profitability threshold and have the agent flag every item that falls below it.

**Does the Contribution Margin Calculator work for e-commerce?**
It is ideal for e-commerce because it handles the unit economics of individual products and entire catalogs in real time.

**How accurate are the margin calculations in the Contribution Margin Calculator?**
The calculations are precise. By providing the exact costs, taxes, and prices, the agent performs the math perfectly every time.

**Can I use the Contribution Margin Calculator to check different price points?**
Yes, you can ask your agent to run multiple scenarios to see how different price points affect your total margin.

**How do I calculate the margin for a single product?**
Use the `calculate_unit_margin_metrics` tool by providing the selling price, variable cost per unit, and the tax rate percentage.

**How does the portfolio margin calculation work?**
The `calculate_portfolio_weighted_margin` tool calculates a weighted average. You provide an array of products, each with its margin index and revenue weight (the sum of weights must equal 1).

**Yes, use the `identify_underperforming_products` tool. Simply provide a list of your products and their margin indices along with a minimum threshold value.**
Yes, use the `identify_underperforming_products` tool. Simply provide a list of your products and their margin indices along with a minimum threshold value.