get_passengers_by_fullname
Retrieve passenger information from the LumbreTravel MCP Server by searching with a full name. This tool helps find specific passengers in travel management systems.
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-1316 (handler)Handler logic in callTool method that extracts fullname argument, calls ApiService.getPassengersByFullname, and returns JSON stringified response.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 schema definition in listTools method, including name, description, and input schema requiring 'fullname' string.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 method in ApiService that performs authenticated POST request to backend API endpoint for fetching 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) }