yfinance_get_stock_info
Retrieve stock price, market cap, valuation ratios, dividend yield, 52-week range, sector, industry, and company details by ticker, with optional field filtering and JSON or Markdown output.
Instructions
Get comprehensive information about a stock including price, market cap, ratios, and company details.
Args: ticker: Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') fields: Optional list of field names to include (case-insensitive partial matching). Available fields: name, price, currency, market_cap, pe_ratio, forward_pe, dividend_yield, 52_week_high, 52_week_low, avg_volume, sector, industry, description (default: None, returns all fields) response_format: Output format - 'json' for structured data, 'markdown' for human-readable (default: 'markdown')
Returns: Formatted string containing stock information including: - Current price and currency - Market capitalization - PE ratios (trailing and forward) - Dividend yield - 52-week high/low - Average volume - Sector and industry - Company description
Example: yfinance_get_stock_info("AAPL", "json") yfinance_get_stock_info("TSLA", ["price", "market_cap", "pe_ratio"], "markdown") yfinance_get_stock_info("MSFT", fields=["sector", "industry"])
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": {
"ticker": "<ticker>"
},
"name": "yfinance_get_stock_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| ticker | Yes | ||
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |