reactivate_program
Reactivate a travel program by providing its ID to restore access and functionality within the LumbreTravel system.
Instructions
Reactiva un programa de viajes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/handlers/tools.handler.ts:1219-1225 (handler)Tool handler implementation for 'reactivate_program'. Extracts the program ID from input arguments, calls ApiService.reactivateProgram(id), and returns the result as a JSON-formatted text content block.case 'reactivate_program': { const { id } = args as { id: string } const program = await this.apiService.reactivateProgram(id) return { content: [{ type: 'text', text: JSON.stringify(program, null, 2) }] } }
- src/handlers/tools.handler.ts:170-180 (registration)Tool registration entry in listTools() method, including name, description, and input schema requiring a string 'id'.{ name: 'reactivate_program', description: 'Reactiva un programa de viajes', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] } },
- Input schema for 'reactivate_program' tool: object with required 'id' property of type string.inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }
- src/services/api.service.ts:146-153 (helper)Supporting helper method in ApiService that performs the actual API call to reactivate a program by ID via PUT request to the backend endpoint.async reactivateProgram (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/programs/reactivate/${id}`, { method: 'PUT', headers }) return await this.handleResponse<any>(response) }