HotelRunner MCP by usefulapi

Read HotelRunner reservations, rooms, channels; update availability and prices; confirm or cancel.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
73%
命名质量
70%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(4)

  • LOWTool 'hotelrunner_list_connected_channels' name length outside 3-30 range在 hotelrunner_list_connected_channels 中
  • LOWTool 'hotelrunner_get_transaction_details' name length outside 3-30 range在 hotelrunner_get_transaction_details 中
  • LOWTool 'hotelrunner_update_room_calendar' name length outside 3-30 range在 hotelrunner_update_room_calendar 中
  • LOWTool 'hotelrunner_update_reservation_state' name length outside 3-30 range在 hotelrunner_update_reservation_state 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~2,369token 数(工具定义)
~1.6 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.85%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "hotelrunner": {
      "url": "https://hotelrunner.usefulapi.io/mcp"
    }
  }
}

远程端点

https://hotelrunner.usefulapi.io/mcpstreamable-http

它能做什么

工具清单

工具(8)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢hotelrunner_list_rooms

List the property's room types and rates with their inv_code and rate_code, capacity, pricing type, sales currency, connected channel codes and whether availability, restrictions and prices can be updated through the API. Use the inv_code with hotelrunner_update_room_calendar. Counts as one of the property's 250 requests per day (5 per minute). GET /api/v2/apps/rooms.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢hotelrunner_list_reservations(from_date, from_last_update_date, booked, modified, page, ...)

List reservations of the property (new, modified, canceled), newest data first as HotelRunner returns them, 1-50 per page. By default ALL reservations created in the window are returned (this tool sets undelivered=false, so reading does not depend on a PMS having fetched them). from_date is the creation date (HotelRunner keeps at most 30 days back; default 10 days); from_last_update_date finds reservations changed since a date. detail 'summary' (default) gives guest, dates, rooms, totals, payment state and contact; 'full' returns the whole vendor record including billing address, national id, daily prices and extras. Reply: items, count, page, pages, next_page. Counts as one of the property's 250 requests per day (5 per minute). GET /api/v2/apps/reservations.

输入模式

{
  "type": "object",
  "properties": {
    "from_date": {
      "description": "Only reservations created on/after this date, yyyy-mm-dd (max 30 days back; default 10 days back).",
      "type": "string",
      "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
    },
    "from_last_update_date": {
      "description": "Only reservations updated on/after this date, yyyy-mm-dd.",
      "type": "string",
      "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
    },
    "booked": {
      "description": "true = only new (not modified) bookings.",
      "type": "boolean"
    },
    "modified": {
      "description": "true = only modified reservations.",
      "type": "boolean"
    },
    "page": {
      "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 10000
    },
    "per_page": {
      "description": "Reservations per page, 1-50 (default 10).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 50
    },
    "detail": {
      "description": "'summary' (default) or 'full' vendor records (large).",
      "type": "string",
      "enum": [
        "summary",
        "full"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢hotelrunner_get_reservation(reservation_number, from_date)

One reservation by its HotelRunner code (hr_number, e.g. R377873409) or the sales channel's own reservation code, with the full vendor record (rooms, daily prices, extras, payments, guest and billing details, next_states). If the reservation is older than HotelRunner's lookup window, pass from_date. Counts as one of the property's 250 requests per day (5 per minute). GET /api/v2/apps/reservations?reservation_number=.

输入模式

{
  "type": "object",
  "properties": {
    "reservation_number": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:\\- ]{1,64}$",
      "description": "HotelRunner reservation code (hr_number, e.g. R377873409) or the sales channel's reservation code."
    },
    "from_date": {
      "description": "Creation-date window start, yyyy-mm-dd (HotelRunner keeps at most 30 days back).",
      "type": "string",
      "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$"
    }
  },
  "required": [
    "reservation_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢hotelrunner_list_channels

All sales channels HotelRunner supports (name and code, e.g. bookingcom, expedia, hrs, online). The code is what hotelrunner_update_room_calendar takes in channel_codes. Counts as one of the property's 250 requests per day (5 per minute). GET /api/v2/apps/infos/channels.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢hotelrunner_list_connected_channels

The channels this property is connected to, each with counts of calendar update processes in progress, succeeded and failed. Counts as one of the property's 250 requests per day (5 per minute). GET /api/v2/apps/infos/connected_channels.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢hotelrunner_get_transaction_details(transaction_id)

Per-channel status of a calendar update: pass the transaction_id returned by hotelrunner_update_room_calendar. Shows succeeded / failed / in-progress counts and each channel's state and error message. Counts as one of the property's 250 requests per day (5 per minute). GET /api/v2/apps/infos/transaction_details.

输入模式

{
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,64}$",
      "description": "transaction_id from an update reply."
    }
  },
  "required": [
    "transaction_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴hotelrunner_update_room_calendar(inv_code, start_date, end_date, availability, price, ...)

WRITE: change availability, price, minimum/maximum stay, stop-sale, closed-to-arrival (cta) or closed-to-departure (ctd) for ONE room type (inv_code) over a date range of at most 90 days, optionally only on some weekdays and only on some channels. Only the fields you pass are changed. This is LIVE inventory: HotelRunner pushes it to every connected channel (Booking.com, Expedia, your own booking engine, ...) and it changes what guests can book and pay. The price is the base-rate price in the property's sales currency; guest-based prices derive from it. Only rooms whose availability_update / restrictions_update / price_update flag is true (hotelrunner_list_rooms) accept that kind of change. HotelRunner answers asynchronously: the reply has a transaction_id; check per-channel results with hotelrunner_get_transaction_details. Send one change per call, not a full refresh. Counts as one of the property's 250 requests per day (5 per minute). PUT /api/v2/apps/rooms/daily.

输入模式

{
  "type": "object",
  "properties": {
    "inv_code": {
      "type": "string",
      "pattern": "^[A-Za-z0-9:_.-]{1,64}$",
      "description": "An inventory code from hotelrunner_list_rooms, e.g. HR:1903."
    },
    "start_date": {
      "type": "string",
      "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
      "description": "First date to change, yyyy-mm-dd."
    },
    "end_date": {
      "type": "string",
      "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
      "description": "Last date to change (inclusive), yyyy-mm-dd."
    },
    "availability": {
      "description": "Rooms available to sell.",
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "price": {
      "description": "Base nightly price in the property's sales currency.",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 10000000
    },
    "min_stay": {
      "description": "Minimum nights.",
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "max_stay": {
      "description": "Maximum nights.",
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "stop_sale": {
      "description": "true = close the room for sale on these dates, false = reopen.",
      "type": "boolean"
    },
    "cta": {
      "description": "Closed to arrival.",
      "type": "boolean"
    },
    "ctd": {
      "description": "Closed to departure.",
      "type": "boolean"
    },
    "days": {
      "description": "Only these weekdays, 0 = Sunday ... 6 = Saturday (default: every day).",
      "maxItems": 7,
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 6
      }
    },
    "channel_codes": {
      "description": "Only these channels (codes from hotelrunner_list_connected_channels); default: all connected channels of the room.",
      "maxItems": 60,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_.-]{1,40}$"
      }
    }
  },
  "required": [
    "inv_code",
    "start_date",
    "end_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴hotelrunner_update_reservation_state(hr_number, event, cancel_reason, confirm)

WRITE: move ONE reservation to the next state: event 'confirm' (hotelier accepts it) or 'cancel' (cancels it; cancel_reason is required: customer, no_room, no_show or invalid_price). Cancel is not reversible through this API and releases the room; HotelRunner may notify the guest or the sales channel (Booking.com, Expedia, ...), so only cancel when the user clearly asked for it, and pass confirm=true for a cancel. Only possible when the reservation's requires_response is true and the event is in its next_states (see hotelrunner_get_reservation); otherwise HotelRunner answers state_change_is_not_available. Counts as one of the property's 250 requests per day (5 per minute). PUT /api/v2/apps/reservations/fire.

输入模式

{
  "type": "object",
  "properties": {
    "hr_number": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:-]{1,64}$",
      "description": "HotelRunner reservation code (hr_number)."
    },
    "event": {
      "type": "string",
      "enum": [
        "confirm",
        "cancel"
      ],
      "description": "'confirm' or 'cancel'."
    },
    "cancel_reason": {
      "description": "Required for cancel: customer, no_room, no_show or invalid_price.",
      "type": "string",
      "enum": [
        "customer",
        "no_room",
        "no_show",
        "invalid_price"
      ]
    },
    "confirm": {
      "description": "Required true for event 'cancel': the user explicitly approved cancelling this reservation (not reversible).",
      "type": "boolean"
    }
  },
  "required": [
    "hr_number",
    "event"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本8 个工具