AI agents
Tools reference
The 27 tools the Trep connector gives your AI agent. View tools work on every connection; change tools need a connection you allowed to make changes. Tools marked “Asks first” are flagged as destructive, so apps like Claude confirm with you before running them.
Money is in paise (₹1 = 100 paise, so ₹6,500 is 650000). Dates are YYYY-MM-DD in India time. Ids come from the list and get tools.
Agency and dashboard
Get agency profile
get_agency
The connected agency's profile: name, site address (slug), status (onboarding, pending, verified, rejected, suspended), city, about, Instagram, WhatsApp number and whether it's verified, seat-hold hours, site design and custom domain.
No fields.
Get dashboard numbers
get_dashboard
Today's numbers, counted in IST: new orders, enquiries this week (Mon-Sun), seats filled vs offered this month, upcoming trips, published packages, WhatsApp taps and site views this week, and views per day for the last 7 days.
No fields.
Packages and batches
List packages
list_packages
The agency's trip packages with status (draft, published, archived), from-price in paise, next batch date and counts. Archived packages are left out unless include_archived is true.
| Field | Type | Notes |
|---|---|---|
include_archived | boolean | Also list archived packages. |
Get a package
get_package
One package in full: itinerary, inclusions, exclusions, pickup point, policies, base price, its sharing options with prices, and its batches with seats left and state (open, filling_fast, full, closed, completed).
| Field | Type | Notes |
|---|---|---|
package_idrequired | string (id) | The package's id (from list_packages). |
List upcoming batches
list_batches
Upcoming dated batches across all packages, soonest first, with total seats, seats taken, seats left and state.
No fields.
Get a batch
get_batch
One batch: dates, total seats, seats taken and left, state, price override and women-only flag.
| Field | Type | Notes |
|---|---|---|
batch_idrequired | string (id) | The batch's id. |
Get a batch's traveller list
get_batch_manifest
Every traveller booked on a batch (all orders except cancelled ones): names, ages, genders, phones and their order codes. Contains travellers' personal data: use it only for the agency's own trip operations.
| Field | Type | Notes |
|---|---|---|
batch_idrequired | string (id) | The batch's id. |
Create a package
create_package
Create a trip package as a draft (not visible to travellers until published with set_package_status). The site address of the package is made from the title.
| Field | Type | Notes |
|---|---|---|
titlerequired | string up to 120 chars | |
destination | string up to 120 chars | |
duration_days | integer 1–60 | |
duration_nights | integer 0–60 | |
summary | string | |
itinerary | list of object | |
inclusions | list of string | |
exclusions | list of string | |
pickup_point | string | |
policies | string | |
base_price_paise | integer ≥ 0 | Price per person in paise (₹6,500 = 650000), used when the package has no sharing options. |
Update a package
update_package
Change a package's details. Only the fields given change. Existing orders keep the terms they were booked with.
| Field | Type | Notes |
|---|---|---|
package_idrequired | string (id) | |
title | string up to 120 chars | |
destination | string up to 120 chars | |
duration_days | integer 1–60 | |
duration_nights | integer 0–60 | |
summary | string | |
itinerary | list of object | |
inclusions | list of string | |
exclusions | list of string | |
pickup_point | string | |
policies | string | |
base_price_paise | integer ≥ 0 |
Set sharing options
set_package_options
Replace a package's sharing options (e.g. Dorm, Triple, Double) and their per-person prices. Options not in the list are removed. An empty list means the package uses its base price.
| Field | Type | Notes |
|---|---|---|
package_idrequired | string (id) | |
optionsrequired | list of object |
Publish, unpublish or archive a package
set_package_status
Set a package to published (visible on the agency's site), draft (hidden) or archived (hidden and out of lists). The package's site address is fixed once published.
| Field | Type | Notes |
|---|---|---|
package_idrequired | string (id) | |
statusrequired | one of: draft, published, archived |
Duplicate a package
duplicate_package
Copy a package (with its sharing options, without batches) as a new draft.
| Field | Type | Notes |
|---|---|---|
package_idrequired | string (id) |
Delete a package
delete_package
Delete a package. A package with orders is archived instead (orders are never lost).
| Field | Type | Notes |
|---|---|---|
package_idrequired | string (id) |
Add a batch
create_batch
Add a dated batch to a package. Travellers can book it once the package is published and the WhatsApp number is verified.
| Field | Type | Notes |
|---|---|---|
package_idrequired | string (id) | |
starts_onrequired | string (YYYY-MM-DD) | First day, YYYY-MM-DD (IST). |
ends_onrequired | string (YYYY-MM-DD) | Last day, YYYY-MM-DD (IST), on or after starts_on. |
total_seatsrequired | integer 1–1000 | |
price_override_paise | integer ≥ 0 | Replaces the package price and every option price for this batch. |
women_only | boolean |
Update or close a batch
update_batch
Change a batch's dates, seats, price override or women-only flag, or close it (status closed stops new bookings; open reopens it). Seats can't go below those already taken.
| Field | Type | Notes |
|---|---|---|
batch_idrequired | string (id) | |
starts_on | string (YYYY-MM-DD) | |
ends_on | string (YYYY-MM-DD) | |
total_seats | integer 1–1000 | |
price_override_paise | integer ≥ 0 | |
clear_price_override | boolean | Remove the price override. |
status | one of: open, closed | |
women_only | boolean |
Delete a batch
delete_batch
Delete a batch. A batch with orders is archived instead (orders are never lost).
| Field | Type | Notes |
|---|---|---|
batch_idrequired | string (id) |
Orders and customers
List orders
list_orders
Orders, newest first. Filter by status, package, batch or customer, or search by order code (TRP-CODE-0001), traveller name or phone. Returns up to 'limit' orders (default 50, at most 200).
| Field | Type | Notes |
|---|---|---|
status | one of: new, contacted, payment_pending, confirmed, completed, cancelled | |
search | string | Order code, traveller name or phone. |
package_id | string (id) | |
batch_id | string (id) | |
customer_id | string (id) | |
limit | integer 1–200 | |
offset | integer ≥ 0 |
Get an order
get_order
One order: code, status, the terms booked (package, dates, sharing option, unit price, total), lead traveller and other travellers, seat hold expiry, payments recorded, and the timeline of status changes and notes.
| Field | Type | Notes |
|---|---|---|
order_idrequired | string (id) | The order's id (not its TRP code; use list_orders with search to find it). |
List customers
list_customers
Customers (de-duplicated by phone) with trip counts and total spent. Search by name or phone, or filter by tag.
| Field | Type | Notes |
|---|---|---|
search | string | Name or phone. |
tag | string |
Get a customer
get_customer
One customer with notes, tags and their order history.
| Field | Type | Notes |
|---|---|---|
customer_idrequired | string (id) |
Move an order
update_order_status
Move an order through the pipeline: new → contacted → payment_pending → confirmed → completed, or cancelled. Confirming re-checks seats if the hold lapsed; cancelling releases the seats; completed is allowed only after the trip ends. The move and the note go on the order's timeline.
| Field | Type | Notes |
|---|---|---|
order_idrequired | string (id) | |
statusrequired | one of: contacted, payment_pending, confirmed, completed, cancelled | |
note | string up to 2000 chars |
Add a note to an order
add_order_note
Add a note to an order's timeline (visible to the agency only).
| Field | Type | Notes |
|---|---|---|
order_idrequired | string (id) | |
noterequired | string up to 2000 chars |
Record a payment
record_payment
Record a payment received outside Trep (UPI, cash, bank transfer, card) against an order. It's added to the order's paid total and timeline.
| Field | Type | Notes |
|---|---|---|
order_idrequired | string (id) | |
amount_paiserequired | integer ≥ 1 | Amount in paise (₹2,000 = 200000). |
moderequired | one of: upi, cash, bank, card, other | |
kindrequired | one of: advance, full, balance | |
paid_onrequired | string (YYYY-MM-DD) | YYYY-MM-DD (IST). |
note | string up to 500 chars |
Update a customer's notes or tags
update_customer
Replace a customer's private notes and/or tags (e.g. repeat, corporate, vegetarian).
| Field | Type | Notes |
|---|---|---|
customer_idrequired | string (id) | |
notes | string up to 4000 chars | |
tags | list of string up to 40 chars |
Website
Get website sections
get_website_sections
The agency website's custom sections in order (gallery, services, testimonials, faq, text, contact), including hidden ones. Use get_agency for the hero layout and accent colour.
No fields.
Change the website design
update_website_design
Set the website's hero layout (cover, split, minimal) and/or accent colour (trep, teal, ocean, indigo, forest, plum, rust).
| Field | Type | Notes |
|---|---|---|
hero_style | one of: cover, split, minimal | |
accent | one of: trep, teal, ocean, indigo, forest, plum, rust |
Replace website sections
set_website_sections
Replace all of the website's custom sections with this ordered list (sections not in the list are removed; read them first with get_website_sections). Kinds and their data: gallery {media_ids: [uuid]}, services {items: [{icon, title, text}]}, testimonials {items: [{name, trip, quote}]}, faq {items: [{q, a}]}, text {body}, contact {address, hours, phone, email, map_url (https only)}. Plain text only.
| Field | Type | Notes |
|---|---|---|
sectionsrequired | list of object up to 20 |