calculate_lot_gain
Calculate actual or hypothetical capital gain for an investment lot, using either current market data or a custom sale price and share count.
Instructions
Calculate potential or actual capital gain for a lot.
If shares and sale_price provided, calculates hypothetical gain. Otherwise uses lot's current state and latest price.
Args: lot_guid: Lot GUID (or 8+ char prefix). shares: Optional number of shares to calculate for. Defaults to all remaining shares. sale_price: Optional sale price per share. Defaults to latest price for the commodity.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lot_guid": "<lot_guid>"
},
"name": "calculate_lot_gain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shares | No | ||
| lot_guid | Yes | Lot GUID (32-char hex or 8+ char prefix) | |
| sale_price | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |