Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions skills/wego/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Then open only the reference for your path, and keep to that path for the whole

Both the CLI and the MCP tools read live inventory and prices. Quote what they return rather than estimating, and never invent a figure they did not give you.

A flight fare whose `price.paymentBasis` reads `no_method_selected` is priced before any payment fee, and checkout can add one depending on how the traveller pays. Say so when you quote it, and never add or estimate that fee yourself.

### Keep inputs and IDs

Retain the user's original search inputs and the IDs returned by each command or tool. Map follow-ups such as "option 2" back to the corresponding object in the most recent result.
Expand Down
2 changes: 2 additions & 0 deletions skills/wego/references/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ wego flights trip <tripId> --search <searchId> [--currency USD] [--locale en] [-

Summarize the complete itinerary and available fares. Preserve every fare's `kind`, `fareId`, price, `refundable`, and `handoffUrl`. Refundability varies **between fares on the same trip**, so a "refundable" or "free cancellation" requirement is settled here, per fare, and never by the trip. This read is also where per-flight identity lives – flight numbers, and the marketing-vs-operating carrier on a codeshare. The leg's `operatingAirlines` names every carrier that only sells under someone else's code here, and `segments[].operatingCarrier` says which flight each one operates.

**A fare's total can come before a payment fee.** On `flights trip`, read each fare's `price.paymentBasis`. When it reads `no_method_selected`, the search named no payment method, so `total` holds no fee for one (`paymentFeeUsd: 0`). Checkout can then add a payment fee depending on how the traveller pays (some cards and pay-later options carry one, others do not), and wego.com preselects its popular methods, so the site can show a higher figure for the same fare. Say the total is before any payment fee when you quote it. When a price carries no `paymentBasis`, quote `total` as returned without that caveat. Read `paymentBasis` and `paymentFeeUsd`, never `includesFees`: it is deprecated and always `true`. Never add, estimate or subtract a fee yourself. A fare that carries `paymentFees` lists per-method fees by numeric `paymentMethodId` only: the lowest one is the least checkout adds, so do not average them, and do not name a method from its id.

**`--view detail` is a different shape, not a richer one.** It answers per segment – resolved airport names, airline and provider logos, seat and amenity metadata – and carries `legs[]` where the default carries `outbound`/`return`, with a `provider` object where the default has a flat `providerCode`. So the funnel runs on the **default** read: take a `fareId` from there, not from a detail read. Ask for `detail` when the user wants the texture of the flight itself (which airport terminal, what seat, what is on board), and stay on the default for everything else. It is **not** where you learn a segment is a bus or a train: the default read carries `transportType` on every segment and `transportTypes` on every leg, so the disclosure never depends on a view you were told you could skip.

**Comparing every booking site's price across many options costs one trip read each.** For "show me all the sites selling these ten", say what it will take, or narrow to the two or three trips the user cares about first.
Expand Down
Loading