stock_return
Calculate total stock return from purchase price, current price, and dividends per share to evaluate investment performance.
Instructions
Calculate total stock return including price change and dividends.
Parameters:
initial_price — Purchase price per share.
final_price — Current/sale price per share.
dividends — Total dividends received per share (default: 0).
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": {
"initial_price": "<initial_price>",
"final_price": "<final_price>"
},
"name": "stock_return"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| initial_price | Yes | ||
| final_price | Yes | ||
| dividends | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |