delete_passenger
Remove a passenger from the LumbreTravel system using their unique ID to manage travel program data effectively and maintain accurate records.
Instructions
Elimina un pasajero teniendo en cuenta que se conoce su ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| passengerId | Yes |
Implementation Reference
- src/handlers/tools.handler.ts:391-400 (registration)Registration of the 'delete_passenger' tool including its name, description, and input schema in the listTools method.name: 'delete_passenger', description: 'Elimina un pasajero teniendo en cuenta que se conoce su ID', inputSchema: { type: 'object', properties: { passengerId: { type: 'string' } }, required: ['passengerId'] } },
- src/handlers/tools.handler.ts:1370-1376 (handler)The handler function in callTool that processes the 'delete_passenger' tool call by invoking the API service and returning the result.case 'delete_passenger': { const { passengerId } = args as { passengerId: string } const deletedPassenger = await this.apiService.deletePassenger(passengerId) return { content: [{ type: 'text', text: JSON.stringify(deletedPassenger, null, 2) }] } }
- src/services/api.service.ts:327-334 (helper)Helper method in ApiService that sends a DELETE HTTP request to the backend API to delete a passenger by ID.async deletePassenger (passengerId: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/passengers/delete/${passengerId}`, { method: 'DELETE', headers }) return await this.handleResponse<any>(response) }