Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

get_hotel_by_name

Search for hotels by their name and retrieve a list of matching results using the LumbreTravel MCP Server. Input the hotel name to access detailed information.

Instructions

Buscar hoteles por su nombre, retorna la lista de hoteles encontrados.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre del hotel

Implementation Reference

  • Handler implementation for the 'get_hotel_by_name' tool. It extracts the hotel name from arguments, calls the ApiService method, and returns the JSON-formatted result.
    case 'get_hotel_by_name': { const { name } = args as { name: string } const hotel = await this.apiService.getHotelByName(name) return { content: [{ type: 'text', text: JSON.stringify(hotel, null, 2) }] }
  • Schema definition and registration of the 'get_hotel_by_name' tool in the listTools method, specifying input as a string 'name'.
    name: 'get_hotel_by_name', description: 'Buscar hoteles por su nombre, retorna la lista de hoteles encontrados.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del hotel' } }, required: ['name'] }
  • Supporting service method getHotelByName that authenticates, posts the hotel name to the backend API endpoint, and handles the response.
    async getHotelByName (name: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/hotels/get_hotels_by_name`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ name }) }) 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