reactivate_passenger
Reactivate a passenger account using their ID to restore access to travel programs and activities in the LumbreTravel system.
Instructions
Reactiva un pasajero teniendo en cuenta que se conoce su ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/handlers/tools.handler.ts:401-411 (registration)Registration of the 'reactivate_passenger' tool including its name, description, and input schema in the listTools method.{ name: 'reactivate_passenger', description: 'Reactiva un pasajero teniendo en cuenta que se conoce su ID', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] } },
- src/handlers/tools.handler.ts:1378-1384 (handler)Handler execution for 'reactivate_passenger' tool: extracts id from args, calls apiService.reactivatePassenger, and returns JSON response.case 'reactivate_passenger': { const { id } = args as { id: string } const reactivatedPassenger = await this.apiService.reactivatePassenger(id) return { content: [{ type: 'text', text: JSON.stringify(reactivatedPassenger, null, 2) }] } }
- src/services/api.service.ts:336-344 (helper)Helper function in ApiService that sends PUT request to backend API to reactivate the passenger by ID.async reactivatePassenger (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/passengers/reactivate`, { method: 'PUT', headers, body: JSON.stringify({ id }) }) return await this.handleResponse<any>(response) }