yfinance_search_stocks
Search stocks by company name or ticker symbol and verify ticker validity before use. Returns ticker, company name, exchange, and security type in JSON or Markdown.
Instructions
Search for stocks by company name or ticker symbol to verify ticker validity.
Args: query: Search query (company name or ticker symbol) response_format: Output format - 'json' or 'markdown' (default: 'markdown')
Returns: Formatted string containing search results with: - Whether stock was found - Ticker symbol - Company name - Exchange - Security type
Example: yfinance_search_stocks("AAPL", "json") yfinance_search_stocks("Apple", "markdown")
Note: yfinance has limited search capabilities. This tool validates if a ticker exists.
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": {
"query": "<query>"
},
"name": "yfinance_search_stocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |