list_companies
Retrieve and filter portfolio management companies in Turkey using page, limit, sorting, and search parameters to access detailed fund-related insights.
Instructions
Portföy yönetim şirketlerini listeler
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Sayfa başına kayıt sayısı | |
| max_total_funds | No | Maksimum fon sayısı | |
| min_total_funds | No | Minimum fon sayısı | |
| order | No | Sıralama yönü | |
| page | No | Sayfa numarası | |
| search | No | Şirket adı veya kodu ile arama | |
| sort | No | Sıralama alanı |
Input Schema (JSON Schema)
{
"properties": {
"limit": {
"description": "Sayfa başına kayıt sayısı",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"max_total_funds": {
"description": "Maksimum fon sayısı",
"minimum": 0,
"type": "number"
},
"min_total_funds": {
"description": "Minimum fon sayısı",
"minimum": 0,
"type": "number"
},
"order": {
"description": "Sıralama yönü",
"enum": [
"ASC",
"DESC"
],
"type": "string"
},
"page": {
"description": "Sayfa numarası",
"minimum": 1,
"type": "number"
},
"search": {
"description": "Şirket adı veya kodu ile arama",
"type": "string"
},
"sort": {
"description": "Sıralama alanı",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/tools.ts:509-511 (handler)Handler for the 'list_companies' tool: parses arguments using ListCompaniesSchema and calls apiClient.listCompaniescase 'list_companies': const companiesParams = ListCompaniesSchema.parse(args); return await this.apiClient.listCompanies(companiesParams);
- src/tools.ts:262-304 (registration)Registration of the 'list_companies' tool in the getTools() method, including name, description, and JSON input schema{ 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/tools.ts:43-51 (schema)Zod schema (ListCompaniesSchema) used for input validation in the handlerconst 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/api-client.ts:112-115 (helper)API client method listCompanies that performs the actual HTTP GET request to '/companies' endpointasync 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 ListCompaniesParams defining the parameter typesexport interface ListCompaniesParams { page?: number; limit?: number; sort?: string; order?: 'ASC' | 'DESC'; min_total_funds?: number; max_total_funds?: number; search?: string; }