get_trip
ChatGPTReads one trip. views picks the sections, in one answer: the itinerary with its planning checklist (default), the packing list, tasks, documents, the total cost, or the PDFs.
list_trips
ChatGPTLists the owner's trips with their IDs, titles, dates, and number of visits, most recently changed first.
read_memory
ChatGPTReads what the owner let TripValise remember: whether each kind of storage is on, the user memory, and with tripId that trip's preferences and onboarding state, each with its memory revision.
remove_items
ChatGPTRemoves things of one kind per call: the whole trip (permanently, with everything in it; no ids), one visit with its stays, activities, and note (its transfers are kept for reassignment), or up to 20 stay, 20 activity, 20 transport, 50 packing_item, 10 packing_bag, 20 task, 20 document (bags by name or ID, with their items). Notes, prices, and PDFs go with them. Needs a preview's confirmation.
save_memory
ChatGPTReplaces one whole memory record: user (lasting preferences the owner expressed) or trip (one trip's preferences, with its tripId). Read it first and keep what is still useful. Refused while the owner has that storage off; it cannot turn storage on.
search_places
ChatGPTFinds places by name, as the web app's place search does, and lists them with their address and kind. Send up to 10 names at once, such as every stop of a route. Send a place's code (such as @1a2b3c4d), or its line exactly, as place to add or change a visit; a listed code or line stays valid for a day. When a name is shared, include the region, such as Ilha Grande, Angra dos Reis, Brazil. If the intended place is not listed, search again with its region or a nearby town; never pick another place to make a save succeed.
upload_pdf
ChatGPTAttaches one ChatGPT PDF to an existing stay, transport, activity, or document. Create the item first. Limits: 1 MB per PDF, 3 per item, 100 per trip, 100 MB per account. Does not replace files or change booking/Have status.
upsert_activities
ChatGPTAdds or changes up to 20 things to do; update (every entry has activityId) changes those activities (the fields to change; PDFs are kept); insert (none has it) adds activities at one or several visits. A date outside the visit is a planning gap, not an error.
upsert_documents
ChatGPTAdds or changes up to 20 papers the trip needs, such as travel insurance, tickets, or vouchers, each had or missing. update (every entry has itemId) changes those documents (the fields to change, such as only have; their PDFs are kept); insert (none has it) adds documents. A trip holds at most 50 documents.
upsert_packing_items
ChatGPTAdds or changes up to 50 packing items in one call; update (every entry has itemId) changes those items (the fields to change; a bag moves it, status packs it); insert (none has it) adds items, such as a whole list for the trip. A bag is created when an item names a new one. A trip holds at most 300 items and 10 bags.
upsert_stays
ChatGPTAdds or changes up to 20 places to sleep; update (every entry has stayId) changes those stays (the fields to change; PDFs are kept); insert (none has it) adds stays at one or several visits. Dates outside the visit are a planning gap, not an error.
upsert_tasks
ChatGPTAdds or changes up to 20 to-dos, such as “buy insurance by 1 May” or “check in online”: never a flight, stay, activity, or paper to keep (a document). update (every entry has itemId) changes those tasks (the fields to change; done ticks it, and an entry may carry only done); insert (none has it) adds tasks. A trip holds at most 100 tasks.
upsert_transports
ChatGPTAdds or changes the transport on up to 20 legs, each from a visit to the next one in the route; each entry names the visit it leaves once and the fields to set. One mode per leg; a vehicle change is a new stop. Times are local clock times; its dates come from the visits. PDFs are kept. An arrival day that takes it outside the trip is refused. With transferId, an entry instead moves a transfer waiting after a route change onto that leg, with its details, price, and PDFs.
upsert_trip
ChatGPTWithout tripId, creates a trip with a title and, optionally, dates, currency, and start and end places (the same for a round trip); add stops with upsert_visits. With tripId and expectedRevision, changes its title, dates, currency, or start and end places; a stop outside new dates is refused.
upsert_visits
ChatGPTAdds or changes up to 10 stops; update (every entry has visitId) changes those visits; insert (none has it) adds stops. A stop's required arrival date places it between the trip's start and end; its leave date comes from the next visit. Stops on the same date keep the order given; the optional afterVisitId (adding only) orders one among stops of its date: after a stop of that date, or first after the stop before them (or the start). Changing: a visit's place, its name (a new place takes the place's name unless one is sent), a stop's arrival date, or its note. The start and end take the trip dates: change those with upsert_trip. move alone swaps a stop with the one before or after it arriving the same day, such as a day trip and the return.