get_passengers_by_email
Retrieve passenger information from the LumbreTravel MCP Server by searching with an email address to manage travel program data.
Instructions
Obtiene pasajeros por email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email del pasajero |
Implementation Reference
- src/handlers/tools.handler.ts:257-266 (registration)Registers the MCP tool 'get_passengers_by_email' including its name, description, and input schema in the listTools() response.name: 'get_passengers_by_email', description: 'Obtiene pasajeros por email', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Email del pasajero' } }, required: ['email'] } },
- Input schema definition for the 'get_passengers_by_email' tool, requiring an 'email' string parameter.inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Email del pasajero' } }, required: ['email'] }
- src/handlers/tools.handler.ts:1318-1327 (handler)MCP tool handler implementation in callTool method: extracts email from args, calls ApiService.getPassengersByEmail, and returns JSON-formatted passengers.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/services/api.service.ts:277-285 (helper)Helper service method that performs authenticated POST request to backend API endpoint /integrations/mcp/passengers/get_passengers_by_email with the 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) }