news_sentiment
Fetch recent headlines for a stock ticker, fall back to Yahoo RSS when needed, and distinguish source errors from true no-news results.
Instructions
Get recent news headlines for a stock.
Falls back from yfinance to Yahoo's RSS feed (source='yahoo-rss'), whose items are tagged to the ticker and may include market-wide stories. An 'error' means a source failed; only message='No news found' means there is no news.
Args: symbol: Ticker symbol limit: Number of articles to return (default 10)
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": {
"symbol": "<symbol>"
},
"name": "news_sentiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| symbol | Yes |