delete_passengers
Removes passenger records from the LumbreTravel MCP Server by specifying their unique IDs, ensuring efficient management of travel-related data.
Instructions
Elimina pasajeros teniendo en cuenta que se conoce el ID del pasajero
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| passengers | Yes |
Implementation Reference
- src/handlers/tools.handler.ts:1362-1368 (handler)Handler for the 'delete_passengers' tool: extracts passengers from args, calls apiService.deletePassengers, and returns the JSON response.case 'delete_passengers': { const { passengers } = args as { passengers: any[] } const deletedPassengers = await this.apiService.deletePassengers(passengers) return { content: [{ type: 'text', text: JSON.stringify(deletedPassengers, null, 2) }] } }
- Input schema and description for the 'delete_passengers' tool, defining an array of passenger objects each requiring an 'id'.{ name: 'delete_passengers', description: 'Elimina pasajeros teniendo en cuenta que se conoce el ID del pasajero', inputSchema: { type: 'object', properties: { passengers: { type: 'array', items: { type: 'object', properties: { id: { type: 'string', description: 'ID del pasajero a eliminar' } }, required: ['id'] } } }, required: ['passengers'] } },
- src/services/api.service.ts:317-325 (helper)ApiService method that sends a POST request to the backend endpoint '/integrations/mcp/passengers/delete_passengers' with the list of passengers to delete.async deletePassengers (passengers: any[]) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/passengers/delete_passengers`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ passengers }) }) return await this.handleResponse<any>(response) }