reactivate_vehicle
Reactivate a previously deactivated vehicle in the LumbreTravel system by providing its ID to restore availability for travel programs.
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:917-920 (registration)Tool registration and schema definition in listTools() method. Defines name 'reactivate_vehicle', description, and input schema requiring '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/handlers/tools.handler.ts:1615-1621 (handler)Handler implementation in callTool() switch statement. Extracts id from args, calls apiService.reactivateVehicle(id), and returns 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/services/api.service.ts:846-854 (helper)Core helper method in ApiService that performs the HTTP PUT request to reactivate vehicle by id.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) }