LetsFG — Flights & Hotels

v2026.5.77
io.github.LetsFG/letsfg Checked 2 days ago Published 2 months ago

Search and book flights and hotels: hundreds of airlines, plus bookable hotel rates.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_flights

Search hundreds of airlines for live flight prices — completely FREE, unlimited, read-only. Returns structured offers with prices, airlines, times, durations, and stopovers. Some offers carry `starlink` for in-flight Starlink Wi-Fi: "confirmed_all" / "confirmed_some" mean the carrier has FULLY fitted that aircraft type, "likely_all" / "likely_some" mean the rollout on that type is underway but incomplete. State only "confirmed_*" as fact; describe "likely_*" as "the airline is fitting this aircraft type, not guaranteed on your flight". Anything ending in "_some" has at least one leg WITHOUT…

ParameterTypeDescription
date_from *stringDeparture date YYYY-MM-DD
destination *stringIATA code of arrival (e.g., 'BCN', 'LAX')
origin *stringIATA code of departure (e.g., 'LON', 'JFK'). Use resolve_location if you only have a name.
adultsintegerNumber of adults (default: 1)
cabin_classstringM=economy, W=premium, C=business, F=first
childrenintegerNumber of children (2-11)
currencystringCurrency code (EUR, USD, GBP)
departure_time_fromstringEarliest departure time HH:MM (e.g., '06:00')
departure_time_tostringLatest departure time HH:MM (e.g., '14:00')
max_resultsintegerMax offers to return
return_fromstringReturn date YYYY-MM-DD (omit for one-way)

resolve_location

Convert a city/airport name to IATA codes. Always call before search_flights if you only have a city name. Read-only, safe to call multiple times.

ParameterTypeDescription
query *stringCity or airport name (e.g., 'London', 'Berlin')

book_flight

Book a flight from a search result. FLOW: authenticate (once) -> search_flights -> book_flight CHARGES: nothing from LetsFG. A completed booking pays the airline prices from airlines and the major booking sites. RESULT: either {"booked": true, "order_id": "..."} or {"booked": false, "booking_url": "..."} — the second means the booking genuinely did not complete and nothing was charged. That is a normal outcome, NOT a transient error: do not retry, give the user the booking_url. SAFETY: use REAL passenger details — names must match passport, email receives the e-ticket.

ParameterTypeDescription
contact_email *stringBooking contact email
offer_id *stringOffer ID from search_flights
passengers *arrayPassengers with 'id' from search passenger_ids
search_id *stringsearch_id from search_flights
idempotency_keystringUnique key to prevent double-bookings on retry (e.g., UUID). Strongly recommended.

get_flight_booking

Poll a flight booking started by book_flight. REQUIRED to learn the outcome: on a PFS Bearer token book_flight returns a booking_ref and state "booking_in_progress", not a PNR - the booking itself takes 4-11 minutes. Call it every 20-30 s with that booking_ref until state is terminal: completed -> PNR issued, card charged failed -> the hold was released, nothing was charged needs_attention -> a human is looking at it; do NOT rebook Do not rebook while the state is still moving, and do not treat a slow poll as a failure - the money is HELD, not taken, until the airline co…

ParameterTypeDescription
booking_ref *stringThe booking_ref book_flight returned

answer_booking_question

Answer the question a paused booking is waiting on. get_flight_booking returns `awaiting_choice` when the booking agent has stopped mid-checkout holding a cart: at the airline's own seat map, at a paid extra it has just priced, or at a fare that moved. NOTHING PROGRESSES UNTIL YOU ANSWER, and the cart expires. Put the question to the traveller with the options and the time left, then send their answer here. kind "seat" -> seats: [{ d: "12A" }, ...] from the map you were shown, or skip: true kind "extra" -> confirm: true to take it (a bag, or a moved fare), or confirm: false / skip: tr…

ParameterTypeDescription
booking_ref *stringThe booking_ref book_flight returned
kind *stringFrom awaiting_choice.kind
round *numberFrom awaiting_choice.round. Required.
confirmbooleankind "extra" only: take it (true) or decline (false).
seatsarraykind "seat" only: the chosen seats, e.g. [{ "d": "12A" }].
skipbooleanDecline outright — no seat, no extra.

resolve_hotel_city

Convert a place name to the supplier city id that search_hotels needs. Always call this first if you only have a city name. Read-only and safe to repeat. Use `Id` from the first result as city_id and `Name` as city_name.

ParameterTypeDescription
text *stringPlace name (e.g., 'Warsaw', 'Paris')

search_hotels

Search real, bookable hotel inventory. Requires a connected payment method — the SAME one that authorises flight booking. That applies to search too, not just booking, because a search opens a real session at the supplier. Every rate type is returned, refundable and non-refundable; each offer's `refundable` and `free_cancellation_until` say which. `price` is what the guest pays, in `currency` (USD unless you pass currency): the supplier's cost plus `markup_rate` (6.4% for Revolut Pay or an EEA card, 8.3% for a card issued outside the EEA). Nothing is added at booking. Keep the chosen offer…

ParameterTypeDescription
check_in *stringyyyy-MM-dd
check_out *stringyyyy-MM-dd
city_id *numberFrom resolve_hotel_city (`Id`)
city_name *stringFrom resolve_hotel_city (`Name`)
adultsnumberAdult guests (default 2)
child_agesarrayAge of each child; the supplier needs these to price
childrennumberChild guests (default 0)
currencystringISO code every price is quoted in (default USD)
limitnumberMax hotels to return (default 40)
nationalitystringTwo-letter guest nationality. Rates and taxes genuinely differ by it.

book_hotel

Book one hotel rate. The offer's full price is HELD on the connected Revolut payment method (authorised, not taken); LetsFG books and pays the supplier; the hold is captured only once the supplier has confirmed. If the booking fails for any reason the hold is released and nothing is charged. There is no reservation fee, no deposit and no pay link. Returns a booking_job_id, NOT the booking — a booking takes minutes. Poll get_hotel_booking every ~20s until status is succeeded, failed or attention; all three are final. Copy expected_price (the offer's price), expected_cost, currency and fx_ra…

ParameterTypeDescription
check_in *stringyyyy-MM-dd
check_out *stringyyyy-MM-dd
city_id *number
city_name *string
combination_id_v2 *stringFrom the chosen offer — identifies that exact rate
email *stringThe guest's e-mail: the confirmation, or a note that it did not go through, goes here.
expected_cost *numberThe offer's `expected_cost` (supplier cost, PLN), verbatim
expected_price *numberThe offer's `price`, verbatim
guests *arrayONE entry per guest in the room, children included: adults first, then children in the child_ages order used in search_hotels (the party travels with the offer's session). Each is {title, first_name,…
hotel_code *numberFrom the chosen hotel
phone *string
session_id *stringThe chosen offer's session_id
adultsnumberAdults in the room, as searched (default 2)
combination_idnumberFrom the chosen offer (optional)
currencystringThe offer's `currency`, verbatim (omitted means PLN)
fx_ratenumberThe offer's `fx_rate`, verbatim (omit for a PLN offer)
hotel_namestring
idempotency_keystringOptional. A retry with the same key returns the booking already under way
phone_country_codestringDefault '48'
special_requestsarray

get_hotel_booking

Collect the result of a booking started with book_hotel. Poll every ~20s. status is in_progress, succeeded, failed or attention; the last three are final — stop polling. - succeeded: confirmation, hotel, room, total_price + currency (what the guest is charged), supplier_paid + supplier_currency, payment_status, refundable, free_cancellation_until, cancellation_ladder and terms. - failed: error, written for the guest. The hold was released; nothing was charged. - attention: error (+ confirmation if known). The outcome could not be settled automatically; the hold is kept (nothing charged) whi…

ParameterTypeDescription
booking_job_id *stringFrom book_hotel

cancel_hotel_booking

Cancel a hotel booking made by this account and refund the guest. A zero-charge cancellation (a refundable rate before free_cancellation_until) refunds the charge in full; a cancellation that would cost money is refused (409) — the hotel's own ladder is in the booking terms. Takes over a minute; if it times out do NOT assume it failed — re-check before retrying.

ParameterTypeDescription
confirmation *stringFrom the completed booking

authenticate

Explain how to connect a card so this server can search and book. Nothing is charged to connect — a 0.00 Revolut setup that saves the card so a booking can be charged later. Call with no arguments. It returns the current instructions and add_card_url (https://letsfg.co/connect). A PERSON must approve once in a browser — there is no endpoint that mints a token from card details, so do not ask the user for card numbers and do not try to automate this step. Two ways in: (a) add LetsFG as a connector in an assistant that supports remote MCP servers and approve it, or (b) any OAuth-capable cl…

connect_payment

[Developer API only — you almost certainly want `authenticate` instead] Mints a one-time link for connecting a payment method to a PAID prepaid Developer API account. Nothing is charged to connect and card details never touch LetsFG: a PERSON opens the returned connect_url in a browser and saves a card, Revolut Pay or Google Pay there. Do not ask a user for card numbers and do not try to automate that step. Refuses to run unless LETSFG_API_KEY is set, because agents kept calling this and creating billing accounts they did not need. Replaced setup_payment on 2026-09-08, when the Stripe lane w…

get_agent_profile

[Developer API only] Get agent profile, balance and usage stats. Read-only. Requires LETSFG_API_KEY. A PFS Bearer token has no profile — it is bound to your payment method, carries no balance, and search and booking are free.

load_resources

Load the LetsFG workflow guide (3-step booking flow, pricing, passenger rules, error handling). Call this ONCE at the start of a conversation to understand how to use the flight tools correctly. Clients that support MCP resources get this automatically — this tool is for clients that do not.