get_news_article
Retrieve specific news articles from financial providers to support market analysis and trading decisions within the Interactive Brokers ecosystem.
Instructions
Get a news article.
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": {
"provider_code": "<provider_code>",
"article_id": "<article_id>"
},
"name": "get_news_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider_code | Yes | ||
| article_id | Yes |
Implementation Reference
- src/ib_async_mcp/server.py:787-789 (handler)The handler logic for the 'get_news_article' tool, which uses ib.reqNewsArticleAsync to fetch the article.
if name == "get_news_article": article = await ib.reqNewsArticleAsync(args["provider_code"], args["article_id"]) return {"article_type": article.articleType, "text": article.articleText} - src/ib_async_mcp/server.py:398-409 (registration)The definition and registration of the 'get_news_article' tool with its input schema.
Tool( name="get_news_article", description="Get a news article.", inputSchema={ "type": "object", "properties": { "provider_code": {"type": "string"}, "article_id": {"type": "string"}, }, "required": ["provider_code", "article_id"], }, ),