Get Stock News
finance_stock_newsRetrieve recent news articles for any stock ticker with titles, publishers, links, and thumbnails to monitor market developments and company updates.
Instructions
Get latest 10 news articles for any stock including title, publisher, link, and thumbnail. Costs $0.05 USDC per request via x402 on Base.
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": "finance_stock_news"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker (e.g., AAPL, MSFT, GOOGL) |
Implementation Reference
- src/index.ts:189-192 (handler)The handler function for 'finance_stock_news' that fetches news data for a given stock symbol.
async ({ symbol }) => { const data = await apiFetch(`${FINANCE_API}/api/v1/stocks/news/${symbol.toUpperCase()}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - src/index.ts:178-193 (registration)Registration of the 'finance_stock_news' tool including title, description, and input schema.
server.registerTool( "finance_stock_news", { title: "Get Stock News", description: `Get latest 10 news articles for any stock including title, publisher, link, and thumbnail. Costs $0.05 USDC per request via x402 on Base.`, inputSchema: { symbol: z.string().min(1).max(10).describe("Stock ticker (e.g., AAPL, MSFT, GOOGL)"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, }, async ({ symbol }) => { const data = await apiFetch(`${FINANCE_API}/api/v1/stocks/news/${symbol.toUpperCase()}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );