get_passengers_by_email
Retrieve passenger details using their email address with the LumbreTravel MCP Server tool, enabling efficient travel program management.
Instructions
Obtiene pasajeros por email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email del pasajero |
Implementation Reference
- src/handlers/tools.handler.ts:1318-1327 (handler)MCP tool handler logic in the callTool switch statement. Extracts the email from arguments, calls the ApiService method, and returns the JSON-formatted passengers data.case 'get_passengers_by_email': { const { email } = args as { email: string } const passengers = await this.apiService.getPassengersByEmail(email) return { content: [{ type: 'text', text: JSON.stringify(passengers, null, 2) }] } }
- src/handlers/tools.handler.ts:256-266 (registration)Tool registration in listTools() method, defining the tool name, description, and input schema for MCP protocol.{ name: 'get_passengers_by_email', description: 'Obtiene pasajeros por email', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Email del pasajero' } }, required: ['email'] } },
- src/services/api.service.ts:277-285 (helper)Supporting API service function that sends an authenticated POST request to the backend endpoint to fetch passengers by email.async getPassengersByEmail (email: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/passengers/get_passengers_by_email`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ email }) }) return await this.handleResponse<any>(response) }