get_services_by_name
Search for travel services by name to find available options in the LumbreTravel system. Returns matching services for planning and management.
Instructions
Buscar servicios por su nombre, retorna la lista de servicios encontrados.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nombre del servicio |
Implementation Reference
- src/handlers/tools.handler.ts:1543-1549 (handler)The execution handler for the 'get_services_by_name' MCP tool. Extracts the 'name' argument and delegates to ApiService.getServicesByName, returning the result as a text content block.case 'get_services_by_name': { const { name } = args as { name: string } const service = await this.apiService.getServicesByName(name) return { content: [{ type: 'text', text: JSON.stringify(service, null, 2) }] } }
- src/handlers/tools.handler.ts:1106-1110 (registration)Registration of the 'get_services_by_name' tool within the listTools() response, defining its name, description, and input schema.{ name: 'get_services_by_name', description: 'Buscar servicios por su nombre, retorna la lista de servicios encontrados.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del servicio' } }, required: ['name'] } }
- src/services/api.service.ts:724-732 (helper)Helper method in ApiService that implements the core logic by making a POST request to the backend endpoint '/integrations/mcp/service/get_services_by_name' with the service name.async getServicesByName (name: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/service/get_services_by_name`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ name }) }) return await this.handleResponse<any>(response) }