Skip to main content
Glama

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

Implementation Reference

  • 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);
  • 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' } } } },
  • 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; }
  • 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; }

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