get_company_overview
Retrieve detailed company information and key metrics using a stock symbol (e.g., AAPL) for comprehensive financial analysis on Alpha Vantage MCP Server.
Instructions
Get company information and key metrics
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | The stock symbol (e.g., AAPL) |
Input Schema (JSON Schema)
{
"properties": {
"symbol": {
"description": "The stock symbol (e.g., AAPL)",
"type": "string"
}
},
"required": [
"symbol"
],
"type": "object"
}
Implementation Reference
- src/index.ts:236-251 (handler)The handler function that implements the get_company_overview tool. It makes an API call to Alpha Vantage's OVERVIEW function using the provided symbol and returns the response 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:110-119 (schema)Input schema definition for the get_company_overview tool, specifying that a 'symbol' string is required.inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'The stock symbol (e.g., AAPL)', }, }, required: ['symbol'], },
- src/index.ts:107-120 (registration)Tool registration in the ListTools response handler, defining 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:55-56 (registration)Registration of the tool handler in the CallTool request switch statement, dispatching to the getCompanyOverview method.case 'get_company_overview': return await this.getCompanyOverview(request.params.arguments);