robinhood_get_news
Retrieve recent news articles for a stock using its ticker symbol. Supports analysis and research.
Instructions
Get recent news articles for a stock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker symbol |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/robinhood_mcp/tools.py:306-317 (handler)The actual implementation of get_news that calls rh.stocks.get_news, normalizes the symbol, and returns a list of news articles.
def get_news(symbol: str) -> list[dict[str, Any]]: """Get recent news articles for a stock. Args: symbol: Stock ticker symbol. Returns: List of news articles with title, url, source, published_at, etc. """ symbol = _normalize_symbol(symbol) result = _safe_call(rh.stocks.get_news, symbol) return result if isinstance(result, list) else [] - src/robinhood_mcp/server.py:195-206 (handler)The MCP tool handler 'robinhood_get_news' registered with @mcp.tool(), which calls _ensure_logged_in() then delegates to the get_news helper.
@mcp.tool() def robinhood_get_news(symbol: str) -> list: """Get recent news articles for a stock. Args: symbol: Stock ticker symbol Returns list of news articles with title, URL, source, and publication date. """ _ensure_logged_in() return get_news(symbol) - src/robinhood_mcp/server.py:196-206 (schema)The tool signature: def robinhood_get_news(symbol: str) -> list with docstring describing the return value (list of news articles with title, URL, source, publication date).
def robinhood_get_news(symbol: str) -> list: """Get recent news articles for a stock. Args: symbol: Stock ticker symbol Returns list of news articles with title, URL, source, and publication date. """ _ensure_logged_in() return get_news(symbol) - src/robinhood_mcp/server.py:195-195 (registration)The @mcp.tool() decorator that registers robinhood_get_news as a FastMCP tool.
@mcp.tool()