get_company_overview
Retrieve company information and key financial metrics for any stock symbol to analyze business fundamentals and performance data.
Instructions
Get company information and key metrics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | The stock symbol (e.g., AAPL) |
Implementation Reference
- src/index.ts:236-251 (handler)The core handler function for the 'get_company_overview' tool. It makes an API request to Alpha Vantage's OVERVIEW function using the provided stock symbol and returns the response data as formatted JSON text.private async getCompanyOverview(args: any) { 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:107-120 (registration)Registers the 'get_company_overview' tool in the MCP server's list of tools, providing its name, description, and input schema.{ name: 'get_company_overview', description: 'Get company information and key metrics', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'The stock symbol (e.g., AAPL)', }, }, required: ['symbol'], }, },
- src/index.ts:110-119 (schema)Defines the input schema for the 'get_company_overview' tool, requiring a 'symbol' string parameter.inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'The stock symbol (e.g., AAPL)', }, }, required: ['symbol'], },
- src/index.ts:55-56 (handler)Dispatches the tool call to the specific getCompanyOverview handler method within the main CallToolRequestSchema handler.case 'get_company_overview': return await this.getCompanyOverview(request.params.arguments);