Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

update_passengers

Modify passenger details using the passenger ID to update first name, last name, birthdate, document type, gender, nationality, language, email, or phone. Ensures accurate and consistent passenger information management.

Instructions

Edita pasajeros teniendo en cuenta que se conoce el ID del pasajero.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passengersYes

Implementation Reference

  • The MCP tool handler for 'update_passengers' which extracts the passengers from args and delegates to ApiService.updatePassengers, returning the JSON stringified result.
    case 'update_passengers': { const { passengers } = args as { passengers: any[] } const updatedPassengers = await this.apiService.updatePassengers(passengers) return { content: [{ type: 'text', text: JSON.stringify(updatedPassengers, null, 2) }] } }
  • The input schema and metadata for the 'update_passengers' tool, defining the expected structure of passengers array with required fields including passengerId.
    name: 'update_passengers', description: 'Edita pasajeros teniendo en cuenta que se conoce el ID del pasajero.', inputSchema: { type: 'object', properties: { passengers: { type: 'array', items: { type: 'object', properties: { passengerId: { type: 'string' }, firstname: { type: 'string' }, lastname: { type: 'string' }, birthdate: { type: 'string', description: "Fecha de nacimiento del pasajero (DD-MM-YYYY), si no se especifica usa el valor 'No conocemos'" }, documenttype: { type: 'string', description: 'Tipo de documento, opciones válidas son DNI, Pasaporte, Licencia de Conducir o ID' }, document: { type: 'string', description: "Numero de documento, si no se especifica usa el valor 'No conocemos'" }, gender: { type: 'string', description: 'Género del pasajero, puede ser male, female,non_binary, prefer_not_to_say, other. Si no se especifica deducilo del nombre y apellido' }, nationality: { type: 'string', description: 'Nacionalidad del pasajero de acuerdo a ISO 3166-1. Si no se especifica deducilo del nombre y apellido' }, language: { type: 'string', description: "Idioma del pasajero de acuerdo a ISO 639-1. Si no se especifica deducilo del nombre y apellido. No intentes usar las tools 'list_service_languages' ni 'get_service_language_by_name' para obtener el idioma del pasajero. El idioma del pasajero es simplemente un string en formato ISO 639-1." }, email: { type: 'string', description: "Email del pasajero, si no se especifica usa el valor 'No conocemos'" }, phone: { type: 'string', description: "Telefono del pasajero, si no se especifica usa el valor 'No conocemos'" } }, required: ['passengerId', 'firstname', 'lastname', 'birthdate', 'documenttype', 'document', 'gender', 'nationality', 'language', 'email', 'phone'] } } }, required: ['passengers'] } },
  • The supporting ApiService method that performs the HTTP POST request to the backend endpoint '/integrations/mcp/passengers/update_passengers' with the passengers data.
    async updatePassengers (passengers: any[]) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/passengers/update_passengers`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ passengers }) }) return await this.handleResponse<any>(response) }
  • src/index.ts:39-41 (registration)
    Registers the listTools handler on the MCP server, which includes the 'update_passengers' tool in its returned list.
    ListToolsRequestSchema, async () => this.toolsHandler.listTools() )
  • src/index.ts:44-47 (registration)
    Registers the callTool handler on the MCP server, enabling execution of 'update_passengers' when called.
    this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )

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