reactivate_passenger
Reactivate a passenger account using the passenger's ID with the LumbreTravel MCP Server tool. Restore access to travel programs and activities efficiently.
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:1378-1384 (handler)MCP tool handler implementation for 'reactivate_passenger'. Extracts passenger ID from arguments, calls ApiService.reactivatePassenger, and formats the response as MCP content.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) }] } }
- Tool schema definition including name, description, and input schema requiring a string 'id'.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:402-411 (registration)Registration of the 'reactivate_passenger' tool 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/services/api.service.ts:336-344 (helper)Helper service method that performs the actual HTTP PUT request to reactivate a passenger by ID via the LumbreTravel API.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) }