Tools

Travel

Search, book, list and cancel business travel under the organisation's travel policy. Used by the Travel Desk.

ToolWhat it does
travel_searchSearches flights, hotels or rail for one leg or stay and returns up to eight offers, each with an offer_id and a policy mark.
travel_bookBooks the chosen offers.
travel_tripsLists the traveller's own trips, newest first โ€” used to resolve "my Berlin trip" before changing or cancelling it.
travel_cancelCancels one of the traveller's own trips by id or booking reference and returns the refund terms.

Searches flights, hotels or rail for one leg or stay and returns up to eight offers, each with an offer_id and a policy mark.

How an agent gets it. Declare it in the agent's tools: list. Bound per run by the Travel Desk runtime; the provider (simulated by default) is set by an admin.

Arguments

ArgumentTypeRequiredMeaning
kindone of flight, hotel, railyes
originstringCity or IATA code (not for hotels).
destinationstringyesCity or IATA code.
depart_datestringyesYYYY-MM-DD (hotel: check-in).
return_datestringYYYY-MM-DD (hotel: check-out).
travellersinteger
cabinstringflight cabin or rail class.
constraintsstringe.g. 'arrive before 09:00'.
max_resultsinteger
purpose_kindone of business, personal

travel_book

Books the chosen offers. A write: it always pauses for approval, and the approver reads the summary and policy_check it carries.

How an agent gets it. Declare it in the agent's tools: list. Bound per run by the Travel Desk runtime; the provider (simulated by default) is set by an admin.

Arguments

ArgumentTypeRequiredMeaning
summarystringyesOne line for the approver: route, dates, cabin, hotel, total, policy.
offer_idsarray of stringyes
quoted_totalnumber | nullThe total the traveller saw, so a price change is caught.
tripobjectyesFields: origin, destination, depart_date, return_date, travellers, purpose, purpose_kind, cost_centre.
policy_checkobjectyesFields: within_policy, notes, exception_reason, citations.
trip_idstring | nullWhen changing an existing trip: the trip being replaced.

travel_trips

Lists the traveller's own trips, newest first โ€” used to resolve "my Berlin trip" before changing or cancelling it.

How an agent gets it. Declare it in the agent's tools: list. Bound per run by the Travel Desk runtime; the provider (simulated by default) is set by an admin.

Arguments

ArgumentTypeRequiredMeaning
statusone of booked, cancelled, changed
upcomingbooleanOnly trips departing from today.

travel_cancel

Cancels one of the traveller's own trips by id or booking reference and returns the refund terms. Destructive: it always pauses for approval.

How an agent gets it. Declare it in the agent's tools: list. Bound per run by the Travel Desk runtime; the provider (simulated by default) is set by an admin.

Arguments

ArgumentTypeRequiredMeaning
trip_idstring | null
booking_refstring | nulle.g. TRV-7K3M9Q
reasonstring
See alsoSee Travel Desk for the policy, approvals and provider setup.