reactivate_service_language
Reactivate a disabled service language in LumbreTravel MCP Server using the ID of the specific language for renewed functionality.
Instructions
Reactivar un idioma de servicio.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del idioma de servicio a reactivar |
Implementation Reference
- src/handlers/tools.handler.ts:1735-1741 (handler)The handler logic in the callTool switch statement that extracts the id parameter, calls the ApiService.reactivateServiceLanguage method, and returns the JSON stringified result.case 'reactivate_service_language': { const { id } = args const serviceLanguage = await this.apiService.reactivateServiceLanguage(id) return { content: [{ type: 'text', text: JSON.stringify(serviceLanguage, null, 2) }] } }
- src/handlers/tools.handler.ts:1003-1007 (registration)The tool registration entry in the listTools method, defining the name, description, and input schema for the MCP tool.{ name: 'reactivate_service_language', description: 'Reactivar un idioma de servicio.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del idioma de servicio a reactivar' } }, required: ['id'] } },
- src/services/api.service.ts:590-597 (helper)The helper method in ApiService that performs the actual HTTP PUT request to the backend API to reactivate a service language by ID.async reactivateServiceLanguage (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/servicelanguage/reactivate`, { method: 'PUT', headers, body: JSON.stringify({ id }) }) return await this.handleResponse<any>(response)