reactivate_service_language
Reactivate a previously disabled service language in the LumbreTravel system to restore its availability for travel programs and activities.
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)MCP tool handler implementation in callTool switch case. Extracts 'id' from args, calls apiService.reactivateServiceLanguage(id), and returns JSON response.case 'reactivate_service_language': { const { id } = args const serviceLanguage = await this.apiService.reactivateServiceLanguage(id) return { content: [{ type: 'text', text: JSON.stringify(serviceLanguage, null, 2) }] } }
- Tool schema definition including name, description, and input schema requiring 'id' string.{ 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/handlers/tools.handler.ts:1112-1113 (registration)Tool registration within the listTools() method that returns all available MCP tools.} }
- src/services/api.service.ts:590-597 (helper)Core API service method that performs the PUT request 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)
- src/index.ts:44-47 (registration)MCP server registration of the callTool handler from ToolsHandler for executing tools.this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )