get_company_profile
Retrieve detailed company profiles including description, industry, sector, CEO, and key business information using stock ticker symbols for financial analysis and research.
Instructions
Get detailed company profile information including description, industry, sector, CEO, and more
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker symbol |
Implementation Reference
- src/tools/financials.ts:40-47 (handler)The handler function for get_company_profile which fetches data from the FMP API.
async (args: z.infer<typeof CompanyProfileSchema>) => { try { const data = await fetchFMP<CompanyProfile[]>(`/profile?symbol=${args.symbol.toUpperCase()}`); return jsonResponse(data); } catch (error) { return errorResponse(error); } } - src/tools/financials.ts:33-48 (registration)The registration of the get_company_profile tool.
// Company Profile server.registerTool( 'get_company_profile', { description: 'Get detailed company profile information including description, industry, sector, CEO, and more', inputSchema: CompanyProfileSchema, }, async (args: z.infer<typeof CompanyProfileSchema>) => { try { const data = await fetchFMP<CompanyProfile[]>(`/profile?symbol=${args.symbol.toUpperCase()}`); return jsonResponse(data); } catch (error) { return errorResponse(error); } } ); - src/tools/financials.ts:20-22 (schema)The Zod schema definition for the get_company_profile tool input.
const CompanyProfileSchema = z.object({ symbol: SymbolSchema.describe('Stock ticker symbol'), });