delete_vehicle
Remove a vehicle from the LumbreTravel system by providing its unique ID to manage travel program resources.
Instructions
Eliminar un vehículo.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del vehículo a eliminar |
Implementation Reference
- src/handlers/tools.handler.ts:1607-1613 (handler)Handler implementation for the 'delete_vehicle' MCP tool. Extracts the vehicle ID from arguments, calls ApiService.deleteVehicle(id), and returns the JSON response.case 'delete_vehicle': { const { id } = args as { id: string } const vehicle = await this.apiService.deleteVehicle(id) return { content: [{ type: 'text', text: JSON.stringify(vehicle, null, 2) }] } }
- Schema definition for the 'delete_vehicle' tool in listTools(), including input schema requiring 'id' string.{ name: 'delete_vehicle', description: 'Eliminar un vehículo.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del vehículo a eliminar' } }, required: ['id'] } },
- src/handlers/tools.handler.ts:912-916 (registration)Tool registration in listTools() method, which responds to ListToolsRequestSchema.{ name: 'delete_vehicle', description: 'Eliminar un vehículo.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del vehículo a eliminar' } }, required: ['id'] } },
- src/services/api.service.ts:837-844 (helper)ApiService.deleteVehicle helper method that makes DELETE request to backend API to delete vehicle by ID.async deleteVehicle (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/vehicle/delete/${id}`, { method: 'DELETE', headers }) return await this.handleResponse<any>(response) }