top_performing_funds
Identify high-performing investment funds in Turkey by analyzing fund data. Compare and evaluate fund performance to support investment decisions.
Instructions
En iyi performans gösteren fonları getirir
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference_funds | No | Referans fon kodları (virgülle ayrılmış, opsiyonel) |
Implementation Reference
- src/api-client.ts:64-68 (handler)The core handler function that makes the API GET request to '/funds/top-performing' endpoint, optionally passing reference funds as query parameter, and returns FundYield[]async getTopPerformingFunds(referenceFunds?: string): Promise<FundYield[]> { const params = referenceFunds ? { funds: referenceFunds } : {}; const response: AxiosResponse<FundYield[]> = await this.client.get('/funds/top-performing', { params }); return response.data; }
- src/tools.ts:152-163 (registration)MCP tool registration entry defining the name, description, and input schema for top_performing_funds tool.name: 'top_performing_funds', description: 'En iyi performans gösteren fonları getirir', inputSchema: { type: 'object', properties: { reference_funds: { type: 'string', description: 'Referans fon kodları (virgülle ayrılmış, opsiyonel)' } } } },
- src/tools.ts:482-483 (helper)Tool dispatch logic in handleToolCall that routes the call to the apiClient handler.case 'top_performing_funds': return await this.apiClient.getTopPerformingFunds(args.reference_funds);
- src/types.ts:43-57 (schema)Type definition for FundYield, the output type returned by the top_performing_funds tool.export interface FundYield { code: string; title?: string; type?: string; risk_value?: number | null; 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; }