fund_type_details
Retrieve detailed information for a specific fund type using its code, enabling analysis and comparison of investment funds in Turkey via the FonParam MCP server.
Instructions
Belirli bir fon tipinin detaylarını getirir
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Fon tipi kodu |
Input Schema (JSON Schema)
{
"properties": {
"type": {
"description": "Fon tipi kodu",
"enum": [
"altin",
"borclanma_araclari",
"degisken",
"fon_sepeti",
"gumus",
"hisse_senedi",
"hisse_senedi_yogun",
"karma",
"katilim",
"kiymetli_madenler",
"para_piyasasi",
"serbest",
"yabanci",
"diger"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
Implementation Reference
- src/api-client.ts:161-164 (handler)Core handler function that executes the tool logic by making an API request to retrieve details for the specified fund type.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)Registration of the 'fund_type_details' tool in the getTools() method, defining its metadata and input schema.{ 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/tools.ts:531-532 (handler)Tool dispatcher in handleToolCall method that routes the call to the specific implementation.case 'fund_type_details': return await this.apiClient.getFundTypeDetails(args.type);
- src/types.ts:2-18 (schema)Enum defining valid fund type codes used in the tool's input schema.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/types.ts:121-133 (schema)TypeScript interface defining the structure of the output data for fund type details.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; }