WuBook MCP by usefulapi
v1.16.1Read WuBook ZaK rooms, availability and reservations; manage inventory and guest check-in.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
wubook_list_rooms List rooms
List the physical rooms of the property (id, room type id, name, tags). POST /kp/property/fetch_rooms.
wubook_list_room_types List room types
List the room types (id, name, short name, default price, default occupancy). POST /kp/property/fetch_room_types.
wubook_list_rates List rates
List the rates of the property (id, name, board, currency, standard flag). Use a rate id for prices and restrictions. POST /kp/property/fetch_rates.
wubook_list_products List products
List the products (a room type sold on a board basis: id, room type id, name, default price, occupancy). Product ids are the keys of prices and availability. POST /kp/property/fetch_products.
wubook_list_meal_boards List meal boards
List the meal rules and meal prices per board type (fb, hb, bb, ai) for adults, teens, children and babies. POST /kp/property/fetch_meals_board.
wubook_list_extras List extras
List the extras the property sells (id, name, price, VAT percentage, cost, tags). POST /kp/property/fetch_extras.
wubook_get_inventory_symbols Get inventory symbols
The meaning of the short keys in prices and restrictions (p price, a availability, m MinStay, M MaxStay, c closure, ...). POST /kp/inventory/fetch_symbols.
wubook_get_room_availability Get room availability
Availability for a stay: for each room type id, the number of rooms available and the ids of the available physical rooms. The availability count can be lower than the number of listed physical rooms when a reservation has no physical room assigned yet; use the availability count when assessing bookable capacity. POST /kp/inventory/fetch_rooms_availability.
| Parameter | Type | Description |
|---|---|---|
arrival * | string | Arrival date, yyyy-mm-dd. |
departure * | string | Departure date, yyyy-mm-dd. |
wubook_get_rate_values Get rate values
Daily prices, availability and restrictions of one rate, starting at a date: for each product id a list with one object per day (p price, a availability, m/M min/max stay, c closed, ...; see wubook_get_inventory_symbols). POST /kp/inventory/fetch_rate_values.
| Parameter | Type | Description |
|---|---|---|
days * | integer | Number of days from `from`, 1-366. |
from * | string | First day, yyyy-mm-dd. |
rate_id * | integer | Rate id (wubook_list_rates). |
wubook_update_inventory Update prices, availability and restrictions
WRITE: overwrite daily prices, availability and stay restrictions of one rate. `products` maps a product id to a list of day objects; the first object is the day `from`, the next the following day, and so on. Only the fields you send per day change. Changes can be pushed to connected channels (OTAs) and affect live bookings, so confirm the values with the user first. POST /kp/inventory/write.
| Parameter | Type | Description |
|---|---|---|
from * | string | First day the lists start at, yyyy-mm-dd. |
products * | object | Product id → one object per day, e.g. {"12": [{"p": 90, "a": 3}, {"p": 95}]}. Keys: p price, a availability, m/M min/max stay, ma/Ma by arrival, ni no check-in, no no check-out, c closed, nt no OTA,… |
rate_id * | integer | Rate id (wubook_list_rates). |
wubook_get_reservation Get reservation
One reservation by id or by reservation code (XY-0001): status, booker customer id, origin channel, board, dates, price split (rooms, extras, meals), payment, taxes and rooms with occupancy and customer ids. POST /kp/reservations/fetch_one_reservation.
| Parameter | Type | Description |
|---|---|---|
reservation_code | string | Reservation (human) code such as XY-0001. |
reservation_id | integer | Reservation id. |
wubook_list_reservations List reservations
List reservations, optionally filtered by creation, arrival or departure date ranges (inclusive). Newest first is not guaranteed; page with offset. Returns the page plus next_offset (null when the last page was reached). POST /kp/reservations/fetch_reservations.
| Parameter | Type | Description |
|---|---|---|
arrival_from | string | Arriving on or after. Needs arrival_to. |
arrival_to | string | Arriving on or before. |
created_from | string | Created on or after (yyyy-mm-dd). Needs created_to. |
created_to | string | Created on or before. |
departure_from | string | Departing on or after. Needs departure_to. |
departure_to | string | Departing on or before. |
limit | Page size: 8, 16, 32 or 64 (default 32). | |
offset | integer | Reservations to skip (default 0). Pass the previous reply's next_offset. |
wubook_list_todays_reservations List today's reservations
Reservations of the property for today (arrivals, departures and stays in house). POST /kp/reservations/fetch_today_reservations.
wubook_create_reservation Create reservation
WRITE: create a reservation in ZaK for one guest. Give rooms (room type and optionally the physical room id, with price and currency) and/or products (product id with price and currency). Set assign_rooms to let ZaK pick the physical rooms. This books inventory and is NOT idempotent: calling it twice creates two reservations, so check wubook_get_room_availability first and do not retry on an error without looking the reservation up. POST /kp/reservations/new.
| Parameter | Type | Description |
|---|---|---|
arrival * | string | Arrival date, yyyy-mm-dd. |
departure * | string | Departure date, yyyy-mm-dd (after arrival). |
guest * | object | The booker. |
assign_rooms | boolean | Let ZaK choose physical rooms for entries without a room id. |
products | array | |
rooms | array |
wubook_check_in Check in
WRITE: check in the guests of a reservation in ZaK. Applies to every guest of the reservation unless room_customer_ids is given. POST /kp/reservations/do_checkin.
| Parameter | Type | Description |
|---|---|---|
reservation_code | string | Reservation (human) code such as XY-0001. |
reservation_id | integer | Reservation id. |
room_customer_ids | array | Only these reservation-room guest ids (default: all guests). |
wubook_check_out Check out
WRITE: check out the guests of a reservation in ZaK. Applies to every guest of the reservation unless room_customer_ids is given. POST /kp/reservations/do_checkout.
| Parameter | Type | Description |
|---|---|---|
reservation_code | string | Reservation (human) code such as XY-0001. |
reservation_id | integer | Reservation id. |
room_customer_ids | array | Only these reservation-room guest ids (default: all guests). |
wubook_undo_check_in Undo check-in
WRITE: revert the check-in of a reservation in ZaK. POST /kp/reservations/undo_checkin.
| Parameter | Type | Description |
|---|---|---|
reservation_code | string | Reservation (human) code such as XY-0001. |
reservation_id | integer | Reservation id. |
wubook_undo_check_out Undo check-out
WRITE: revert the check-out of a reservation in ZaK. POST /kp/reservations/undo_checkout.
| Parameter | Type | Description |
|---|---|---|
reservation_code | string | Reservation (human) code such as XY-0001. |
reservation_id | integer | Reservation id. |
wubook_get_customer Get customer (guest)
One guest record by customer id (from a reservation's booker or room customers): name, country, address, contact, birth data, billing info. Personal data. Identity documents (type, number, expiry) are left out unless include_documents is true. POST /kp/customers/fetch_one.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | Customer id. |
include_documents | boolean | Also return the guest's identity documents (default false). |