get_historical_comparison
Compare historical price performance across multiple stocks to calculate percentage returns for each ticker over a selected period.
Instructions
Compare historical price performance of multiple stocks.
Args: tickers: Comma or space-separated ticker symbols (e.g., 'AAPL,MSFT,GOOGL') period: Time period for comparison (default: 1y)
Returns: Performance comparison showing % returns for each ticker
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": {
"tickers": "<tickers>"
},
"name": "get_historical_comparison"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 1y | |
| tickers | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |