reactivate_service
Reactivate suspended travel services by providing the service ID to restore access to 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)MCP tool handler implementation for 'reactivate_service'. Extracts 'id' from arguments, calls apiService.reactivateService(id), and returns the JSON stringified result.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) }] } }
- src/handlers/tools.handler.ts:1101-1105 (registration)Registration of the 'reactivate_service' tool in the listTools() method, including name, description, and input schema.{ 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-722 (helper)Helper method in ApiService that sends a PUT request to the backend API endpoint to reactivate a service by 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) }