list_services
Retrieve all available services to link with activities in travel programs using the LumbreTravel MCP Server for streamlined travel management.
Instructions
Obtiene todos los servicios disponibles para asociar a una actividad en un programa de viajes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/tools.handler.ts:1237-1245 (handler)MCP tool handler for 'list_services': calls apiService.getServices() and returns JSON stringified response.case 'list_services': { const services = await this.apiService.getServices() return { content: [{ type: 'text', text: JSON.stringify(services, null, 2) }] } }
- Tool schema definition: no input parameters required, lists all available services.{ name: 'list_services', description: 'Obtiene todos los servicios disponibles para asociar a una actividad en un programa de viajes', inputSchema: { type: 'object', properties: {} } },
- src/index.ts:44-47 (registration)Registers the callTool handler for all MCP tools, including list_services.this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )
- src/services/api.service.ts:365-372 (helper)API service method that performs authenticated GET request to retrieve all services from the backend.async getServices () { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/services`, { method: 'GET', headers }) return await this.handleResponse<any[]>(response) }
- src/index.ts:38-41 (registration)Registers the listTools handler which includes the list_services tool definition.this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() )