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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del hotel a eliminar |
Implementation Reference
- src/handlers/tools.handler.ts:1487-1493 (handler)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'] } },
- src/services/api.service.ts:525-532 (handler)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) }