Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

get_programs_by_date_range

Retrieve travel programs available within a specified date range to plan trips effectively.

Instructions

Obtiene programas de viajes por rango de fechas

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startDateNoFecha de inicio del programa (DD-MM-YYYY)
endDateNoFecha de fin del programa (DD-MM-YYYY)

Implementation Reference

  • The primary handler logic for the 'get_programs_by_date_range' MCP tool. It extracts startDate and endDate from arguments, formats them using the formatDate utility, calls the ApiService method, and returns the programs as formatted JSON text content.
    case 'get_programs_by_date_range': { const { startDate, endDate } = args const programs = await this.apiService.getProgramsByDateRange( formatDate(startDate), formatDate(endDate) ) return { content: [{ type: 'text', text: JSON.stringify(programs, null, 2) }] } }
  • Tool registration in listTools() method, defining the name, description, and input schema for 'get_programs_by_date_range'.
    { name: 'get_programs_by_date_range', description: 'Obtiene programas de viajes por rango de fechas', inputSchema: { type: 'object', properties: { startDate: { type: 'string', description: 'Fecha de inicio del programa (DD-MM-YYYY)' }, endDate: { type: 'string', description: 'Fecha de fin del programa (DD-MM-YYYY)' } } } },
  • Input schema definition for validating tool arguments: startDate and endDate as strings in DD-MM-YYYY format.
    inputSchema: { type: 'object', properties: { startDate: { type: 'string', description: 'Fecha de inicio del programa (DD-MM-YYYY)' }, endDate: { type: 'string', description: 'Fecha de fin del programa (DD-MM-YYYY)' } } }
  • Supporting ApiService method that performs authenticated POST request to backend API endpoint to fetch programs by date range.
    async getProgramsByDateRange (startDate: string, endDate: string) { const headers = await this.getHeaders() const dataToSend = new URLSearchParams({ startDate, endDate }) const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/programs/get_programs_by_date_range`, { method: 'POST', headers, body: dataToSend }) 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