Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

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
NameRequiredDescriptionDefault
emailYesEmail del pasajero

Implementation Reference

  • 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) }] } }
  • 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'] } },
  • 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) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lumile/lumbretravel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server