Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

add_passengers_to_program

Add passengers to a travel program by providing program ID and passenger details to manage participant lists for organized trips.

Instructions

Agrega pasajeros a un programa.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
programIdYesID del programa
passengersYesLista de pasajeros

Implementation Reference

  • Core handler function that makes the API call to add passengers to a program.
    async addPassengersToProgram (programId: string, passengers: any[]) {
      const headers = await this.getHeaders()
      const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/programs/add_passengers`, {
        method: 'POST',
        headers: { ...headers, 'Content-Type': 'application/json' },
        body: JSON.stringify({ programId, passengers })
      })
      return await this.handleResponse<any>(response)
    }
  • MCP tool handler wrapper that calls the ApiService method and formats the response.
    case 'add_passengers_to_program': {
      const { programId, passengers } = args as { programId: string, passengers: any[] }
      const addedPassengers = await this.apiService.addPassengersToProgram(programId, passengers)
      return {
        content: [{ type: 'text', text: JSON.stringify(addedPassengers, null, 2) }]
      }
    }
  • Tool registration including name, description, and input schema in listTools() method.
      name: 'add_passengers_to_program',
      description: 'Agrega pasajeros a un programa.',
      inputSchema: {
        type: 'object',
        properties: {
          programId: { type: 'string', description: 'ID del programa' },
          passengers: {
            type: 'array',
            description: 'Lista de pasajeros',
            items: {
              type: 'object',
              properties: {
                id: { type: 'string' },
                name: { type: 'string' }
              },
              required: ['id', 'name']
            }
          }
        },
        required: ['programId', 'passengers']
      }
    },
  • Input schema definition for the tool parameters.
      type: 'object',
      properties: {
        programId: { type: 'string', description: 'ID del programa' },
        passengers: {
          type: 'array',
          description: 'Lista de pasajeros',
          items: {
            type: 'object',
            properties: {
              id: { type: 'string' },
              name: { type: 'string' }
            },
            required: ['id', 'name']
          }
        }
      },
      required: ['programId', 'passengers']
    }

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