
pricewin-price-comparison
by price-win ยท part of price-win/pricewin-skills-hub
Compare hotel room prices across Agoda and Booking.com for specific dates. Use when comparing prices, checking room rates, or finding the best deal.
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
Requires the
pricewinMCP server. This skill issues no network calls of its own.
Price Comparison
MCP server: pricewin. Compares live rates across Booking.com, Agoda, Traveloka (crawled) plus OpenTravel (direct API).
Comparison is something you do over the returned sources โ there is no server-side compare call. Pick the entry point by what the user gave you:
| User gave you | Tool |
|---|---|
| A city โ "compare hotel prices in Da Nang" | search_hotels_live โ poll_search_results |
| A named hotel โ "is Mercure Danang cheaper on Agoda or Booking?" | get_ota_hotel_detail |
A hotel already known to be OpenTravel direct (source: "OPENTRAVEL_DIRECT", has propertyId) | get_hotel_detail |
City-wide comparison
search_hotels_live returns IMMEDIATELY with a sessionId โ it does not return hotels.
search_hotels_liveโ required:city,checkIn,checkOut(YYYY-MM-DD). Optional:adults(default 2),rooms,area,hotelName,priceMin,priceMax,language- Wait 5s โ
poll_search_results(sessionId, nights) - While
statusispendingorpartial: wait 5s and poll again โ up to 18 times (90s) - Present as soon as
status == "partial"with hotels; keep polling silently and refine
Then compare per hotel across its sources. See pricewin-hotel-search
for the full dedupe + presentation contract โ do not restate it differently here.
Single named hotel
get_ota_hotel_detail โ for one specific Booking.com/Agoda hotel the user named.
- Required:
checkIn,checkOut. PasshotelName+city+queryText(verbatim user text) whenever known - Do NOT call
search_hotels_livefor a named hotel โ that returns a whole-city list - Live crawl, ~20โ60s. Say nothing about "loading" until it actually returns
- Speed-up: if a prior search already gave you
prices.booking.url, pass it aspropertyUrlto skip name resolution - If it returns not-found under load, retry once
Returns rooms, prices, facilities, photos, reviews for that property.
OpenTravel direct properties
get_hotel_detail โ only for results with source: "OPENTRAVEL_DIRECT".
- Pass
propertyId(UUID fromopentravelResults[].propertyId) when available hotelName+cityis a fallback only for a property already confirmed as OpenTravel direct- Required:
checkIn,checkOut. Optional:adults,children,language - Returns room types with
roomTypeIdandratePlanIdโ these are what make a property bookable
โ ๏ธ Router rule: have a propertyId โ get_hotel_detail. Name only โ get_ota_hotel_detail.
Cancellation terms
For OpenTravel rate plans only: get_cancellation_policy(propertyId, ratePlanId, checkInDate)
โ non-refundable flag, free-cancellation window, refund %, and the computed deadline.
ratePlanId comes from get_hotel_detail โ roomTypes[].ratePlanId. Pass checkInDate
or you get no deadline. OTA hotels have no structured policy โ quote whatever the crawl returned.
Presenting a comparison
- Rank purely by price. No source gets priority, OpenTravel included
- Show the cheapest source first, then the others underneath:
Agoda $X ยท Booking $Y ยท OpenTravel $Z - Savings vs the next-cheapest source:
(next - cheapest) / next * 100โ "Save Z%" - When the gap is small, prefer the free-cancellation option and say why
- All prices USD unless the tool says otherwise. No conversion
Tool inputs and response fields: reference.md.
Security & data handling
Documentation only โ no code, no dependencies, no network calls of its own. The
only data sent is the comparison query (city or hotel name, dates, guests, plus
queryText โ the user's message verbatim), to PriceWin's hosted MCP server
https://mcp.price.win/mcp (no credentials, no account). No PII, and this skill
cannot book or pay for anything. Full disclosure โ operator, backend provenance,
exact fields per tool โ in SECURITY.md.
npx skills add price-win/pricewin-skills-hub --skill "pricewin-price-comparison" --full-depthRun this in your project โ your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MIT-0โ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ