reactivate_service
Reactivate a service in LumbreTravel MCP Server by providing the service ID to restore functionality and access for managing travel programs and activities.
Instructions
Reactivar un servicio
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del servicio a reactivar |
Implementation Reference
- src/handlers/tools.handler.ts:1535-1541 (handler)Handler implementation for the 'reactivate_service' tool. Extracts the service ID from arguments, calls the ApiService.reactivateService method, and returns the JSON-stringified result as tool output.case 'reactivate_service': { const { id } = args as { id: string } const service = await this.apiService.reactivateService(id) return { content: [{ type: 'text', text: JSON.stringify(service, null, 2) }] } }
- Tool schema definition and registration in listTools(). Specifies the name, description, and input schema requiring a 'id' string for the service to reactivate.name: 'reactivate_service', description: 'Reactivar un servicio', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del servicio a reactivar' } }, required: ['id'] } }, {
- src/services/api.service.ts:714-721 (helper)Helper method in ApiService that performs the actual API call to reactivate a service by sending a PUT request to /integrations/mcp/service/reactivate with the service ID.async reactivateService (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/service/reactivate`, { method: 'PUT', headers, body: JSON.stringify({ id }) }) return await this.handleResponse<any>(response)
- src/index.ts:38-41 (registration)Registers the listTools handler on the MCP server, which includes the 'reactivate_service' tool in the tools list.this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() )
- src/index.ts:44-47 (registration)Registers the callTool handler on the MCP server, enabling execution of 'reactivate_service' when called.this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )