compare_stocks
Compare multiple stocks side-by-side on key financial metrics such as P/E ratio, profit margin, and debt-to-equity to make informed investment decisions.
Instructions
Compare multiple stocks side-by-side on a single metric.
Args: tickers: List of ticker symbols, e.g. ['AAPL', 'MSFT', 'GOOGL'] metric: Metric to compare. Options include: 'pe_ratio_ttm', 'pe_ratio_forward', 'price_to_book', 'price_to_sales_ttm', 'ev_to_ebitda', 'profit_margin', 'roe', 'roa', 'debt_to_equity', 'current_ratio', 'revenue_growth_yoy', 'earnings_growth_yoy', 'market_cap', 'current_price', 'dividend_yield'
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": "compare_stocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | No | pe_ratio_ttm | |
| tickers | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |