Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

delete_hotel

Remove a hotel from the LumbreTravel travel program by specifying its unique ID to manage accommodation listings.

Instructions

Eliminar un hotel

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID del hotel a eliminar

Implementation Reference

  • MCP tool handler case for 'delete_hotel': extracts id from args, calls apiService.deleteHotel(id), and formats response as text content with JSON stringified hotel data.
    case 'delete_hotel': {
      const { id } = args as { id: string }
      const hotel = await this.apiService.deleteHotel(id)
      return {
        content: [{ type: 'text', text: JSON.stringify(hotel, null, 2) }]
      }
    }
  • Tool definition in listTools(): registers 'delete_hotel' with description and input schema requiring 'id' as string.
      name: 'delete_hotel',
      description: 'Eliminar un hotel',
      inputSchema: {
        type: 'object',
        properties: { id: { type: 'string', description: 'ID del hotel a eliminar' } },
        required: ['id']
      }
    },
  • Core implementation of deleteHotel: sends DELETE request to /integrations/mcp/hotels/delete/{id} with auth headers and handles response.
    async deleteHotel (id: string) {
      const headers = await this.getHeaders()
      const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/hotels/delete/${id}`, {
        method: 'DELETE',
        headers
      })
      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