reactivate_agency
Restore inactive travel agencies on the LumbreTravel MCP Server by providing the agency ID to re-enable access to travel programs and activities.
Instructions
Reactivar una agencia
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID de la agencia a reactivar |
Implementation Reference
- src/handlers/tools.handler.ts:744-751 (registration)Registration of the 'reactivate_agency' tool including its input schema in the listTools() method.name: 'reactivate_agency', description: 'Reactivar una agencia', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID de la agencia a reactivar' } }, required: ['id'] } },
- src/handlers/tools.handler.ts:1455-1461 (handler)Handler logic in callTool() that executes the reactivate_agency tool by invoking the ApiService method.case 'reactivate_agency': { const { id } = args as { id: string } const agency = await this.apiService.reactivateAgency(id) return { content: [{ type: 'text', text: JSON.stringify(agency, null, 2) }] } }
- src/services/api.service.ts:472-480 (helper)ApiService helper method that sends a PUT request to the backend API to reactivate an agency by ID.async reactivateAgency (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/agency/reactivate`, { method: 'PUT', headers, body: JSON.stringify({ id }) }) return await this.handleResponse<any>(response) }