top_performing_funds
Identify and retrieve top-performing funds in Turkey based on predefined criteria using the FonParam MCP server input fund codes for reference comparison
Instructions
En iyi performans gösteren fonları getirir
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference_funds | No | Referans fon kodları (virgülle ayrılmış, opsiyonel) |
Input Schema (JSON Schema)
{
"properties": {
"reference_funds": {
"description": "Referans fon kodları (virgülle ayrılmış, opsiyonel)",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/tools.ts:482-483 (handler)The handler logic for the 'top_performing_funds' tool call within the handleToolCall switch statement, delegating execution to the API client.case 'top_performing_funds': return await this.apiClient.getTopPerformingFunds(args.reference_funds);
- src/tools.ts:151-163 (registration)Registration of the 'top_performing_funds' tool in the getTools() method, including name, description, and input schema.{ 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:154-162 (schema)Input schema for validating parameters of the 'top_performing_funds' tool.inputSchema: { type: 'object', properties: { reference_funds: { type: 'string', description: 'Referans fon kodları (virgülle ayrılmış, opsiyonel)' } } }
- src/api-client.ts:64-68 (helper)Core helper function that performs the HTTP request to retrieve top performing funds, using optional reference funds as parameters.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; }