get_company_overview
Retrieve company overview and key financial metrics by providing a stock ticker symbol, enabling quick insights into stock market performance and company data.
Instructions
Get company overview and key metrics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker symbol |
Implementation Reference
- src/index.ts:221-235 (handler)The main handler function for the 'get_company_overview' tool. It makes an API call to Alpha Vantage's OVERVIEW function using the provided stock symbol and returns the company overview data as formatted JSON.private async handleGetCompanyOverview(args: { symbol: string }) { const response = await this.axiosInstance.get('', { params: { function: 'OVERVIEW', symbol: args.symbol } }); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] }; }
- src/index.ts:97-106 (schema)Input schema definition for the 'get_company_overview' tool, specifying a required 'symbol' string parameter.inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Stock ticker symbol' } }, required: ['symbol'] }
- src/index.ts:94-107 (registration)Tool registration in the ListTools response, including name, description, and input schema.{ name: 'get_company_overview', description: 'Get company overview and key metrics', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Stock ticker symbol' } }, required: ['symbol'] } }
- src/index.ts:125-131 (registration)Dispatch case in CallToolRequest handler that validates arguments and invokes the get_company_overview handler.case 'get_company_overview': { if (!request.params.arguments || typeof request.params.arguments !== 'object') { throw new McpError(ErrorCode.InvalidParams, 'Invalid arguments'); } const args = request.params.arguments as { symbol: string }; return await this.handleGetCompanyOverview(args); }