get_passengers_by_fullname
Retrieve passenger details by providing their full name using the LumbreTravel MCP Server. Simplify travel program management with precise data access.
Instructions
Obtiene pasajeros por nombre completo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fullname | Yes | Nombre completo del pasajero |
Implementation Reference
- src/handlers/tools.handler.ts:1307-1315 (handler)The MCP tool handler implementation that extracts the fullname argument, calls the ApiService method, and returns the passengers as JSON text content.case 'get_passengers_by_fullname': { const { fullname } = args as { fullname: string } const passengers = await this.apiService.getPassengersByFullname(fullname) return { content: [{ type: 'text', text: JSON.stringify(passengers, null, 2) }] }
- Tool definition including name, description, and input schema for validation, returned by listTools() method.name: 'get_passengers_by_fullname', description: 'Obtiene pasajeros por nombre completo', inputSchema: { type: 'object', properties: { fullname: { type: 'string', description: 'Nombre completo del pasajero' } }, required: ['fullname'] }
- src/services/api.service.ts:267-275 (helper)Helper service method in ApiService that makes authenticated POST request to the backend API endpoint to fetch passengers by fullname.async getPassengersByFullname (fullname: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/passengers/get_passengers_by_fullname`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ fullname }) }) return await this.handleResponse<any>(response) }