Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

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
NameRequiredDescriptionDefault
idYesID del servicio a reactivar

Implementation Reference

  • 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'] } }, {
  • 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) )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lumile/lumbretravel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server