# Stock Profit/Loss Calculator MCP

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_HAwMqRC5G8A9KVk7eepP7raRNgSJXfXzscNts3mK/mcp
- **Tags:** stocks, options, roi, taxation, risk-management, trading-tools

## Tools

### evaluate_options_strategy
Determines the max profit, max loss, and break-even points for multi-leg options strategies

### plan_position_size
Calculates how many units to purchase for a specific risk management plan

### analyze_stock_trade
Calculates the net profitability and tax liabilities for a completed stock transaction

## Prompt Examples

**Prompt:** 
```
I bought 100 shares of AAPL at $150 on 2023-01-01 and sold them at $180 on 2024-02-01. Commissions were $5 per side and spread cost was $2. My short-term tax rate is 30% and long-term is 15%. What was my net profit?
```

**Response:** 
```
Your net profit after all fees and taxes is $2,873.00. Your ROI is 19.15% and your annualized return is approximately 14.6%.
```

**Prompt:** 
```
Evaluate a vertical spread: Buy 1 CALL at $100 strike for $5 premium, Sell 1 CALL at $110 strike for $2 premium. Current price is $105. Total commission is $1. What is my max profit and break-even?
```

**Response:** 
```
The maximum profit for this strategy is $7.00 (difference in strikes minus net premium and commissions). The break-even price is $103.00.
```

**Prompt:** 
```
I have a $50,000 portfolio. I want to risk only 2% of my total capital on a trade entering at $45 with a stop-loss at $42. How many shares should I buy?
```

**Response:** 
```
You should purchase 166 units. This results in a total position cost of $7,470 and a cash at risk of $498.
```

## Frequently Asked Questions

**How does the tool calculate tax liabilities?**
The `analyze_stock_trade` tool compares your purchase and sale dates. If the holding period is less than one year, it applies the `shortTermTaxRate`; otherwise, it uses the `longTermTaxRate` you provided.

**Can I calculate complex options spreads?**
Yes, using `evaluate_options_strategy`, you can input a JSON array of multiple legs (calls or puts) to find the break-even price and risk/reward ratio for vertical spreads and other multi-leg strategies.

**How do I manage my portfolio risk?**
You can use `plan_position_size` to determine exactly how many units to buy. By providing your total portfolio value and a stop-loss price, the tool calculates the number of shares that keeps your potential loss within your specified risk percentage.