reactivate_program
Activate a dormant travel program by providing its unique ID using the LumbreTravel MCP Server tool. Ideal for restoring paused or inactive travel plans.
Instructions
Reactiva un programa de viajes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- Input schema and metadata for the 'reactivate_program' MCP tool, defining the required 'id' parameter.{ name: 'reactivate_program', description: 'Reactiva un programa de viajes', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] } },
- src/handlers/tools.handler.ts:1219-1225 (handler)Handler logic in callTool method that extracts the program ID from arguments, calls the ApiService.reactivateProgram method, and returns the result as MCP content.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/services/api.service.ts:146-153 (helper)Helper method in ApiService that sends a PUT request to the backend API endpoint to reactivate a program by its ID.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) }
- src/index.ts:38-47 (registration)MCP server registration of the ToolsHandler's listTools and callTool methods as request handlers for tool discovery and execution.this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() ) // Configure handlers for tools this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )