reactivate_agency
Reactivate a travel agency by providing its ID to restore access to LumbreTravel 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 name, description, and input schema.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 for 'reactivate_agency' tool: extracts id from args, calls apiService.reactivateAgency(id), and returns the JSON stringified result.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 (handler)API service method that performs the actual HTTP PUT request 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) }
- Input schema for the 'reactivate_agency' tool, defining a required 'id' string parameter.type: 'object', properties: { id: { type: 'string', description: 'ID de la agencia a reactivar' } }, required: ['id']