Skip to main content
Glama

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

NameRequiredDescriptionDefault
limitNoSayfa başına kayıt sayısı
max_total_fundsNoMaksimum fon sayısı
min_total_fundsNoMinimum fon sayısı
orderNoSıralama yönü
pageNoSayfa numarası
searchNoŞirket adı veya kodu ile arama
sortNoSı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

  • Handler for the 'list_companies' tool: parses arguments using ListCompaniesSchema and calls apiClient.listCompanies
    case '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' } } } },
  • Zod schema (ListCompaniesSchema) used for input validation in the handler
    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() });
  • API client method listCompanies that performs the actual HTTP GET request to '/companies' endpoint
    async listCompanies(params: ListCompaniesParams = {}): Promise<PaginatedResponse<FundManagementCompany>> { const response: AxiosResponse<PaginatedResponse<FundManagementCompany>> = await this.client.get('/companies', { params }); return response.data; }
  • TypeScript interface ListCompaniesParams defining the parameter types
    export interface ListCompaniesParams { page?: number; limit?: number; sort?: string; order?: 'ASC' | 'DESC'; min_total_funds?: number; max_total_funds?: number; search?: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kemalersin/fonparam-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server