Change one stop of a FareDice trip
swap_stopOther places for one stop of a FareDice trip on the same days, keeping the rest of the trip: each with how much the trip's flights change and its link, cheapest first. With city, that change made: the new trip, as get_trip returns it. Places already in the trip, and countries it already visits or (with the link's passports) needs a visa for, are left out. 20 calls a day per caller (UTC) of find_trips, get_trip, swap_stop and edit_trip are free; after that each costs US$0.01, paid with x402 (USDC on Base). nonstop_fares and nonstop_from are always free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"link": "<link>",
"stop": "<stop>"
},
"name": "swap_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | A place from the list (its name or IATA city code) to put in that stop's place. Leave it out for the list. | |
| link | Yes | A FareDice trip link, as find_trips returns it (https://faredice.com/trip?l=... or /sea/trip?l=...). | |
| stop | Yes | Which stop to change: 1 is where the first flight lands, 2 the next, and so on. |