list_providers
Retrieve all available providers from the LumbreTravel MCP Server to access travel programs and activities.
Instructions
Obtiene todos los proveedores disponibles
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_providers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/tools.handler.ts:1297-1305 (handler)Handler execution for the 'list_providers' tool: fetches providers via ApiService and returns them as a JSON text response.
case 'list_providers': { const providers = await this.apiService.getProviders() return { content: [{ type: 'text', text: JSON.stringify(providers, null, 2) }] } } - Input schema definition for the 'list_providers' tool: no required parameters, returns all available providers.
name: 'list_providers', description: 'Obtiene todos los proveedores disponibles', inputSchema: { type: 'object', properties: {} } }, - src/services/api.service.ts:419-426 (helper)ApiService method that performs an authenticated GET request to the backend API endpoint to retrieve the list of providers.
async getProviders () { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/providers`, { method: 'GET', headers }) return await this.handleResponse<any[]>(response) } - src/index.ts:38-47 (registration)Registers the MCP server request handlers for listing tools (which includes list_providers) and calling tools by name.
this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() ) // Configure handlers for tools this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )