Change a FareDice trip's nights or places
edit_tripChange one stop of a FareDice trip and re-chain the rest: night_more or night_less there (the flights after it move a day), night_from_next or night_to_next (a night moved from or to the next stop; the trip's end holds), add_stop (a place after it, with city; without city, the places that fit, each with its change and link) or drop_stop (the stop left out). Returns the new trip as get_trip does, with how much the flights change, how far the end moves and any airport it changes (airports_change). Without change, every change the stop can take, each with its link. 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": "edit_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | With add_stop: the place to add (its name or IATA city code), from the list add_stop gives without it. | |
| 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. | |
| change | No | The change to make. Leave it out for the list of changes this stop can take. |