list_companies
Retrieve portfolio management companies with filtering and sorting options to analyze investment fund data in Turkey.
Instructions
Portföy yönetim şirketlerini listeler
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Sayfa numarası | |
| limit | No | Sayfa başına kayıt sayısı | |
| sort | No | Sıralama alanı | |
| order | No | Sıralama yönü | |
| min_total_funds | No | Minimum fon sayısı | |
| max_total_funds | No | Maksimum fon sayısı | |
| search | No | Şirket adı veya kodu ile arama |
Implementation Reference
- src/tools.ts:509-511 (handler)The handler function for the 'list_companies' tool within handleToolCall. It parses the input arguments using the Zod schema and delegates to the API client method.case 'list_companies': const companiesParams = ListCompaniesSchema.parse(args); return await this.apiClient.listCompanies(companiesParams);
- src/tools.ts:43-51 (schema)Zod schema for validating input parameters to the list_companies tool.const ListCompaniesSchema = z.object({ page: z.number().min(1).optional(), limit: z.number().min(1).max(100).optional(), sort: z.string().optional(), order: z.enum(['ASC', 'DESC']).optional(), min_total_funds: z.number().min(0).optional(), max_total_funds: z.number().min(0).optional(), search: z.string().optional() });
- src/tools.ts:262-304 (registration)Tool registration in getTools() method, defining name, description, and input schema for MCP.{ name: 'list_companies', description: 'Portföy yönetim şirketlerini listeler', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Sayfa numarası', minimum: 1 }, limit: { type: 'number', description: 'Sayfa başına kayıt sayısı', minimum: 1, maximum: 100 }, sort: { type: 'string', description: 'Sıralama alanı' }, order: { type: 'string', description: 'Sıralama yönü', enum: ['ASC', 'DESC'] }, min_total_funds: { type: 'number', description: 'Minimum fon sayısı', minimum: 0 }, max_total_funds: { type: 'number', description: 'Maksimum fon sayısı', minimum: 0 }, search: { type: 'string', description: 'Şirket adı veya kodu ile arama' } } } },
- src/api-client.ts:112-115 (helper)API client method that performs the HTTP GET request to fetch the list of companies.async listCompanies(params: ListCompaniesParams = {}): Promise<PaginatedResponse<FundManagementCompany>> { const response: AxiosResponse<PaginatedResponse<FundManagementCompany>> = await this.client.get('/companies', { params }); return response.data; }
- src/types.ts:219-227 (schema)TypeScript interface defining the parameters for listCompanies.export interface ListCompaniesParams { page?: number; limit?: number; sort?: string; order?: 'ASC' | 'DESC'; min_total_funds?: number; max_total_funds?: number; search?: string; }