WuBook MCP by usefulapi

v1.16.1
io.usefulapi/wubook Checked 1 day ago Published 10 hours ago

Read 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.

ParameterTypeDescription
arrival *stringArrival date, yyyy-mm-dd.
departure *stringDeparture 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.

ParameterTypeDescription
days *integerNumber of days from `from`, 1-366.
from *stringFirst day, yyyy-mm-dd.
rate_id *integerRate 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.

ParameterTypeDescription
from *stringFirst day the lists start at, yyyy-mm-dd.
products *objectProduct 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 *integerRate 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.

ParameterTypeDescription
reservation_codestringReservation (human) code such as XY-0001.
reservation_idintegerReservation 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.

ParameterTypeDescription
arrival_fromstringArriving on or after. Needs arrival_to.
arrival_tostringArriving on or before.
created_fromstringCreated on or after (yyyy-mm-dd). Needs created_to.
created_tostringCreated on or before.
departure_fromstringDeparting on or after. Needs departure_to.
departure_tostringDeparting on or before.
limitPage size: 8, 16, 32 or 64 (default 32).
offsetintegerReservations 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.

ParameterTypeDescription
arrival *stringArrival date, yyyy-mm-dd.
departure *stringDeparture date, yyyy-mm-dd (after arrival).
guest *objectThe booker.
assign_roomsbooleanLet ZaK choose physical rooms for entries without a room id.
productsarray
roomsarray

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.

ParameterTypeDescription
reservation_codestringReservation (human) code such as XY-0001.
reservation_idintegerReservation id.
room_customer_idsarrayOnly 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.

ParameterTypeDescription
reservation_codestringReservation (human) code such as XY-0001.
reservation_idintegerReservation id.
room_customer_idsarrayOnly 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.

ParameterTypeDescription
reservation_codestringReservation (human) code such as XY-0001.
reservation_idintegerReservation id.

wubook_undo_check_out Undo check-out

WRITE: revert the check-out of a reservation in ZaK. POST /kp/reservations/undo_checkout.

ParameterTypeDescription
reservation_codestringReservation (human) code such as XY-0001.
reservation_idintegerReservation 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.

ParameterTypeDescription
customer_id *integerCustomer id.
include_documentsbooleanAlso return the guest's identity documents (default false).