company_details
Retrieve detailed information about portfolio management companies, including their funds, using the FonParam MCP server. Ideal for accessing and analyzing company-specific data and fund details in Turkey.
Instructions
Portföy yönetim şirketi detaylarını getirir
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Şirket kodu | |
| include_funds | No | Şirketin fonlarını da getir (varsayılan: true) |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "Şirket kodu",
"type": "string"
},
"include_funds": {
"description": "Şirketin fonlarını da getir (varsayılan: true)",
"type": "boolean"
}
},
"required": [
"code"
],
"type": "object"
}
Implementation Reference
- src/tools.ts:513-515 (handler)Handler for the 'company_details' tool: parses input arguments using CompanyDetailsSchema and delegates to apiClient.getCompanyDetailscase 'ompany_details': const companyParams = CompanyDetailsSchema.parse(args); return await this.apiClient.getCompanyDetails(companyParams.code, companyParams.include_funds);
- src/tools.ts:53-56 (schema)Zod schema used for input validation of the company_details toolconst CompanyDetailsSchema = z.object({ code: z.string(), include_funds: z.boolean().optional() });
- src/tools.ts:305-322 (registration)Tool registration in getTools(): defines name, description, and inputSchema for company_details{ name: 'company_details', description: 'Portföy yönetim şirketi detaylarını getirir', inputSchema: { type: 'object', properties: { code: { type: 'string', description: 'Şirket kodu' }, include_funds: { type: 'boolean', description: 'Şirketin fonlarını da getir (varsayılan: true)' } }, required: ['code'] } },
- src/api-client.ts:120-124 (helper)API client helper method that performs the HTTP request to fetch company detailsasync getCompanyDetails(code: string, includeFunds: boolean = true): Promise<CompanyDetails> { const params = { include_funds: includeFunds }; const response: AxiosResponse<CompanyDetails> = await this.client.get(`/companies/${code}`, { params }); return response.data; }
- src/types.ts:153-156 (schema)TypeScript interface defining the structure of CompanyDetails responseexport interface CompanyDetails { company: FundManagementCompany; stats?: CompanyStatistics; }