Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

get_program

Retrieve a travel program by its ID to access itinerary details, activities, and management information from the LumbreTravel API.

Instructions

Obtiene un programa de viajes por ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID del programa

Implementation Reference

  • The handler logic for the 'get_program' tool within the callTool switch statement. Extracts the 'id' from arguments, calls apiService.getProgram(id), and returns the program data as formatted JSON text content.
    case 'get_program': { const { id } = args as { id: string } const program = await this.apiService.getProgram(id) return { content: [{ type: 'text', text: JSON.stringify(program, null, 2) }] } }
  • The tool definition including name, description, and input schema requiring a string 'id' for get_program.
    { name: 'get_program', description: 'Obtiene un programa de viajes por ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del programa' } }, required: ['id'] } },
  • The supporting API service method that fetches the program data by ID from the backend API endpoint /integrations/mcp/programs/get/{id}.
    async getProgram (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/programs/get/${id}`, { method: 'GET', headers }) return await this.handleResponse<any>(response) }
  • src/index.ts:38-47 (registration)
    Registers the MCP request handlers for listing tools (listTools) and calling tools (callTool), which includes the get_program tool.
    this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() ) // Configure handlers for tools 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