Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

delete_passengers

Remove passengers from travel programs by specifying their unique IDs to manage participant lists and update booking information.

Instructions

Elimina pasajeros teniendo en cuenta que se conoce el ID del pasajero

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passengersYes

Implementation Reference

  • The main handler logic for the 'delete_passengers' MCP tool. It extracts the list of passengers from the input arguments and delegates the deletion to the ApiService.deletePassengers method, returning the API response as tool output.
    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) }] } }
  • The tool definition including name, description, and input schema for validation of arguments (array of passenger objects with 'id'). This is returned by listTools().
    { 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/index.ts:44-47 (registration)
    Registration of the callTool handler on the MCP server, which routes tool calls (including 'delete_passengers') to ToolsHandler.callTool.
    this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )
  • Supporting API service method that performs the actual HTTP POST request to the backend endpoint /integrations/mcp/passengers/delete_passengers to delete the specified passengers.
    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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lumile/lumbretravel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server