reactivate_vehicle
Reactivate a vehicle by providing its ID to restore its functionality in the LumbreTravel MCP Server, enabling seamless travel program management.
Instructions
Reactivar un vehículo.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del vehículo a reactivar |
Implementation Reference
- src/handlers/tools.handler.ts:1615-1621 (handler)MCP tool handler implementation for 'reactivate_vehicle'. Extracts the vehicle ID from arguments, calls ApiService.reactivateVehicle(id), and returns the JSON response.case 'reactivate_vehicle': { const { id } = args as { id: string } const vehicle = await this.apiService.reactivateVehicle(id) return { content: [{ type: 'text', text: JSON.stringify(vehicle, null, 2) }] } }
- src/handlers/tools.handler.ts:917-921 (registration)Tool registration and schema definition in listTools(). Defines the tool name, description, and input schema requiring a string 'id'.{ name: 'reactivate_vehicle', description: 'Reactivar un vehículo.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del vehículo a reactivar' } }, required: ['id'] } },
- src/services/api.service.ts:846-854 (helper)ApiService helper method that performs the actual API call to reactivate a vehicle by ID via PUT request to /integrations/mcp/vehicle/reactivate.async reactivateVehicle (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/vehicle/reactivate`, { method: 'PUT', headers, body: JSON.stringify({ id }) }) return await this.handleResponse<any>(response) }