get_sp500_constituents
Retrieve the current list of S&P 500 companies for financial analysis and market tracking.
Instructions
Get list of S&P 500 index constituents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/market.ts:130-144 (handler)The get_sp500_constituents tool is registered and implemented within the registerMarketTools function in src/tools/market.ts. It fetches data from the '/sp500-constituent' endpoint.
server.registerTool( 'get_sp500_constituents', { description: 'Get list of S&P 500 index constituents', inputSchema: z.object({}), }, async () => { try { const data = await fetchFMP('/sp500-constituent'); return jsonResponse(data); } catch (error) { return errorResponse(error); } } );