RollingGo Hotel CLI
When to Use
✅ Use this skill when:
- - Searching Candidates: User wants to find hotels near a specific city, landmark, or address (e.g., "Find hotels near Tokyo Disneyland").
- Complex Filtering: User needs to narrow down options using natural language queries combined with exact dates, guest count, star ratings, budget limits, or distance radius.
- Tag & Brand Matching: User wants to find hotels with specific attributes (e.g., "family friendly", "breakfast included", "Marriott") by first checking the tag dictionary to build exact filters.
- Deep Dive & Pricing: User wants to inspect detailed room plans, real-time pricing, cancellation policies, or availability for a specific hotel ID.
- Comparison & Evaluation: User wants to compare multiple candidate hotels based on returning structured data and current rates.
- Hotel Booking: User is ready to select a room and book a hotel. The returned booking URLs and detail page links can be provided to guide the user to complete their reservation.
❌ Don't use this skill when:
- - User asks about non-hotel travel booking (flights, trains, transfers, car rentals).
API Key
Resolution order: --api-key flag → RollingGo_API_KEY env var.
No key yet? Apply at: https://mcp.agentichotel.cn/apply
Runtime
Choose based on user's environment. Load the matching reference file and keep it for the session.
Default when unspecified → npm/npx (broader env compatibility).
Version Freshness (Always Latest)
Default policy for this skill: use the newest release on every run.
- - npm/npx: INLINECODE6
- uvx: INLINECODE7
If using an installed command instead of temporary execution, upgrade first:
- - npm global: INLINECODE8
- uv tool: INLINECODE9
Primary Workflow
Run these steps in order unless the user is already at a later step.
- 1. Clarify: destination, dates, nights, occupancy, budget, stars, tags, distance
- If tag filters needed → run
hotel-tags first to get valid tag strings - Run
search-hotels → parse JSON → extract INLINECODE12 - Run
hotel-detail --hotel-id <id> for room plans and pricing - If results are weak → loosen filters and retry
Commands Quick Reference
CODEBLOCK0
Key Rules
- -
--place-type must use exact values from INLINECODE15 - INLINECODE16 format:
min,max e.g. INLINECODE18 - INLINECODE19 allowed only on
search-hotels; rejected by hotel-detail and INLINECODE22 - INLINECODE23 must match the count of
--child-age flags - INLINECODE25 must be later than INLINECODE26
- Prefer
--hotel-id over --name whenever available
Output
- - stdout → result payload (JSON by default)
- stderr → errors only
- Exit
0 success · 1 HTTP/network failure · 2 CLI validation failure - Results include booking URLs and hotel detail page links for downstream use
Filter Loosening (when no results)
Try in order: remove --star-ratings → increase --size → increase --distance-in-meter → remove tag filters → widen dates or budget
RollingGo 酒店 CLI
使用时机
✅ 使用此技能的场景:
- - 搜索候选酒店: 用户希望查找特定城市、地标或地址附近的酒店(例如:查找东京迪士尼乐园附近的酒店)。
- 复杂筛选: 用户需要使用自然语言查询结合具体日期、入住人数、星级评分、预算限制或距离范围来缩小选择范围。
- 标签与品牌匹配: 用户希望通过先查看标签词典构建精确筛选条件,查找具有特定属性(如家庭友好、含早餐、万豪)的酒店。
- 深度查看与定价: 用户希望查看特定酒店 ID 的详细房型方案、实时定价、取消政策或可用情况。
- 比较与评估: 用户希望基于返回的结构化数据和当前价格比较多个候选酒店。
- 酒店预订: 用户准备选择房间并预订酒店。可提供返回的预订链接和详情页面链接,引导用户完成预订。
❌ 不使用此技能的场景:
- - 用户询问非酒店类的旅行预订(机票、火车票、接送服务、租车)。
API 密钥
优先级顺序:--api-key 参数 → RollingGoAPIKEY 环境变量。
还没有密钥?请在此申请:https://mcp.agentichotel.cn/apply
运行环境
根据用户的环境选择。加载对应的参考文件并在会话期间保留。
未指定时默认 → npm/npx(更广泛的环境兼容性)。
版本更新(始终使用最新版)
此技能的默认策略:每次运行时使用最新版本。
- - npm/npx: npx --yes --package rollinggo@latest rollinggo ...
- uvx: uvx --refresh --from rollinggo rollinggo ...
如果使用已安装的命令而非临时执行,请先升级:
- - npm 全局安装: npm install -g rollinggo@latest
- uv 工具: uv tool upgrade rollinggo
主要工作流程
除非用户已处于后续步骤,否则按顺序执行以下步骤。
- 1. 明确:目的地、日期、住宿天数、入住人数、预算、星级、标签、距离
- 如果需要标签筛选 → 先运行 hotel-tags 获取有效的标签字符串
- 运行 search-hotels → 解析 JSON → 提取 hotelId
- 运行 hotel-detail --hotel-id 获取房型方案和定价
- 如果结果不理想 → 放宽筛选条件并重试
命令快速参考
bash
发现标签
rollinggo hotel-tags
搜索酒店(最低必需参数)
rollinggo search-hotels \
--origin-query <用户的自然语言请求> \
--place <目的地> \
--place-type <来自 --help 的值>
酒店详情及定价
rollinggo hotel-detail \
--hotel-id
\
--check-in-date YYYY-MM-DD \
--check-out-date YYYY-MM-DD \
--adult-count 2 --room-count 1
查看所有参数
rollinggo search-hotels --help
rollinggo hotel-detail --help
关键规则
- - --place-type 必须使用 rollinggo search-hotels --help 中的精确值
- --star-ratings 格式:min,max 例如 4.0,5.0
- --format table 仅允许在 search-hotels 上使用;hotel-detail 和 hotel-tags 不支持
- --child-count 必须与 --child-age 参数的数量匹配
- --check-out-date 必须晚于 --check-in-date
- 尽可能优先使用 --hotel-id 而非 --name
输出
- - 标准输出 → 结果数据(默认为 JSON)
- 标准错误 → 仅错误信息
- 退出码 0 成功 · 1 HTTP/网络故障 · 2 CLI 验证失败
- 结果包含预订链接和酒店详情页面链接,供下游使用
筛选放宽(无结果时)
按顺序尝试:移除 --star-ratings → 增加 --size → 增加 --distance-in-meter → 移除标签筛选 → 放宽日期或预算