Reorder Destinations
reorder_destinationsRearranges the destination order in a trip variant so you can add stops out of sequence and fix the itinerary without deleting and re-adding them.
Instructions
Rearrange the itinerary order of a variant's destinations. Use after adding stops out of order, instead of deleting and re-adding them.
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": {
"tripId": "<tripId>",
"variantId": "<variantId>",
"data": "<data>"
},
"name": "reorder_destinations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The desired destination order. | |
| tripId | Yes | Id of the trip, as returned by list_trips or get_trip. | |
| variantId | Yes | Id of the trip variant (an alternative version of the trip), from get_trip. |