Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

create_hotel

Add new hotel details to the LumbreTravel MCP Server by providing name, description, phone, email, and address. Ensures hotel data is accurately recorded and managed.

Instructions

Antes de crear un nuevo hotel se debe preguntar al si quiere que primero se busque el hotel a ver si existe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesDirección del hotel
descriptionYesDescripción del hotel
emailYesEmail del hotel
nameYesNombre del hotel
phoneYesTeléfono del hotel

Implementation Reference

  • The execution logic for the 'create_hotel' MCP tool. Destructures input arguments and delegates to ApiService.createHotel, then formats the response.
    case 'create_hotel': { const { name, description, phone, email, address } = args const hotel = await this.apiService.createHotel({ name, description, phone, email, address }) return { content: [{ type: 'text', text: JSON.stringify(hotel, null, 2) }] } }
  • The input schema and metadata for the 'create_hotel' tool, defining parameters and requirements.
    name: 'create_hotel', description: 'Antes de crear un nuevo hotel se debe preguntar al si quiere que primero se busque el hotel a ver si existe.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del hotel' }, description: { type: 'string', description: 'Descripción del hotel' }, phone: { type: 'string', description: 'Teléfono del hotel' }, email: { type: 'string', description: 'Email del hotel' }, address: { type: 'string', description: 'Dirección del hotel' } }, required: ['name', 'description', 'phone', 'email', 'address'] } },
  • Supporting utility in ApiService that sends HTTP POST request to the backend API to create a hotel resource.
    async createHotel (data: { name: string description: string phone: string email: string address: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/hotels/create`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) return await this.handleResponse<any>(response) }
  • src/index.ts:44-47 (registration)
    Server registration of the generic tool call handler, which dispatches to ToolsHandler.callTool based on tool name including 'create_hotel'.
    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