fund_type_details
Retrieve detailed information about specific investment fund types in Turkey, including performance metrics and characteristics for informed financial analysis.
Instructions
Belirli bir fon tipinin detaylarını getirir
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Fon tipi kodu |
Implementation Reference
- src/api-client.ts:161-164 (handler)Core handler function that performs the HTTP GET request to the `/fund-types/${type}` API endpoint and returns the FundTypeYields data.
async getFundTypeDetails(type: string): Promise<FundTypeYields> { const response: AxiosResponse<FundTypeYields> = await this.client.get(`/fund-types/${type}`); return response.data; } - src/tools.ts:410-424 (registration)MCP tool registration entry defining the name, description, and input schema for 'fund_type_details' tool.
{ name: 'fund_type_details', description: 'Belirli bir fon tipinin detaylarını getirir', inputSchema: { type: 'object', properties: { type: { type: 'string', description: 'Fon tipi kodu', enum: Object.values(FundTypeEnum) } }, required: ['type'] } }, - src/types.ts:121-133 (schema)TypeScript interface defining the structure of the output data returned by the fund_type_details tool.
export interface FundTypeYields extends FundType { yield_1d?: number | null; yield_1w?: number | null; yield_1m?: number | null; yield_3m?: number | null; yield_6m?: number | null; yield_ytd?: number | null; yield_1y?: number | null; yield_3y?: number | null; yield_5y?: number | null; total_funds: number; total_aum?: number | null; } - src/types.ts:3-18 (schema)Enum defining valid fund type codes used in the input parameter 'type' for the tool.
export enum FundTypeEnum { ALTIN = 'altin', BORCLANMA_ARACLARI = 'borclanma_araclari', DEGISKEN = 'degisken', FON_SEPETI = 'fon_sepeti', GUMUS = 'gumus', HISSE_SENEDI = 'hisse_senedi', HISSE_SENEDI_YOGUN = 'hisse_senedi_yogun', KARMA = 'karma', KATILIM = 'katilim', KIYMETLI_MADENLER = 'kiymetli_madenler', PARA_PIYASASI = 'para_piyasasi', SERBEST = 'serbest', YABANCI = 'yabanci', DIGER = 'diger' } - src/tools.ts:531-532 (handler)Switch case in handleToolCall that routes the tool invocation to the apiClient handler.
case 'fund_type_details': return await this.apiClient.getFundTypeDetails(args.type);