Jinko MCP is an MCP server published by com.gojinko.mcp, hosted at mcp.gojinko.com. When last checked on 2026-11-23 it was answering with an error. It declares 7 tools, including flight_calendar, find_destination, flight_search, hotel_search, hotel_details.
Turn your ChatGPT to a super travel agent
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Search flights between a known origin and destination using cached pricing, especially for flexible dates. WHEN TO USE THIS TOOL (CRITICAL): - The user provides both an origin AND a destination (city or airport) - Examples: "Paris to Barcelona", "JFK to CDG", "London to NYC for a weekend" - Supports loose / flexible dates: single dates, date arrays, date ranges, stay_days - ALSO the right tool for "cheapest flight", "best flight", "find me a flight", "cheapest date" phrasings — this tool returns the cheapest cached itineraries for the given route and window. WHEN TO USE find_destination INSTEAD: - The user does NOT specify a destination: "Where should I go from Paris?", "Best deals from NYC" - The user wants inspiration: "Beach destinations from London", "Cheap flights from SF" WHEN TO USE flight_search INSTEAD: - The user wants live pricing on one specific route with an exact departure date. For a round trip, also require an exact return date; one-way trips need no return date. - Examples: "Paris → NYC one-way on June 17", "Paris → NYC, June 17 → June 26" - flight_search hits live pricing (each call has a cost) and is the step immediately before booking. Use it once the route and required travel dates are locked. - **TRIP-CONTEXT DATES COUNT AS EXACT.** If a trip is already in context with a HOTEL, the hotel's check-in and check-out ARE the exact departure/return dates the user wants — even if they don't restate the dates in the message. In that case use flight_search (not flight_calendar) with the hotel's check-in as departure_date and check-out as return_date. Examples: cart has hotel May 8 → May 10 in Madrid; user says "add a flight from Paris" → flight_search with PAR→MAD, dep=2026-05-08, ret=2026-05-10. The trip cross-sell hint confirms this — when it points you at flight_search, follow it. IMPORTANT: All dates in query parameters (departure_dates, departure_date_ranges, return_dates, return_date_ranges) MUST be in the future. Never use past dates. Use departure_dates for specific days or departure_date_ranges for a window. There is no departure_date parameter. Origin and destination: send the city code when the user named a city (Paris → PAR, New York → NYC) and the airport code when they named an airport (JFK, CDG). A code that names a multi-airport city covers every airport of that city; any other code is that one airport. LAX, MIA and LAS are both a city code and that city's main airport, so they are read as the city here — this tool has no type field; flight_search has origin_type / destination_type to pin one airport. ROUTE SEARCH: - Use exact 3-letter IATA airport codes or IATA city code for both origin and destination - Date ranges OR stay duration for flexible trip planning - Natural trip duration (stay_days) instead of exact return dates - By default, please search roundtrip flights unless user specifies one-way. Use trip_type="oneway" ONLY when the user explicitly asks for a one-way trip USE CASES: ✓ "Find flights from JFK to CDG next month" - route + flexible date range ✓ "Fly from LA to Tokyo for a week in December" - uses departure_date_ranges + stay_days ✓ "Paris to Barcelona for a weekend in April" - route + loose window ✓ "Cheapest flight from ORD to LHR in June" - route + loose month window ✓ "Direct business-class flight NYC → LON next month" - route with preferences Flow: flight_calendar → (user picks) → flight_search (price_check with offer_token) → trip → book. Or, for precise dates: skip flight_calendar and go straight to flight_search search mode. The widget displays flights in a scrollable carousel with options to view detailed itineraries. Every price this tool returns is one adult's cached fare; the tool takes no party. To price the whole party, price-check the offer using flight_search with price_check and the travellers' counts in traveler_counts. **Cost: 1 credit per call.**
None yet. Changes appear after a server's second daily check.
Inferred from the host name and headers: what a server runs on, not who runs it.
| Parameter | Type | Description |
|---|---|---|
| locale | string | User's BCP 47 locale inferred from the conversation (e.g. "fr-FR", "en-US", "ja-JP"). Used for formatting dates, numbers, and selecting currency. Infer from the user's language and location context. |
| origin * | string | REQUIRED: Single origin IATA airport code or IATA city code. Airport codes: "JFK" for John F. Kennedy in New York, "LGW" for Gatwick in London. City codes: "NYC" for New York, "LON" for London, "PAR" for Paris. A code that names a multi-airport city (NYC, LON, PAR — and LAX, MIA, LAS, which a city s… |
| sort_by | string | Sort order. lowest (cheapest flights first) is the only order today; omit it for the same. |
| currency | string | ISO 4217 currency code for displaying prices (e.g. "EUR", "USD", "GBP"). Infer from the user's country or locale. If the user mentions a specific currency, use that. |
| max_price | any | Maximum price PER PERSON: the cap applies to a one-adult fare, in the requested currency. For a whole-party budget, divide it by the number of ADULTS only and treat the result as a loose pre-filter: children and lap infants usually cost less than an adult, so dividing by every traveller would exclud… |
| stay_days | any | Exact number of days to stay at destination. Used with departure_date to calculate return date automatically. Example: 7 for a week-long trip, 3 for a weekend getaway. |
| trip_type * | string | REQUIRED: Trip type: "oneway" for one-way flights or "roundtrip" for round-trip flights. |
| cabin_class | any | Cabin class preference. Options: "economy" (standard economy), "premium_economy" (enhanced economy with more space/amenities), "business" (business class), "first" (first class). When specified, only shows flights in the requested cabin class. |
| destination * | string | REQUIRED: Single destination IATA airport code or IATA city code. Airport codes: "CDG" for Paris Charles de Gaulle, "SFO" for San Francisco. City codes: "PAR" for Paris, "BJS" for Beijing, "LAX" for Los Angeles (LAX is the city code too). A code that names a multi-airport city (NYC, LON, PAR — and L… |
| direct_only | boolean | Only show direct/nonstop flights. When true, only flights with no stops are returned. Use for fastest travel or when layovers are not desired. |
| user_intent | string | A concise summary of what the user is trying to accomplish, derived from their message or the conversation context that triggered this tool call. This is used to understand the user's intent and context to improve the overall user experience. - For short, self-contained prompts (e.g. "I want new sh… |
| return_dates | any | List of specific return dates for round-trip flights (YYYY-MM-DD). Use for searching multiple return date options with OR logic. Must be after departure dates. Example: ["2025-12-22", "2025-12-23", "2025-12-24"] |
| departure_dates | array | List of specific departure dates in ISO 8601 format (YYYY-MM-DD). Use for searching multiple specific dates with OR logic. Example: ["2025-12-15", "2025-12-16", "2025-12-17"] for flexible date searches. Useful when user wants to check specific dates like weekends. |
| stay_days_range | any | Flexible stay duration range. Use when user wants flexibility in trip length (e.g., "5 to 10 days"). Cannot be combined with exact stay_days or return_date. Example: {min: 5, max: 10} |
| arrival_time_range | object | Filter the OUTBOUND leg by local arrival time-of-day. Example: { "latest": "20:00" } to arrive by 8pm. Use when the user says "arrive before dinner", "land by noon", etc. |
| return_date_ranges | any | List of return date ranges for flexible round-trip exploration. Use when user wants flexibility on return timing across multiple periods with OR logic. Example: [{start: "2025-12-22", end: "2025-12-25"}, {start: "2025-12-29", end: "2026-01-02"}] |
| departure_time_range | object | Filter the OUTBOUND leg by local departure time-of-day. Example: { "earliest": "08:00", "latest": "12:00" } for a late-morning departure. Use when the user says "morning flight", "leave after 6pm", etc. |
| departure_date_ranges | array | List of departure date ranges for flexible travel exploration. Use when user says "next month", "spring", or wants to discover deals across multiple date periods with OR logic. Example: [{start: "2025-12-10", end: "2025-12-15"}, {start: "2025-12-20", end: "2025-12-25"}] for non-contiguous periods. |
| return_arrival_time_range | any | Round-trip only. Filter the RETURN leg by local arrival time-of-day. |
| return_departure_time_range | any | Round-trip only. Filter the RETURN leg by local departure time-of-day. |
{
"name": "flight_calendar",
"title": "flight_calendar",
"description": "Search flights between a known origin and destination using cached pricing, especially for flexible dates.\n\nWHEN TO USE THIS TOOL (CRITICAL):\n- The user provides both an origin AND a destination (city or airport)\n- Examples: \"Paris to Barcelona\", \"JFK to CDG\", \"London to NYC for a weekend\"\n- Supports loose / flexible dates: single dates, date arrays, date ranges, stay_days\n- ALSO the right tool for \"cheapest flight\", \"best flight\", \"find me a flight\", \"cheapest date\" phrasings — this tool returns the cheapest cached itineraries for the given route and window.\n\nWHEN TO USE find_destination INSTEAD:\n- The user does NOT specify a destination: \"Where should I go from Paris?\", \"Best deals from NYC\"\n- The user wants inspiration: \"Beach destinations from London\", \"Cheap flights from SF\"\n\nWHEN TO USE flight_search INSTEAD:\n- The user wants live pricing on one specific route with an exact departure date. For a round trip, also require an exact return date; one-way trips need no return date.\n- Examples: \"Paris → NYC one-way on June 17\", \"Paris → NYC, June 17 → June 26\"\n- flight_search hits live pricing (each call has a cost) and is the step immediately before booking. Use it once the route and required travel dates are locked.\n- **TRIP-CONTEXT DATES COUNT AS EXACT.** If a trip is already in context with a HOTEL, the hotel's check-in and check-out ARE the exact departure/return dates the user wants — even if they don't restate the dates in the message. In that case use flight_search (not flight_calendar) with the hotel's check-in as departure_date and check-out as return_date. Examples: cart has hotel May 8 → May 10 in Madrid; user says \"add a flight from Paris\" → flight_search with PAR→MAD, dep=2026-05-08, ret=2026-05-10. The trip cross-sell hint confirms this — when it points you at flight_search, follow it.\n\nIMPORTANT:\n All dates in query parameters (departure_dates, departure_date_ranges, return_dates, return_date_ranges) MUST be in the future. Never use past dates.\n Use departure_dates for specific days or departure_date_ranges for a window. There is no departure_date parameter.\n Origin and destination: send the city code when the user named a city (Paris → PAR, New York → NYC) and the airport code when they named an airport (JFK, CDG). A code that names a multi-airport city covers every airport of that city; any other code is that one airport. LAX, MIA and LAS are both a city code and that city's main airport, so they are read as the city here — this tool has no type field; flight_search has origin_type / destination_type to pin one airport.\n\nROUTE SEARCH:\n- Use exact 3-letter IATA airport codes or IATA city code for both origin and destination\n- Date ranges OR stay duration for flexible trip planning\n- Natural trip duration (stay_days) instead of exact return dates\n- By default, please search roundtrip flights unless user specifies one-way. Use trip_type=\"oneway\" ONLY when the user explicitly asks for a one-way trip\n\nUSE CASES:\n✓ \"Find flights from JFK to CDG next month\" - route + flexible date range\n✓ \"Fly from LA to Tokyo for a week in December\" - uses departure_date_ranges + stay_days\n✓ \"Paris to Barcelona for a weekend in April\" - route + loose window\n✓ \"Cheapest flight from ORD to LHR in June\" - route + loose month window\n✓ \"Direct business-class flight NYC → LON next month\" - route with preferences\n\nFlow: flight_calendar → (user picks) → flight_search (price_check with offer_token) → trip → book.\nOr, for precise dates: skip flight_calendar and go straight to flight_search search mode.\n\nThe widget displays flights in a scrollable carousel with options to view detailed itineraries.\n\nEvery price this tool returns is one adult's cached fare; the tool takes no party. To price the whole party, price-check the offer using flight_search with price_check and the travellers' counts in traveler_counts.\n\n**Cost: 1 credit per call.**",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"origin",
"destination",
"trip_type"
],
"properties": {
"locale": {
"type": "string",
"description": "User's BCP 47 locale inferred from the conversation (e.g. \"fr-FR\", \"en-US\", \"ja-JP\"). Used for formatting dates, numbers, and selecting currency. Infer from the user's language and location context."
},
"origin": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "REQUIRED: Single origin IATA airport code or IATA city code. Airport codes: \"JFK\" for John F. Kennedy in New York, \"LGW\" for Gatwick in London. City codes: \"NYC\" for New York, \"LON\" for London, \"PAR\" for Paris. A code that names a multi-airport city (NYC, LON, PAR — and LAX, MIA, LAS, which a city shares with its main airport) covers every airport of that city; any other code is that one airport."
},
"sort_by": {
"enum": [
"lowest"
],
"type": "string",
"description": "Sort order. lowest (cheapest flights first) is the only order today; omit it for the same."
},
"currency": {
"type": "string",
"description": "ISO 4217 currency code for displaying prices (e.g. \"EUR\", \"USD\", \"GBP\"). Infer from the user's country or locale. If the user mentions a specific currency, use that."
},
"max_price": {
"anyOf": [
{
"type": "number",
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "Maximum price PER PERSON: the cap applies to a one-adult fare, in the requested currency. For a whole-party budget, divide it by the number of ADULTS only and treat the result as a loose pre-filter: children and lap infants usually cost less than an adult, so dividing by every traveller would exclude affordable trips. Send a per-person budget as-is. The exact whole-trip budget check is flight_search with max_price."
},
"stay_days": {
"anyOf": [
{
"type": "integer",
"maximum": 365,
"minimum": 1
},
{
"type": "null"
}
],
"description": "Exact number of days to stay at destination. Used with departure_date to calculate return date automatically. Example: 7 for a week-long trip, 3 for a weekend getaway."
},
"trip_type": {
"enum": [
"oneway",
"roundtrip"
],
"type": "string",
"description": "REQUIRED: Trip type: \"oneway\" for one-way flights or \"roundtrip\" for round-trip flights."
},
"cabin_class": {
"anyOf": [
{
"enum": [
"economy",
"premium_economy",
"business",
"first"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Cabin class preference. Options: \"economy\" (standard economy), \"premium_economy\" (enhanced economy with more space/amenities), \"business\" (business class), \"first\" (first class). When specified, only shows flights in the requested cabin class."
},
"destination": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "REQUIRED: Single destination IATA airport code or IATA city code. Airport codes: \"CDG\" for Paris Charles de Gaulle, \"SFO\" for San Francisco. City codes: \"PAR\" for Paris, \"BJS\" for Beijing, \"LAX\" for Los Angeles (LAX is the city code too). A code that names a multi-airport city (NYC, LON, PAR — and LAX, MIA, LAS, which a city shares with its main airport) covers every airport of that city; any other code is that one airport."
},
"direct_only": {
"type": "boolean",
"description": "Only show direct/nonstop flights. When true, only flights with no stops are returned. Use for fastest travel or when layovers are not desired."
},
"user_intent": {
"type": "string",
"description": "A concise summary of what the user is trying to accomplish, derived from their message or the\nconversation context that triggered this tool call.\nThis is used to understand the user's intent and context to improve the overall user experience.\n\n- For short, self-contained prompts (e.g. \"I want new shoes\"), copy the user message as-is.\n- For longer conversations or detailed requests, summarize the core goal and any relevant\n context in 1-2 sentences. Focus on intent, constraints, and preferences - not the full\n dialogue.\n\nBefore sending, strip all personally identifiable information (PII), including but not\nlimited to:\n - Names (first, last, usernames, handles)\n - Email addresses\n - Phone numbers\n - Physical addresses (street, city, zip/postal code, country when tied to an individual)\n - Dates of birth or exact ages\n - Government-issued ID numbers (SSN, passport, driver's license, etc.)\n - Payment or financial information (card numbers, bank accounts, etc.)\n - IP addresses or device identifiers\n - Account credentials (passwords, tokens, API keys)\n - Health or biometric data\n - Any other information that could identify a specific individual\n\nReplace stripped values with a generic placeholder (e.g. \"[name]\", \"[email]\", \"[address]\").\n\nExamples:\n User: \"I want red running shoes under $100\"\n -> \"I want red running shoes under $100\"\n\n User: \"Hi, I'm John Smith, john@example.com, and I'm looking for flights from Paris to\n Tokyo for 2 adults departing around mid-June, budget around EUR2000 total\"\n -> \"Looking for flights from Paris to Tokyo for 2 adults, mid-June, budget ~EUR2000\"\n\n User: \"I need help resetting my password for account ID acct_12345\"\n -> \"I need help resetting my password for account ID [account_id]\""
},
"return_dates": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "List of specific return dates for round-trip flights (YYYY-MM-DD). Use for searching multiple return date options with OR logic. Must be after departure dates. Example: [\"2025-12-22\", \"2025-12-23\", \"2025-12-24\"]"
},
"departure_dates": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of specific departure dates in ISO 8601 format (YYYY-MM-DD). Use for searching multiple specific dates with OR logic. Example: [\"2025-12-15\", \"2025-12-16\", \"2025-12-17\"] for flexible date searches. Useful when user wants to check specific dates like weekends."
},
"stay_days_range": {
"anyOf": [
{
"type": "object",
"required": [
"min",
"max"
],
"properties": {
"max": {
"type": "integer",
"maximum": 365,
"description": "Maximum stay duration in days"
},
"min": {
"type": "integer",
"minimum": 1,
"description": "Minimum stay duration in days"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Flexible stay duration range. Use when user wants flexibility in trip length (e.g., \"5 to 10 days\"). Cannot be combined with exact stay_days or return_date. Example: {min: 5, max: 10}"
},
"arrival_time_range": {
"type": "object",
"properties": {
"latest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive latest local time-of-day (HH:MM, 24-hour)."
},
"earliest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive earliest local time-of-day (HH:MM, 24-hour)."
}
},
"description": "Filter the OUTBOUND leg by local arrival time-of-day. Example: { \"latest\": \"20:00\" } to arrive by 8pm. Use when the user says \"arrive before dinner\", \"land by noon\", etc.",
"additionalProperties": false
},
"return_date_ranges": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"description": "Range end date (YYYY-MM-DD)"
},
"start": {
"type": "string",
"description": "Range start date (YYYY-MM-DD)"
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
],
"description": "List of return date ranges for flexible round-trip exploration. Use when user wants flexibility on return timing across multiple periods with OR logic. Example: [{start: \"2025-12-22\", end: \"2025-12-25\"}, {start: \"2025-12-29\", end: \"2026-01-02\"}]"
},
"departure_time_range": {
"type": "object",
"properties": {
"latest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive latest local time-of-day (HH:MM, 24-hour)."
},
"earliest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive earliest local time-of-day (HH:MM, 24-hour)."
}
},
"description": "Filter the OUTBOUND leg by local departure time-of-day. Example: { \"earliest\": \"08:00\", \"latest\": \"12:00\" } for a late-morning departure. Use when the user says \"morning flight\", \"leave after 6pm\", etc.",
"additionalProperties": false
},
"departure_date_ranges": {
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"description": "Range end date (YYYY-MM-DD)"
},
"start": {
"type": "string",
"description": "Range start date (YYYY-MM-DD)"
}
},
"additionalProperties": false
},
"description": "List of departure date ranges for flexible travel exploration. Use when user says \"next month\", \"spring\", or wants to discover deals across multiple date periods with OR logic. Example: [{start: \"2025-12-10\", end: \"2025-12-15\"}, {start: \"2025-12-20\", end: \"2025-12-25\"}] for non-contiguous periods."
},
"return_arrival_time_range": {
"anyOf": [
{
"type": "object",
"properties": {
"latest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive latest local time-of-day (HH:MM, 24-hour)."
},
"earliest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive earliest local time-of-day (HH:MM, 24-hour)."
}
},
"description": "Local time-of-day window (\"HH:MM\", 24-hour). Either bound may be omitted.",
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Round-trip only. Filter the RETURN leg by local arrival time-of-day."
},
"return_departure_time_range": {
"anyOf": [
{
"type": "object",
"properties": {
"latest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive latest local time-of-day (HH:MM, 24-hour)."
},
"earliest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Inclusive earliest local time-of-day (HH:MM, 24-hour)."
}
},
"description": "Local time-of-day window (\"HH:MM\", 24-hour). Either bound may be omitted.",
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Round-trip only. Filter the RETURN leg by local departure time-of-day."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"status": {
"enum": [
"success",
"empty",
"error"
],
"type": "string"
},
"flights": {
"type": "array",
"items": {}
},
"hasMore": {
"type": "boolean"
},
"priceRange": {
"type": "object",
"properties": {
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"currency": {
"type": "string"
}
},
"additionalProperties": true
},
"destination": {
"type": "object",
"properties": {
"location": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
},
"additionalProperties": true
},
"city_name": {
"type": "string"
},
"iata_code": {
"type": "string"
},
"city_main_image": {
"type": "string"
}
},
"additionalProperties": true
},
"searchQuery": {
"type": "object",
"properties": {
"locale": {
"type": "string"
},
"origins": {
"type": "array",
"items": {
"type": "string"
}
},
"currency": {
"type": "string"
},
"max_price": {
"type": "number"
},
"stay_days": {
"type": "number"
},
"trip_type": {
"type": "string"
},
"cabin_class": {
"type": "string"
},
"direct_only": {
"type": "boolean"
},
"return_dates": {
"type": "array",
"items": {
"type": "string"
}
},
"departure_dates": {
"type": "array",
"items": {
"type": "string"
}
},
"stay_days_range": {},
"return_date_ranges": {
"type": "array",
"items": {}
},
"departure_date_ranges": {
"type": "array",
"items": {}
}
},
"additionalProperties": true
},
"totalFlights": {
"type": "number"
},
"emissionsInfo": {
"type": "object",
"properties": {
"avg_co2": {
"type": "number"
},
"lowest_co2": {
"type": "number"
}
},
"additionalProperties": true
},
"error_message": {
"type": "string"
},
"availableAirlines": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Discover travel destinations when the user does NOT know where to go. This is a destination EXPLORATION tool. WHEN TO USE THIS TOOL (CRITICAL): - The user does NOT specify a destination: "Where should I go?", "Best deals from NYC" - The user wants inspiration based on criteria: "Beach destinations", "Somewhere warm", "Cheap flights from SF" - The user wants to compare multiple destination options from their origin - The user previously asked for destination recommendations and wants pricing for those options WHEN NOT TO USE THIS TOOL — USE flight_calendar INSTEAD: - The user specifies BOTH an origin AND a destination → use flight_calendar - Examples that should use flight_calendar, NOT this tool: • "Flights from Paris to Barcelona" → flight_calendar • "Find me a flight from JFK to CDG" → flight_calendar • "Cheapest flight from LA to Miami in June" → flight_calendar • "Paris to BCN for a weekend in April" → flight_calendar • "What are the cheapest dates to go to NYC from Paris?" → flight_calendar - If the user names a specific city/airport as destination, that means they KNOW where to go → flight_calendar IMPORTANT - DATES: All dates in query parameters (departure_dates, departure_date_ranges, return_dates, return_date_ranges) MUST be in the future. Never use past dates. Please fill as much as possible search parameters based on user intent to get best results. IMPORTANT - RE-CALL THIS TOOL when the user: - Asks for a different type of destination (beach, city trip, ski, etc.) - Asks for different dates while still exploring - The user is already in fullscreen mode in the widget CORE FUNCTIONALITY: - REQUIRED: User's origin location (LLM identifies ALL nearby airports) - OPTIONAL: Destination filtering by specific airports/cities OR omit for global discovery mode - Destination Discovery Mode: When destinations is omitted/empty, searches ALL destinations globally - Flexible dates and stay durations for exploring options - Filter by budget, direct flights preference, and locale - By default, please search roundtrip flights unless user specifies one-way AIRPORT IDENTIFICATION - CRITICAL: LLM MUST identify and recommend ALL relevant airports for user's origin location: - "New York": ["JFK", "LGA", "EWR"] - "London": ["LHR", "LGW", "STN", "LTN", "LCY"] - "Paris": ["CDG", "ORY"] - "Tokyo": ["NRT", "HND"] - "Chicago": ["ORD", "MDW"] - "Los Angeles": ["LAX"] - "San Francisco": ["SFO"] DESTINATION FILTERING - INTELLIGENT INTERPRETATION: Destinations can be specified using IATA airport codes OR city codes (3 letters). You can mix both types: - Airport codes: ["JFK", "CDG", "LHR"] - searches specific airports - City codes: ["NYC", "LON", "PAR"] - searches all airports in those cities - A code a city shares with its main airport (LAX, MIA, LAS) is read as the CITY: every airport of it DESTINATION LIST - CRITICAL: When users mention criteria that imply a type of destination, the LLM MUST generate the appropriate list: - "Sunny places in winter": ["MIA","MCO","SAN","PHX","HNL","CUN","PUJ","PTY","LIM","GIG"] - "Somewhere in Asia": ["NRT","HND","ICN","PVG","PEK","HKG","SIN","BKK","KUL","MNL"] - "Beach destinations": ["MIA","SAN","HNL","CUN","PUJ","SJU","NAS","MBJ"] - "European capitals": ["LHR","CDG","FRA","MAD","FCO","AMS","BRU","VIE","PRG","CPH"] If no filtering is specified ("anywhere", "surprise me"), leave destinations empty for global discovery. TYPICAL USE CASES: 1. "Where should I travel from NYC next month?" → origins: ["JFK","LGA","EWR"], destinations: [] 2. "I want to go somewhere warm from Chicago for a week in December" → origins: ["ORD","MDW"], destinations: [warm destinations] 3. "Best weekend getaways from Boston?" → origins: ["BOS"], destinations: [] 4. "Beach vacation from Seattle in summer under $600" → origins: ["SEA"], destinations: [beach destinations] IMPORTANT: Always provide ALL airports for origins to maximize search results. Every price this tool returns is one adult's cached fare; the tool
| Parameter | Type | Description |
|---|---|---|
| locale | string | User's BCP 47 locale inferred from the conversation (e.g. "fr-FR", "en-US", "ja-JP"). Used for formatting dates, numbers, and selecting currency. Infer from the user's language and location context. |
| origins * | array | REQUIRED. Array of origin IATA codes (3-letter uppercase), representing either airports or cities where the trip starts. The LLM MUST detect and include all relevant nearby airports or city codes based on the user’s location. Examples: ["JFK", "LGA", "EWR"] for New York City; ["SFO", "OAK", "SJC"] f… |
| sort_by | string | Sort order. "lowest" (cheapest first) is the only order today; omit it for the same. |
| currency | string | ISO 4217 currency code for displaying prices (e.g. "EUR", "USD", "GBP"). Infer from the user's country or locale. If the user mentions a specific currency, use that. |
| max_price | any | Maximum price PER PERSON: the cap applies to a one-adult fare, in the requested currency. For a whole-party budget, divide it by the number of ADULTS only and treat the result as a loose pre-filter: children and lap infants usually cost less than an adult, so dividing by every traveller would exclud… |
| stay_days | any | Exact number of days to stay at the destination. Used with a departure date to automatically compute the return date. Example: 7 = one-week trip; 3 = weekend getaway. |
| trip_type * | string | REQUIRED. Type of trip: "oneway" for single-leg flights, or "roundtrip" for return flights. |
| cabin_class | any | Preferred cabin class. Options: "economy", "premium_economy", "business", or "first". Filters results accordingly. |
{
"name": "find_destination",
"title": "find_destination",
"description": "Discover travel destinations when the user does NOT know where to go. This is a destination EXPLORATION tool.\n\nWHEN TO USE THIS TOOL (CRITICAL):\n- The user does NOT specify a destination: \"Where should I go?\", \"Best deals from NYC\"\n- The user wants inspiration based on criteria: \"Beach destinations\", \"Somewhere warm\", \"Cheap flights from SF\"\n- The user wants to compare multiple destination options from their origin\n- The user previously asked for destination recommendations and wants pricing for those options\n\nWHEN NOT TO USE THIS TOOL — USE flight_calendar INSTEAD:\n- The user specifies BOTH an origin AND a destination → use flight_calendar\n- Examples that should use flight_calendar, NOT this tool:\n • \"Flights from Paris to Barcelona\" → flight_calendar\n • \"Find me a flight from JFK to CDG\" → flight_calendar\n • \"Cheapest flight from LA to Miami in June\" → flight_calendar\n • \"Paris to BCN for a weekend in April\" → flight_calendar\n • \"What are the cheapest dates to go to NYC from Paris?\" → flight_calendar\n- If the user names a specific city/airport as destination, that means they KNOW where to go → flight_calendar\n\nIMPORTANT - DATES:\n All dates in query parameters (departure_dates, departure_date_ranges, return_dates, return_date_ranges) MUST be in the future. Never use past dates.\n Please fill as much as possible search parameters based on user intent to get best results.\n\nIMPORTANT - RE-CALL THIS TOOL when the user:\n- Asks for a different type of destination (beach, city trip, ski, etc.)\n- Asks for different dates while still exploring\n- The user is already in fullscreen mode in the widget\n\nCORE FUNCTIONALITY:\n- REQUIRED: User's origin location (LLM identifies ALL nearby airports)\n- OPTIONAL: Destination filtering by specific airports/cities OR omit for global discovery mode\n- Destination Discovery Mode: When destinations is omitted/empty, searches ALL destinations globally\n- Flexible dates and stay durations for exploring options\n- Filter by budget, direct flights preference, and locale\n- By default, please search roundtrip flights unless user specifies one-way\n\nAIRPORT IDENTIFICATION - CRITICAL:\nLLM MUST identify and recommend ALL relevant airports for user's origin location:\n- \"New York\": [\"JFK\", \"LGA\", \"EWR\"]\n- \"London\": [\"LHR\", \"LGW\", \"STN\", \"LTN\", \"LCY\"]\n- \"Paris\": [\"CDG\", \"ORY\"]\n- \"Tokyo\": [\"NRT\", \"HND\"]\n- \"Chicago\": [\"ORD\", \"MDW\"]\n- \"Los Angeles\": [\"LAX\"]\n- \"San Francisco\": [\"SFO\"]\n\nDESTINATION FILTERING - INTELLIGENT INTERPRETATION:\nDestinations can be specified using IATA airport codes OR city codes (3 letters). You can mix both types:\n- Airport codes: [\"JFK\", \"CDG\", \"LHR\"] - searches specific airports\n- City codes: [\"NYC\", \"LON\", \"PAR\"] - searches all airports in those cities\n- A code a city shares with its main airport (LAX, MIA, LAS) is read as the CITY: every airport of it\n\nDESTINATION LIST - CRITICAL:\nWhen users mention criteria that imply a type of destination, the LLM MUST generate the appropriate list:\n- \"Sunny places in winter\": [\"MIA\",\"MCO\",\"SAN\",\"PHX\",\"HNL\",\"CUN\",\"PUJ\",\"PTY\",\"LIM\",\"GIG\"]\n- \"Somewhere in Asia\": [\"NRT\",\"HND\",\"ICN\",\"PVG\",\"PEK\",\"HKG\",\"SIN\",\"BKK\",\"KUL\",\"MNL\"]\n- \"Beach destinations\": [\"MIA\",\"SAN\",\"HNL\",\"CUN\",\"PUJ\",\"SJU\",\"NAS\",\"MBJ\"]\n- \"European capitals\": [\"LHR\",\"CDG\",\"FRA\",\"MAD\",\"FCO\",\"AMS\",\"BRU\",\"VIE\",\"PRG\",\"CPH\"]\n\nIf no filtering is specified (\"anywhere\", \"surprise me\"), leave destinations empty for global discovery.\n\nTYPICAL USE CASES:\n1. \"Where should I travel from NYC next month?\" → origins: [\"JFK\",\"LGA\",\"EWR\"], destinations: []\n2. \"I want to go somewhere warm from Chicago for a week in December\" → origins: [\"ORD\",\"MDW\"], destinations: [warm destinations]\n3. \"Best weekend getaways from Boston?\" → origins: [\"BOS\"], destinations: []\n4. \"Beach vacation from Seattle in summer under $600\" → origins: [\"SEA\"], destinations: [beach destinations]\n\nIMPORTANT: Always provide ALL airports for origins to maximize search results.\n\nEvery price this tool returns is one adult's cached fare; the tool ",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"origins",
"trip_type"
],
"properties": {
"locale": {
"type": "string",
"description": "User's BCP 47 locale inferred from the conversation (e.g. \"fr-FR\", \"en-US\", \"ja-JP\"). Used for formatting dates, numbers, and selecting currency. Infer from the user's language and location context."
},
"origins": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "REQUIRED. Array of origin IATA codes (3-letter uppercase), representing either airports or cities where the trip starts. The LLM MUST detect and include all relevant nearby airports or city codes based on the user’s location. Examples: [\"JFK\", \"LGA\", \"EWR\"] for New York City; [\"SFO\", \"OAK\", \"SJC\"] for the San Francisco Bay Area; [\"ORD\", \"MDW\"] for Chicago; or a single city code like [\"NYC\"]. A code that names a multi-airport city (NYC, LON, PAR — and LAX, MIA, LAS, which a city shares with its main airport) covers every airport of that city; any other code is that one airport."
},
"sort_by": {
"enum": [
"lowest"
],
"type": "string",
"description": "Sort order. \"lowest\" (cheapest first) is the only order today; omit it for the same."
},
"currency": {
"type": "string",
"description": "ISO 4217 currency code for displaying prices (e.g. \"EUR\", \"USD\", \"GBP\"). Infer from the user's country or locale. If the user mentions a specific currency, use that."
},
"max_price": {
"anyOf": [
{
"type": "number",
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "Maximum price PER PERSON: the cap applies to a one-adult fare, in the requested currency. For a whole-party budget, divide it by the number of ADULTS only and treat the result as a loose pre-filter: children and lap infants usually cost less than an adult, so dividing by every traveller would exclude affordable trips. Send a per-person budget as-is. The exact whole-trip budget check is flight_search with max_price."
},
"stay_days": {
"anyOf": [
{
"type": "integer",
"maximum": 365,
"minimum": 1
},
{
"type": "null"
}
],
"description": "Exact number of days to stay at the destination. Used with a departure date to automatically compute the return date. Example: 7 = one-week trip; 3 = weekend getaway."
},
"trip_type": {
"enum": [
"oneway",
"roundtrip"
],
"type": "string",
"description": "REQUIRED. Type of trip: \"oneway\" for single-leg flights, or \"roundtrip\" for return flights."
},
"cabin_class": {
"anyOf": [
{
"enum": [
"economy",
"premium_economy",
"business",
"first"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Preferred cabin class. Options: \"economy\", \"premium_economy\", \"business\", or \"first\". Filters results accordingly."
},
"direct_only": {
"type": "boolean",
"description": "When true, only returns nonstop (direct) flights. Useful for avoiding layovers or minimizing total travel time."
},
"user_intent": {
"type": "string",
"description": "A concise summary of what the user is trying to accomplish, derived from their message or the\nconversation context that triggered this tool call.\nThis is used to understand the user's intent and context to improve the overall user experience.\n\n- For short, self-contained prompts (e.g. \"I want new shoes\"), copy the user message as-is.\n- For longer conversations or detailed requests, summarize the core goal and any relevant\n context in 1-2 sentences. Focus on intent, constraints, and preferences - not the full\n dialogue.\n\nBefore sending, strip all personally identifiable information (PII), including but not\nlimited to:\n - Names (first, last, usernames, handles)\n - Email addresses\n - Phone numbers\n - Physical addresses (street, city, zip/postal code, country when tied to an individual)\n - Dates of birth or exact ages\n - Government-issued ID numbers (SSN, passport, driver's license, etc.)\n - Payment or financial information (card numbers, bank accounts, etc.)\n - IP addresses or device identifiers\n - Account credentials (passwords, tokens, API keys)\n - Health or biometric data\n - Any other information that could identify a specific individual\n\nReplace stripped values with a generic placeholder (e.g. \"[name]\", \"[email]\", \"[address]\").\n\nExamples:\n User: \"I want red running shoes under $100\"\n -> \"I want red running shoes under $100\"\n\n User: \"Hi, I'm John Smith, john@example.com, and I'm looking for flights from Paris to\n Tokyo for 2 adults departing around mid-June, budget around EUR2000 total\"\n -> \"Looking for flights from Paris to Tokyo for 2 adults, mid-June, budget ~EUR2000\"\n\n User: \"I need help resetting my password for account ID acct_12345\"\n -> \"I need help resetting my password for account ID [account_id]\""
},
"destinations": {
"type": "array",
"items": {
"type": "string"
},
"description": "OPTIONAL. Array of destination IATA codes (3-letter uppercase), representing either airports or cities. When a city code is provided, the LLM MUST expand it to include all associated airports. Examples: [\"LHR\", \"LGW\", \"STN\", \"LTN\", \"LCY\"] for London airports; [\"CDG\", \"ORY\"] for Paris; [\"TYO\"] for all Tokyo airports. You may mix airport and city codes: [\"JFK\", \"CDG\", \"LON\", \"PAR\"]. A code that names a multi-airport city (NYC, LON, PAR — and LAX, MIA, LAS, which a city shares with its main airport) covers every airport of that city; any other code is that one airport. When omitted or empty, the system searches globally to discover the best flight deals (destination discovery mode)."
},
"return_dates": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "List of specific return dates for round-trip searches (YYYY-MM-DD). Must be after the corresponding departure dates. Supports multiple options (OR logic). Example: [\"2025-12-22\", \"2025-12-23\", \"2025-12-24\"]."
},
"departure_dates": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of specific departure dates in ISO 8601 format (YYYY-MM-DD). Use for searching multiple specific dates with OR logic. Example: [\"2025-12-15\", \"2025-12-16\", \"2025-12-17\"] for flexible date searches. Useful when user wants to check specific dates like weekends."
},
"stay_days_range": {
"anyOf": [
{
"type": "object",
"required": [
"min",
"max"
],
"properties": {
"max": {
"type": "integer",
"maximum": 365,
"description": "Maximum stay duration in days"
},
"min": {
"type": "integer",
"minimum": 1,
"description": "Minimum stay duration in days"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Range of acceptable trip durations for flexible planning (e.g., “5 to 10 days”). Cannot be combined with stay_days or explicit return_date. Example: {min: 5, max: 10}."
},
"return_date_ranges": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"description": "Range end date (YYYY-MM-DD)"
},
"start": {
"type": "string",
"description": "Range start date (YYYY-MM-DD)"
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
],
"description": "List of return date ranges for flexible round-trip searches. Supports multiple return windows. Example: [{start: \"2025-12-22\", end: \"2025-12-25\"}, {start: \"2025-12-29\", end: \"2026-01-02\"}]."
},
"departure_date_ranges": {
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"description": "Range end date (YYYY-MM-DD)"
},
"start": {
"type": "string",
"description": "Range start date (YYYY-MM-DD)"
}
},
"additionalProperties": false
},
"description": "List of departure date ranges for flexible travel discovery. Use when the user mentions periods like “next month” or “spring.” Supports multiple non-contiguous ranges (OR logic). Example: [{start: \"2025-12-10\", end: \"2025-12-15\"}, {start: \"2025-12-20\", end: \"2025-12-25\"}]."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"status": {
"enum": [
"success",
"empty",
"error"
],
"type": "string"
},
"hasMore": {
"type": "boolean"
},
"origins": {},
"priceRange": {
"type": "object",
"properties": {
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"currency": {
"type": "string"
}
},
"additionalProperties": true
},
"searchQuery": {
"type": "object",
"properties": {
"locale": {
"type": "string"
},
"origins": {
"type": "array",
"items": {
"type": "string"
}
},
"currency": {
"type": "string"
},
"max_price": {
"type": "number"
},
"stay_days": {
"type": "number"
},
"trip_type": {
"type": "string"
},
"cabin_class": {
"type": "string"
},
"direct_only": {
"type": "boolean"
},
"return_dates": {
"type": "array",
"items": {
"type": "string"
}
},
"departure_dates": {
"type": "array",
"items": {
"type": "string"
}
},
"stay_days_range": {},
"return_date_ranges": {
"type": "array",
"items": {}
},
"departure_date_ranges": {
"type": "array",
"items": {}
}
},
"additionalProperties": true
},
"destinations": {
"type": "array",
"items": {}
},
"totalFlights": {
"type": "number"
},
"emissionsInfo": {
"type": "object",
"properties": {
"avg_co2": {
"type": "number"
},
"lowest_co2": {
"type": "number"
}
},
"additionalProperties": true
},
"error_message": {
"type": "string"
},
"availableAirlines": {
"type": "array",
"items": {
"type": "string"
}
},
"totalDestinations": {
"type": "number"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Live flight tool with two modes. Provide exactly one of "search" or "price_check". Set the unused one to null or leave it out; for a route search, send "price_check": null. EACH CALL HITS LIVE PRICING — it prices ONE exact date pair, so any loose, open or flexible date query belongs to flight_calendar instead. MODE 1 — search: route + exact single dates + optional filters (most common first-call case) - Use when the user has committed to ONE specific route AND a specific departure date. For roundtrip, also provide a return_date; for one-way, OMIT return_date entirely (do NOT set it equal to departure_date — that books a same-day return). - ROUTE CODES: the city code when the user named a city, the airport code when they named an airport. Untyped, a code that names a multi-airport city is searched as the city and any other code as the airport; LAX, MIA and LAS are both a city code and that city's main airport, so they are read as the city unless you send origin_type / destination_type "airport". - Supports the full shop filter set on the same call: trip_type, max_stops, cabin_class, max_price (whole-trip budget for all passengers), limit, include_carriers / exclude_carriers, single_carrier_only, departure/arrival (and return_*) time ranges, connection_time_min/max_minutes, max_total_duration_minutes, refundable_only, changeable_only, checked_bag_included, via_airports / exclude_via_airports, aircraft_types, origin_alternate_airports / destination_alternate_airports, nearby_airports, same_connection/origin/turnaround_airport_only, origin_type, destination_type. - **Trip-context dates count as exact.** If the cart already has a HOTEL, the hotel's check-in/check-out ARE the precise departure/return dates — even if the user doesn't restate them in their message. Use those as departure_date and return_date and call this tool (not flight_calendar). Forward the trip_id on the call. - Examples: ✓ "Paris to NYC, June 1 to June 10" → { search: { origin: "PAR", destination: "NYC", departure_date: "2027-06-01", return_date: "2027-06-10" } } ✓ "Paris to Rome June 19 to 27, direct only, business class" → { search: { origin: "PAR", destination: "ROM", departure_date: "2026-06-19", return_date: "2026-06-27", max_stops: 0, cabin_class: "business" } } ✓ "JFK → CDG August 5 to 12, Air France only, under $800" → { search: { origin: "JFK", origin_type: "airport", destination: "CDG", destination_type: "airport", departure_date: "2026-08-05", return_date: "2026-08-12", include_carriers: ["AF"], max_price: 800 } } ✓ "Paris to LA June 3, one way" → { search: { origin: "PAR", destination: "LAX", departure_date: "2026-06-03" } } — the user named the city, so untyped LAX is right: it is the Los Angeles CITY and returns other Los Angeles airports too (Ontario, ONT) ✓ "Paris to LAX June 3, one way" → { search: { origin: "PAR", destination: "LAX", destination_type: "airport", departure_date: "2026-06-03" } } — the user named the airport ✓ "Paris to Rome June 19 to 27, at most one stop, refundable, bag included" → { search: { origin: "PAR", destination: "ROM", departure_date: "2026-06-19", return_date: "2026-06-27", max_stops: 1, refundable_only: true, checked_bag_included: true } } ✓ Cart has hotel in Madrid May 8 → May 10; user says "add a flight from Paris, directs only" → { search: { origin: "PAR", destination: "MAD", departure_date: "2026-05-08", return_date: "2026-05-10", max_stops: 0 }, trip_id: "trip_xxx" } - A search takes ONE origin/destination pair, ONE departure_date and at most ONE return_date — no date arrays, no date ranges. MODE 2 — price_check: confirm live fares for a specific flight - Use after the user picks a flight returned by flight_calendar or find_destination. Pass the offer_token. - Schema: { "price_check": { "offer_token": "..." } } WHEN NOT TO USE (route to flight_calendar instead): - "Cheapest flight in June" (loose month window) - "Paris to NYC next week" (loose window — 7 days) - "Best weekend to fly to Rome in
Schema too large to show here (20,880 characters).
{
"name": "flight_search",
"title": "flight_search",
"description": "Live flight tool with two modes. Provide exactly one of \"search\" or \"price_check\". Set the unused one to null or leave it out; for a route search, send \"price_check\": null. EACH CALL HITS LIVE PRICING — it prices ONE exact date pair, so any loose, open or flexible date query belongs to flight_calendar instead.\n\nMODE 1 — search: route + exact single dates + optional filters (most common first-call case)\n- Use when the user has committed to ONE specific route AND a specific departure date. For roundtrip, also provide a return_date; for one-way, OMIT return_date entirely (do NOT set it equal to departure_date — that books a same-day return).\n- ROUTE CODES: the city code when the user named a city, the airport code when they named an airport. Untyped, a code that names a multi-airport city is searched as the city and any other code as the airport; LAX, MIA and LAS are both a city code and that city's main airport, so they are read as the city unless you send origin_type / destination_type \"airport\".\n- Supports the full shop filter set on the same call: trip_type, max_stops, cabin_class, max_price (whole-trip budget for all passengers), limit, include_carriers / exclude_carriers, single_carrier_only, departure/arrival (and return_*) time ranges, connection_time_min/max_minutes, max_total_duration_minutes, refundable_only, changeable_only, checked_bag_included, via_airports / exclude_via_airports, aircraft_types, origin_alternate_airports / destination_alternate_airports, nearby_airports, same_connection/origin/turnaround_airport_only, origin_type, destination_type.\n- **Trip-context dates count as exact.** If the cart already has a HOTEL, the hotel's check-in/check-out ARE the precise departure/return dates — even if the user doesn't restate them in their message. Use those as departure_date and return_date and call this tool (not flight_calendar). Forward the trip_id on the call.\n- Examples:\n ✓ \"Paris to NYC, June 1 to June 10\" → { search: { origin: \"PAR\", destination: \"NYC\", departure_date: \"2027-06-01\", return_date: \"2027-06-10\" } }\n ✓ \"Paris to Rome June 19 to 27, direct only, business class\" → { search: { origin: \"PAR\", destination: \"ROM\", departure_date: \"2026-06-19\", return_date: \"2026-06-27\", max_stops: 0, cabin_class: \"business\" } }\n ✓ \"JFK → CDG August 5 to 12, Air France only, under $800\" → { search: { origin: \"JFK\", origin_type: \"airport\", destination: \"CDG\", destination_type: \"airport\", departure_date: \"2026-08-05\", return_date: \"2026-08-12\", include_carriers: [\"AF\"], max_price: 800 } }\n ✓ \"Paris to LA June 3, one way\" → { search: { origin: \"PAR\", destination: \"LAX\", departure_date: \"2026-06-03\" } } — the user named the city, so untyped LAX is right: it is the Los Angeles CITY and returns other Los Angeles airports too (Ontario, ONT)\n ✓ \"Paris to LAX June 3, one way\" → { search: { origin: \"PAR\", destination: \"LAX\", destination_type: \"airport\", departure_date: \"2026-06-03\" } } — the user named the airport\n ✓ \"Paris to Rome June 19 to 27, at most one stop, refundable, bag included\" → { search: { origin: \"PAR\", destination: \"ROM\", departure_date: \"2026-06-19\", return_date: \"2026-06-27\", max_stops: 1, refundable_only: true, checked_bag_included: true } }\n ✓ Cart has hotel in Madrid May 8 → May 10; user says \"add a flight from Paris, directs only\" → { search: { origin: \"PAR\", destination: \"MAD\", departure_date: \"2026-05-08\", return_date: \"2026-05-10\", max_stops: 0 }, trip_id: \"trip_xxx\" }\n- A search takes ONE origin/destination pair, ONE departure_date and at most ONE return_date — no date arrays, no date ranges.\n\nMODE 2 — price_check: confirm live fares for a specific flight\n- Use after the user picks a flight returned by flight_calendar or find_destination. Pass the offer_token.\n- Schema: { \"price_check\": { \"offer_token\": \"...\" } }\n\nWHEN NOT TO USE (route to flight_calendar instead):\n- \"Cheapest flight in June\" (loose month window)\n- \"Paris to NYC next week\" (loose window — 7 days)\n- \"Best weekend to fly to Rome in ",
"inputSchema": {
"truncated": true,
"chars": 20880
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"hint": {
"type": "string"
},
"reason": {
"type": "string",
"const": "no_matches"
},
"status": {
"enum": [
"success",
"empty",
"error"
],
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"required": [
"message"
],
"properties": {
"path": {
"type": "array",
"items": {
"type": "string"
}
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}
},
"flights": {
"type": "array",
"items": {}
},
"hasMore": {
"type": "boolean"
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"field": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}
},
"error_code": {
"type": "string"
},
"priceRange": {
"type": "object",
"properties": {
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"currency": {
"type": "string"
}
},
"additionalProperties": true
},
"instruction": {
"type": "string"
},
"searchQuery": {
"type": "object",
"properties": {
"locale": {
"type": "string"
},
"origins": {
"type": "array",
"items": {
"type": "string"
}
},
"currency": {
"type": "string"
},
"max_price": {
"type": "number"
},
"stay_days": {
"type": "number"
},
"trip_type": {
"type": "string"
},
"cabin_class": {
"type": "string"
},
"direct_only": {
"type": "boolean"
},
"return_dates": {
"type": "array",
"items": {
"type": "string"
}
},
"departure_dates": {
"type": "array",
"items": {
"type": "string"
}
},
"stay_days_range": {},
"return_date_ranges": {
"type": "array",
"items": {}
},
"departure_date_ranges": {
"type": "array",
"items": {}
}
},
"additionalProperties": true
},
"quoted_offer": {},
"totalFlights": {
"type": "number"
},
"error_message": {
"type": "string"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search live hotel inventory and rates worldwide. CONTINUATION: - To load more from a prior result, send { next_handle } by itself: it continues the same search. Do not repeat destination, dates, occupancy, currency, filters, user_intent or trip_id. FIRST SEARCH REQUIRED: - destination: object — two distinct modes. Mode A (rate lookup): { hotel_name (+ optional country_code, city_name) } or { hotel_ids }. Mode B (hotel search): { query }, { city_name + country_code }, or { latitude + longitude (+ radius_km) }. - checkin, checkout: the user's stay dates in YYYY-MM-DD. Check-in must be today or later at the hotel; send timezone (the user's IANA time zone) so a stay that starts tonight is accepted. Check-out must be after check-in. - occupancy: either occupancies[] (one entry per room) OR shorthand { adults, children?, rooms? } TWO MODES — pick deliberately: MODE A (rate lookup — the user named a specific hotel): - { hotel_name }: free-text hotel name ("Hotel Calimala", "The St. Regis Rome", "Hôtel Costes"). Server fuzzy-matches against a 1.74M-hotel catalog. ALWAYS pair with country_code AND city_name when known — lookup precision drops sharply on common names without scope. Returns 422 HOTEL_NAME_LOW_CONFIDENCE if no candidate scores ≥ 0.7; see "ERROR HANDLING" below. - { hotel_ids }: re-shop a known set (from a prior search result). In Mode A: property filters (min_rating, min_star_rating, max_star_rating, min_reviews, hotel_type_ids, chain_ids, facility_ids) do not apply: the named hotel is priced as if they were not sent (the user named the property). The same holds when a query is read as one hotel. filters.min_budget_per_night and filters.max_budget_per_night apply. The response includes nearby_alternatives — up to 40 hotels within ~3km of the matched property in the same response shape so the user can compare. MODE B (hotel search — the user is exploring a destination): - { query }: a natural-language destination (city, POI, island or region). The platform parses it once into city + country or coordinates and applies shared location normalization; raw query text is never sent to a supplier. - { city_name + country_code }: when the user named a city, even if ambiguous. Best when the destination has a primary city ("Mahón, ES" for Menorca; "Florence, IT" for Tuscany). Spell the city as an English-language booking site would — "Munich"/"Florence"/"Rome"/"Vienna", NOT "München"/"Firenze"/"Roma"/"Wien" — but keep the local form where that IS the international one ("Regensburg", "Nürnberg", "Lyon"), and never an archaic exonym ("Leghorn", "Ratisbon"). When the user wrote the city in another language, translate it for this field only; keep their spelling when you talk back to them. - { latitude + longitude + radius_km }: when exact coordinates and the desired area are already known; radius_km is the half-side of the square searched, up to 50. FIRST SEARCH OPTIONAL: - currency, guest_nationality - filters: { min_rating, min_star_rating, max_star_rating, min_reviews, hotel_type_ids, chain_ids, facility_ids, max_results } — Mode B only - filters.facility_ids / filters.hotel_type_ids take NAMES ("pool", "spa", "parking"; "hostel", "ryokan", "chalet") — the accepted names are listed on each parameter. For a facility the user requires, send that one name. A name outside the list is rejected with the accepted names. Every property filter is applied as sent. - filters.max_budget_per_night: per-night per-room price cap (request currency) for "under $150/night" asks — works in BOTH modes. Hotels whose CHEAPEST rate fits are kept with ALL their rates, on every page. - filters.min_budget_per_night: per-night per-room price floor (request currency), alone or with max_budget_per_night as a band — works in BOTH modes. "not under $80/night" → min 80; "around $100" → a band such as min 80 + max 120; "70 to 150 GBP" → min 70 + max 150 (min must not exceed max). A hotel is kept when at least one of its rates is inside the band, with ALL its r
| Parameter | Type | Description |
|---|---|---|
| rooms | any | Shorthand: number of rooms (the platform auto-distributes adults + children). Use when the user named a room count but not the per-room split. |
| adults | any | Shorthand: total adults across all rooms. Use ONLY when there is no ambiguity (1 or 2 adults = single room). For 3+ adults, or odd splits, ask the user how they want to split rooms and pass occupancies[] instead — e.g. 4 adults → [{adults:2},{adults:2}] (double + double) vs a single 4-sleeper is a m… |
| checkin | any | Check-in date (YYYY-MM-DD). |
| filters | any | Optional filter overrides applied on top of the tenant default filter set. Every property filter of a destination search is applied as sent; they do not apply to a search that names a hotel. |
| trip_id | any | Existing trip_id to associate this search with. Used only by the Jinko cart widget. The platform accepts the field on every surface for schema consistency; a surface without the widget does not use it. Forward whenever the user is mid-trip-build (you have seen a trip_id in a recent trip(...) tool re… |
| checkout | any | Check-out date (YYYY-MM-DD). |
| children | any | Shorthand: ages of all children across all rooms. If children are present, prefer occupancies[] so the caller controls which room each child goes in (ages affect pricing and some providers reject invalid age/room combinations). |
| currency | any | ISO 4217 currency code (e.g. "EUR", "USD", "GBP", "JPY"). ALWAYS set this — omitting it falls back to USD which is rarely what users actually want. Infer from the strongest signal available: (1) the user's explicit ask ("show me prices in pounds"), (2) the conversation language/locale (French → EUR,… |
| timezone |
{
"name": "hotel_search",
"title": "hotel_search",
"description": "Search live hotel inventory and rates worldwide.\n\nCONTINUATION:\n- To load more from a prior result, send { next_handle } by itself: it continues the same search. Do not repeat destination, dates, occupancy, currency, filters, user_intent or trip_id.\n\nFIRST SEARCH REQUIRED:\n- destination: object — two distinct modes. Mode A (rate lookup): { hotel_name (+ optional country_code, city_name) } or { hotel_ids }. Mode B (hotel search): { query }, { city_name + country_code }, or { latitude + longitude (+ radius_km) }.\n- checkin, checkout: the user's stay dates in YYYY-MM-DD. Check-in must be today or later at the hotel; send timezone (the user's IANA time zone) so a stay that starts tonight is accepted. Check-out must be after check-in.\n- occupancy: either occupancies[] (one entry per room) OR shorthand { adults, children?, rooms? }\n\nTWO MODES — pick deliberately:\n\nMODE A (rate lookup — the user named a specific hotel):\n- { hotel_name }: free-text hotel name (\"Hotel Calimala\", \"The St. Regis Rome\", \"Hôtel Costes\"). Server fuzzy-matches against a 1.74M-hotel catalog. ALWAYS pair with country_code AND city_name when known — lookup precision drops sharply on common names without scope. Returns 422 HOTEL_NAME_LOW_CONFIDENCE if no candidate scores ≥ 0.7; see \"ERROR HANDLING\" below.\n- { hotel_ids }: re-shop a known set (from a prior search result).\nIn Mode A: property filters (min_rating, min_star_rating, max_star_rating, min_reviews, hotel_type_ids, chain_ids, facility_ids) do not apply: the named hotel is priced as if they were not sent (the user named the property). The same holds when a query is read as one hotel. filters.min_budget_per_night and filters.max_budget_per_night apply. The response includes nearby_alternatives — up to 40 hotels within ~3km of the matched property in the same response shape so the user can compare.\n\nMODE B (hotel search — the user is exploring a destination):\n- { query }: a natural-language destination (city, POI, island or region). The platform parses it once into city + country or coordinates and applies shared location normalization; raw query text is never sent to a supplier.\n- { city_name + country_code }: when the user named a city, even if ambiguous. Best when the destination has a primary city (\"Mahón, ES\" for Menorca; \"Florence, IT\" for Tuscany). Spell the city as an English-language booking site would — \"Munich\"/\"Florence\"/\"Rome\"/\"Vienna\", NOT \"München\"/\"Firenze\"/\"Roma\"/\"Wien\" — but keep the local form where that IS the international one (\"Regensburg\", \"Nürnberg\", \"Lyon\"), and never an archaic exonym (\"Leghorn\", \"Ratisbon\"). When the user wrote the city in another language, translate it for this field only; keep their spelling when you talk back to them.\n- { latitude + longitude + radius_km }: when exact coordinates and the desired area are already known; radius_km is the half-side of the square searched, up to 50.\n\nFIRST SEARCH OPTIONAL:\n- currency, guest_nationality\n- filters: { min_rating, min_star_rating, max_star_rating, min_reviews, hotel_type_ids, chain_ids, facility_ids, max_results } — Mode B only\n- filters.facility_ids / filters.hotel_type_ids take NAMES (\"pool\", \"spa\", \"parking\"; \"hostel\", \"ryokan\", \"chalet\") — the accepted names are listed on each parameter. For a facility the user requires, send that one name. A name outside the list is rejected with the accepted names. Every property filter is applied as sent.\n- filters.max_budget_per_night: per-night per-room price cap (request currency) for \"under $150/night\" asks — works in BOTH modes. Hotels whose CHEAPEST rate fits are kept with ALL their rates, on every page.\n- filters.min_budget_per_night: per-night per-room price floor (request currency), alone or with max_budget_per_night as a band — works in BOTH modes. \"not under $80/night\" → min 80; \"around $100\" → a band such as min 80 + max 120; \"70 to 150 GBP\" → min 70 + max 150 (min must not exceed max). A hotel is kept when at least one of its rates is inside the band, with ALL its r",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"rooms": {
"anyOf": [
{
"type": "integer",
"maximum": 8,
"minimum": 1
},
{
"type": "null"
}
],
"description": "Shorthand: number of rooms (the platform auto-distributes adults + children). Use when the user named a room count but not the per-room split."
},
"adults": {
"anyOf": [
{
"type": "integer",
"maximum": 16,
"minimum": 1
},
{
"type": "null"
}
],
"description": "Shorthand: total adults across all rooms. Use ONLY when there is no ambiguity (1 or 2 adults = single room). For 3+ adults, or odd splits, ask the user how they want to split rooms and pass occupancies[] instead — e.g. 4 adults → [{adults:2},{adults:2}] (double + double) vs a single 4-sleeper is a meaningfully different search. If the user does not clarify, the server defaults to 2-adults-per-room (remainder in the last room), so every 4-adult request becomes two double rooms. Do NOT combine with occupancies[] — use one or the other."
},
"checkin": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "Check-in date (YYYY-MM-DD)."
},
"filters": {
"anyOf": [
{
"type": "object",
"properties": {
"offset": {
"type": "integer",
"minimum": 0,
"description": "Skip this many hotels (default 0). Rejected once a search returned search_handle / next_handle: page with next_handle instead."
},
"chain_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Filter by hotel chain. Each entry is a brand slug (e.g. \"accor\", \"hilton\") OR a numeric chain id. Slugs are expanded to all sub-brands (e.g. \"accor\" → Accor, ibis, Novotel, Mercure, Pullman, Sofitel, …). Every entry is applied as sent: one that matches no chain is rejected with a validation error."
},
"min_rating": {
"anyOf": [
{
"type": "number",
"maximum": 10,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Minimum guest review rating (0-10 scale). Omitted or 0: no rating floor, unrated hotels included."
},
"max_results": {
"type": "integer",
"maximum": 200,
"minimum": 1,
"description": "Requested page size (default 50); next_handle returns the next page of the same search. A hotel_name or hotel_ids search returns every named hotel that has rates."
},
"min_reviews": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"description": "Minimum number of guest reviews."
},
"facility_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Filter by hotel facility, applied at platform search time, not post-filtered. Each entry is one of these names (or a numeric facility id): pool, outdoor_pool, indoor_pool, rooftop_pool, infinity_pool, heated_pool, kids_pool, spa, sauna, hot_tub, hammam, gym, parking, free_parking, valet_parking, ev_charging, wifi, free_wifi, restaurant, bar, room_service, airport_shuttle, pets_allowed, family_rooms, air_conditioning, wheelchair_accessible, elevator, 24h_front_desk, beachfront, private_beach, adults_only, kids_club, water_park, golf_course, tennis_court, casino, terrace, garden, non_smoking_rooms, laundry, concierge, business_center, meeting_rooms, shared_kitchen, luggage_storage. For a facility the user requires, send that ONE name: with several entries the standard search keeps hotels having at least one of them, not all. These are hotel-level facilities — breakfast is a rate board type, and sea view, balcony or a private kitchen are room features, none of which can be filtered here. A name outside the list is rejected with the accepted names."
},
"hotel_type_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Filter by property type. Each entry is one of these names (or a numeric type id): hotel, apartment, aparthotel, resort, hostel, guesthouse, bed_and_breakfast, inn, ryokan, riad, villa, chalet, cottage, cabin, lodge, holiday_home, country_house, farm_stay, homestay, condo, residence, motel, campsite, luxury_tent, holiday_park, houseboat. Several entries keep properties of ANY of those types. \"boutique\", \"luxury\" or \"romantic\" are styles, not types, and cannot be filtered here. A name outside the list is rejected with the accepted names."
},
"max_star_rating": {
"anyOf": [
{
"type": "integer",
"maximum": 5,
"minimum": 1
},
{
"type": "null"
}
],
"description": "Maximum star rating (1-5). Pair with min_star_rating to bound a range."
},
"min_star_rating": {
"anyOf": [
{
"type": "integer",
"maximum": 5,
"minimum": 1
},
{
"type": "null"
}
],
"description": "Minimum star rating (1-5). Pair with max_star_rating to bound a range."
},
"max_budget_per_night": {
"anyOf": [
{
"type": "number",
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "Keep only hotels whose CHEAPEST per-night price (per room, in the request currency) fits this budget; qualifying hotels keep all their rates. With min_budget_per_night, a hotel is kept when at least one of its per-night prices is inside the band. Also applies in Mode A (rate lookup)."
},
"min_budget_per_night": {
"anyOf": [
{
"type": "number",
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "Per-night price floor (per room, in the request currency), the lower bound of a budget band: \"not under $80/night\" is min 80; \"around $100\" is a band such as min 80 + max 120; \"70 to 150 GBP\" is min 70 + max 150. A hotel is kept when at least one of its per-night prices is inside the band, and it keeps ALL its rates, so rates outside the band can be returned. Must not exceed max_budget_per_night. Also applies in Mode A (rate lookup)."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Optional filter overrides applied on top of the tenant default filter set. Every property filter of a destination search is applied as sent; they do not apply to a search that names a hotel."
},
"trip_id": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"description": "Existing trip_id to associate this search with. Used only by the Jinko cart widget. The platform accepts the field on every surface for schema consistency; a surface without the widget does not use it. Forward whenever the user is mid-trip-build (you have seen a trip_id in a recent trip(...) tool result and the user has NOT pivoted to a different trip context, e.g. a new origin OR destination city or unrelated request). Drop on pivot. Echoed back in the result so the cart widget can append the next selection to the same trip."
},
"checkout": {
"anyOf": [
{
"$ref": "#/properties/checkin/anyOf/0"
},
{
"type": "null"
}
],
"description": "Check-out date (YYYY-MM-DD)."
},
"children": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer",
"maximum": 17,
"minimum": 0
},
"maxItems": 8
},
{
"type": "null"
}
],
"description": "Shorthand: ages of all children across all rooms. If children are present, prefer occupancies[] so the caller controls which room each child goes in (ages affect pricing and some providers reject invalid age/room combinations)."
},
"currency": {
"anyOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 3
},
{
"type": "null"
}
],
"description": "ISO 4217 currency code (e.g. \"EUR\", \"USD\", \"GBP\", \"JPY\"). ALWAYS set this — omitting it falls back to USD which is rarely what users actually want. Infer from the strongest signal available: (1) the user's explicit ask (\"show me prices in pounds\"), (2) the conversation language/locale (French → EUR, Japanese → JPY, German → EUR, Spanish/Catalan/Italian/Portuguese → EUR, English UK → GBP, English US → USD), (3) the destination country (Italy/France/Germany → EUR, UK → GBP, Japan → JPY, US → USD). When in doubt between two plausible currencies, prefer the one matching the user's likely home country."
},
"timezone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The user's IANA time zone (e.g. \"America/New_York\"), when known. Check-in may be today there, so a stay that starts tonight is accepted."
},
"destination": {
"anyOf": [
{
"type": "object",
"properties": {
"query": {
"anyOf": [
{
"type": "string",
"maxLength": 200,
"minLength": 1
},
{
"type": "null"
}
],
"description": "Free-text destination (for example \"Paris\", \"Times Square\", \"Menorca\" or \"Tuscany\"). The platform parses it once into a city + country or coordinates, then applies the same shared location normalization as structured inputs; the raw query is not forwarded to a supplier. Max 200 chars."
},
"latitude": {
"anyOf": [
{
"type": "number",
"maximum": 90,
"minimum": -90
},
{
"type": "null"
}
],
"description": "Latitude for geo-radius search. Pair with longitude."
},
"city_name": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"description": "City name (e.g. \"Paris\"). Spell it the way an English-language booking site would: \"Munich\" not \"München\", \"Florence\" not \"Firenze\", \"Rome\" not \"Roma\", \"Vienna\" not \"Wien\". Keep the local form where that IS the international one (\"Regensburg\", \"Livorno\", \"Nürnberg\", \"Lyon\"), and never an archaic exonym (\"Leghorn\", \"Ratisbon\"). The catalog stores one group per spelling and does not fold translations, so the wrong form usually resolves to a near-empty group instead of failing — see destination_resolution.catalog_hotel_count. Case, accents and hyphens ARE folded (\"Mahon\" = \"Mahón\", \"Saint Malo\" = \"Saint-Malo\"), so those need no correction. In Mode B: pair with country_code as the destination. In Mode A (with hotel_name): pair with hotel_name to narrow the fuzzy-lookup scope."
},
"hotel_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
},
{
"type": "null"
}
],
"description": "Mode A — re-shop a known set of hotel IDs (skips destination resolution)."
},
"longitude": {
"anyOf": [
{
"type": "number",
"maximum": 180,
"minimum": -180
},
{
"type": "null"
}
],
"description": "Longitude for geo-radius search. Pair with latitude."
},
"radius_km": {
"anyOf": [
{
"type": "number",
"maximum": 50,
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "Half the side, in km, of the square searched around latitude/longitude (default 20 for explicit coordinates, max 50). The hotel source searches a square, not a circle, and a value under 1 is searched at 1 km, so a hotel near a corner can be up to 1.414 × max(radius_km, 1) km from the centre. Requires latitude+longitude."
},
"hotel_name": {
"anyOf": [
{
"type": "string",
"maxLength": 120,
"minLength": 2
},
{
"type": "null"
}
],
"description": "Mode A — free-text hotel name when the user named a specific property they want to book (e.g. \"Hotel Calimala\", \"The St. Regis Rome\", \"Hôtel Costes\"). Server runs a fuzzy trigram match over the 1.74M-hotel catalog; uses the top hit when its confidence is ≥ 0.7 (auto-pick safe). If no candidate clears that threshold, returns HTTP 422 with error.code = HOTEL_NAME_LOW_CONFIDENCE + top_candidates + suggested_retry — the agent should confirm a candidate with the user or fall back to the suggested city destination. ALWAYS pair with country_code and city_name when known; lookup precision drops sharply on common names without scope."
},
"country_code": {
"anyOf": [
{
"type": "string",
"maxLength": 2,
"minLength": 2
},
{
"type": "null"
}
],
"description": "ISO 3166-1 alpha-2 country code (lowercase preferred, e.g. \"fr\"). Must be paired with city_name OR hotel_name. In Mode B it disambiguates the city; in Mode A it narrows the fuzzy lookup."
}
},
"description": "Destination — provide exactly one shape; unused fields may be null or left out. Two distinct modes:\n\nMODE A (rate lookup — you know which hotel):\n • { hotel_ids } to re-shop a known set.\n • { hotel_name, country_code?, city_name? } when the user named a specific property. Server resolves via fuzzy lookup; returns 422 HOTEL_NAME_LOW_CONFIDENCE if no candidate scores ≥ 0.7.\n\nMODE B (hotel search — you're exploring):\n • { query } for a natural-language destination. The platform parses it once into city + country or coordinates and never forwards the raw query to a supplier.\n • { city_name + country_code } for ambiguous city names or when the user named a primary city (\"Mahón, ES\" for Menorca).\n • { latitude + longitude + radius_km } when exact coordinates and the half-side of the square area are already known.\nIn Mode A, property filters (min_rating / star / min_reviews / facility / chain / hotel_type) do not apply — the user already named the property, which is priced as if they were not sent; the same holds when a query is read as one hotel. filters.min_budget_per_night and filters.max_budget_per_night apply with hotel_ids or hotel_name.",
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Destination — provide exactly one shape; unused fields may be null or left out. Two distinct modes:\n\nMODE A (rate lookup — you know which hotel):\n • { hotel_ids } to re-shop a known set.\n • { hotel_name, country_code?, city_name? } when the user named a specific property. Server resolves via fuzzy lookup; returns 422 HOTEL_NAME_LOW_CONFIDENCE if no candidate scores ≥ 0.7.\n\nMODE B (hotel search — you're exploring):\n • { query } for a natural-language destination. The platform parses it once into city + country or coordinates and never forwards the raw query to a supplier.\n • { city_name + country_code } for ambiguous city names or when the user named a primary city (\"Mahón, ES\" for Menorca).\n • { latitude + longitude + radius_km } when exact coordinates and the half-side of the square area are already known.\nIn Mode A, property filters (min_rating / star / min_reviews / facility / chain / hotel_type) do not apply — the user already named the property, which is priced as if they were not sent; the same holds when a query is read as one hotel. filters.min_budget_per_night and filters.max_budget_per_night apply with hotel_ids or hotel_name."
},
"next_handle": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"description": "Opaque continuation handle returned by a prior hotel_search. Send this field by itself, or with every other field null. A first request needs destination, checkin and checkout."
},
"occupancies": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"adults"
],
"properties": {
"adults": {
"type": "integer",
"maximum": 8,
"minimum": 1,
"description": "Adult travelers in this room (12+)."
},
"children_ages": {
"type": "array",
"items": {
"type": "integer",
"maximum": 17,
"minimum": 0
},
"maxItems": 6,
"description": "Ages of children in this room (0-17). Required for child pricing."
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1
},
{
"type": "null"
}
],
"description": "One entry per room (structured). PREFERRED whenever the party is larger than 2 adults or has children — it removes ambiguity about how guests are split across rooms. Example: [{ \"adults\": 2 }, { \"adults\": 1, \"children_ages\": [5] }]. Do NOT combine with the shorthand fields (adults/children/rooms) — use one or the other."
},
"user_intent": {
"type": "string",
"description": "A concise summary of what the user is trying to accomplish, derived from their message or the\nconversation context that triggered this tool call.\nThis is used to understand the user's intent and context to improve the overall user experience.\n\n- For short, self-contained prompts (e.g. \"I want new shoes\"), copy the user message as-is.\n- For longer conversations or detailed requests, summarize the core goal and any relevant\n context in 1-2 sentences. Focus on intent, constraints, and preferences - not the full\n dialogue.\n\nBefore sending, strip all personally identifiable information (PII), including but not\nlimited to:\n - Names (first, last, usernames, handles)\n - Email addresses\n - Phone numbers\n - Physical addresses (street, city, zip/postal code, country when tied to an individual)\n - Dates of birth or exact ages\n - Government-issued ID numbers (SSN, passport, driver's license, etc.)\n - Payment or financial information (card numbers, bank accounts, etc.)\n - IP addresses or device identifiers\n - Account credentials (passwords, tokens, API keys)\n - Health or biometric data\n - Any other information that could identify a specific individual\n\nReplace stripped values with a generic placeholder (e.g. \"[name]\", \"[email]\", \"[address]\").\n\nExamples:\n User: \"I want red running shoes under $100\"\n -> \"I want red running shoes under $100\"\n\n User: \"Hi, I'm John Smith, john@example.com, and I'm looking for flights from Paris to\n Tokyo for 2 adults departing around mid-June, budget around EUR2000 total\"\n -> \"Looking for flights from Paris to Tokyo for 2 adults, mid-June, budget ~EUR2000\"\n\n User: \"I need help resetting my password for account ID acct_12345\"\n -> \"I need help resetting my password for account ID [account_id]\""
},
"guest_nationality": {
"anyOf": [
{
"type": "string",
"maxLength": 2,
"minLength": 2
},
{
"type": "null"
}
],
"description": "Guest nationality (ISO 3166-1 alpha-2, uppercase, e.g. \"FR\"). Affects rate availability + tax handling at search time. Separate from traveler nationality used for booking documents."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"hint": {
"type": "string"
},
"error": {
"type": "string"
},
"hotels": {
"type": "array",
"items": {}
},
"status": {
"enum": [
"success",
"empty",
"error"
],
"type": "string"
},
"hasMore": {
"type": "boolean"
},
"trip_id": {
"type": "string"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"nextHandle": {
"type": [
"string",
"null"
]
},
"searchQuery": {},
"totalHotels": {
"type": "number",
"description": "Number of primary hotels in THIS response page, excluding nearby alternatives."
},
"searchHandle": {
"type": "string"
},
"error_message": {
"type": "string"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Rich metadata for one hotel. Pass the hotel_ref from hotel_search when available, exactly as returned; hotel_id remains a legacy fallback. **Cost: 1 credit per call.**
| Parameter | Type | Description |
|---|---|---|
| checkin | string | Check-in date (YYYY-MM-DD). Accepted for future cache-key alignment; currently unused by the platform. |
| checkout | string | Check-out date (YYYY-MM-DD). Accepted for future cache-key alignment; currently unused by the platform. |
| hotel_id | any | Legacy hotel_id from hotel_search. Use hotel_ref when available: hotel_ref identifies the hotel unambiguously, hotel_id may not. |
| hotel_ref | any | Provide exactly one of hotel_ref or hotel_id; the other may be null or left out. hotel_ref from hotel_search (preferred): an opaque reference, passed back exactly as returned. |
| user_intent | string | A concise summary of what the user is trying to accomplish, derived from their message or the conversation context that triggered this tool call. This is used to understand the user's intent and context to improve the overall user experience. - For short, self-contained prompts (e.g. "I want new sh… |
{
"name": "hotel_details",
"title": "hotel_details",
"description": "Rich metadata for one hotel. Pass the hotel_ref from hotel_search when available, exactly as returned; hotel_id remains a legacy fallback.\n\n**Cost: 1 credit per call.**",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"checkin": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Check-in date (YYYY-MM-DD). Accepted for future cache-key alignment; currently unused by the platform."
},
"checkout": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Check-out date (YYYY-MM-DD). Accepted for future cache-key alignment; currently unused by the platform."
},
"hotel_id": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"description": "Legacy hotel_id from hotel_search. Use hotel_ref when available: hotel_ref identifies the hotel unambiguously, hotel_id may not."
},
"hotel_ref": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"description": "Provide exactly one of hotel_ref or hotel_id; the other may be null or left out. hotel_ref from hotel_search (preferred): an opaque reference, passed back exactly as returned."
},
"user_intent": {
"type": "string",
"description": "A concise summary of what the user is trying to accomplish, derived from their message or the\nconversation context that triggered this tool call.\nThis is used to understand the user's intent and context to improve the overall user experience.\n\n- For short, self-contained prompts (e.g. \"I want new shoes\"), copy the user message as-is.\n- For longer conversations or detailed requests, summarize the core goal and any relevant\n context in 1-2 sentences. Focus on intent, constraints, and preferences - not the full\n dialogue.\n\nBefore sending, strip all personally identifiable information (PII), including but not\nlimited to:\n - Names (first, last, usernames, handles)\n - Email addresses\n - Phone numbers\n - Physical addresses (street, city, zip/postal code, country when tied to an individual)\n - Dates of birth or exact ages\n - Government-issued ID numbers (SSN, passport, driver's license, etc.)\n - Payment or financial information (card numbers, bank accounts, etc.)\n - IP addresses or device identifiers\n - Account credentials (passwords, tokens, API keys)\n - Health or biometric data\n - Any other information that could identify a specific individual\n\nReplace stripped values with a generic placeholder (e.g. \"[name]\", \"[email]\", \"[address]\").\n\nExamples:\n User: \"I want red running shoes under $100\"\n -> \"I want red running shoes under $100\"\n\n User: \"Hi, I'm John Smith, john@example.com, and I'm looking for flights from Paris to\n Tokyo for 2 adults departing around mid-June, budget around EUR2000 total\"\n -> \"Looking for flights from Paris to Tokyo for 2 adults, mid-June, budget ~EUR2000\"\n\n User: \"I need help resetting my password for account ID acct_12345\"\n -> \"I need help resetting my password for account ID [account_id]\""
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"error": {
"type": "string"
},
"status": {
"enum": [
"success",
"empty",
"error"
],
"type": "string"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Unified tool for managing a trip (shopping cart). Supports flights and hotels in the same cart. Actions are determined by which objects you provide. SCHEMA: { trip_id?: string, // Existing trip ID (omit to create new) offer_id?: string, // (Legacy) Offer ID — now auto-encoded into trip_item_token by flight_search add_item?: { ... }, // Add a flight or hotel to the trip remove_item?: { ... }, // Remove an item from the trip upsert_travelers?: { ... }, // Set travelers (replaces all) idempotency_key?: string // Prevent duplicate processing } ACTIONS: 1. ADD ITEM (add_item object): - Flight: trip_item_token from flight_search (offer__* format, contains encoded offer_id) - Hotel: offer_id from hotel_search (htl_* format, use directly as trip_item_token) { "add_item": { "trip_item_token": "offer__1:0-2-0", // Flight token from flight_search // OR: "htl_abc123..." // Hotel token from hotel_search "traveler_ids": ["traveler_1", "traveler_2"] // Optional: associate travelers } } MULTI-ROOM HOTEL (rooms array — one booking, one reference): When the user wants MULTIPLE ROOMS for ONE hotel stay (same hotel, same check-in/check-out), make ONE add_item call with the rooms array — do NOT add the same hotel twice as separate items when the user wants one reservation. Each entry carries that room's htl_* rate token from hotel_search (e.g. one rate per requested occupancy). 2–8 rooms; for a single room use trip_item_token instead. rooms and trip_item_token are mutually exclusive. Hotel tokens only; not every hotel rate can be booked this way, and one that cannot is refused when it is added. { "add_item": { "rooms": [ { "trip_item_token": "htl_rate_room1", "traveler_ids": ["traveler_1", "traveler_2"] }, { "trip_item_token": "htl_rate_room2", "traveler_ids": ["traveler_3"] } ] } } 2. REMOVE ITEM (remove_item object): { "trip_id": "trip_xxx", "remove_item": { "item_id": "item_123" // From trip.trip_items[].id } } 3. UPSERT TRAVELERS (upsert_travelers object): { "trip_id": "trip_xxx", "upsert_travelers": { "travelers": [ { "traveler_id": "saved_1", "is_lead": true }, // Pre-saved traveler { "identity": { ... } } // Or inline details ], "contact": { // Optional trip contact "email": "john@example.com", "phone": "+15551234567" } } } TRAVELER ENTRY OPTIONS: • { traveler_id: "id" } - Use pre-saved traveler • { traveler_id: "id", is_lead: true } - Pre-saved as lead • { identity: {...}, passport?: {...} } - Inline details PHONE NUMBERS: • International format with a leading + and the country code, e.g. "+12025550147". Spaces, hyphens, dots and parentheses are tolerated and removed. • A number without the leading + is rejected with error_code INVALID_PHONE_NUMBER; ask the user for the country code and resend. WORKFLOW: 1. flight_calendar → Returns flights with offer_token 2. flight_search → Returns fare options with trip_item_token (offer_id encoded inside) 3. trip(add_item={...}) → Adds flight, returns trip + saved travelers 4. trip(upsert_travelers={...}) → Sets travelers on trip 5. checkout_trip → Completes booking RETURNS: • trip: Complete trip object with items, travelers, totals • saved_travelers: Available pre-saved travelers for selection • recommended_products: Upsell opportunities (hotels, cars, insurance) • actions_performed: Which actions were executed • trip_item_id: ID of newly added item (if add_item performed) • hint: Action guidance for the LLM. May start with "Cross-sell: ask the user..." — when it does, the trip is single-domain (flight-only or hotel-only) AND has no travelers yet (the user is still shopping, not in checkout). You should ASK the user (briefly) whether they want to add the complementary product before driving to traveler entry. Forward the trip_id from the response on the follow-up
| Parameter | Type | Description |
|---|---|---|
| trip_id | ["string","null"] | ID of an existing trip. If not provided, a new trip will be created. |
| version | any | Deprecated legacy widget field. Accepted and ignored for compatibility; it does not provide optimistic concurrency. |
| add_item | any | Add a flight or hotel to the trip. Use trip_item_token from flight_search (offer__* format) or offer_id from hotel_search (htl_* format). For MULTIPLE ROOMS of the same hotel stay, make ONE add_item call with the rooms array (2–8 htl_* tokens, same hotel + dates) — do NOT add the same hotel as separ… |
| offer_id | ["string","null"] | Deprecated: offer_id is now encoded into trip_item_token by flight_search. Only needed for legacy tokens without encoded offer_id. |
| remove_item | any | Remove an item from the trip by its ID. |
| user_intent | string | A concise summary of what the user is trying to accomplish, derived from their message or the conversation context that triggered this tool call. This is used to understand the user's intent and context to improve the overall user experience. - For short, self-contained prompts (e.g. "I want new sh… |
| payment_type | string | Payment flow type: "checkout" for Stripe Checkout (default), "intent" for Payment Intent. |
| schedule_quote | boolean | Schedule a fresh quote on the current cart state. Triggers async re-pricing on the BFF; poll trip(get) until trip.quote_status is "completed", "partial", or "failed". Only "completed" covers the whole cart. trip.quoted_total is the quoted sell total; trip.totals includes unquoted search prices, and … |
| idempotency_key | ["string","null"] |
{
"name": "trip",
"title": "trip",
"description": "Unified tool for managing a trip (shopping cart). Supports flights and hotels in the same cart. Actions are determined by which objects you provide.\n\nSCHEMA:\n{\n trip_id?: string, // Existing trip ID (omit to create new)\n offer_id?: string, // (Legacy) Offer ID — now auto-encoded into trip_item_token by flight_search\n add_item?: { ... }, // Add a flight or hotel to the trip\n remove_item?: { ... }, // Remove an item from the trip\n upsert_travelers?: { ... }, // Set travelers (replaces all)\n idempotency_key?: string // Prevent duplicate processing\n}\n\nACTIONS:\n\n1. ADD ITEM (add_item object):\n - Flight: trip_item_token from flight_search (offer__* format, contains encoded offer_id)\n - Hotel: offer_id from hotel_search (htl_* format, use directly as trip_item_token)\n{\n \"add_item\": {\n \"trip_item_token\": \"offer__1:0-2-0\", // Flight token from flight_search\n // OR: \"htl_abc123...\" // Hotel token from hotel_search\n \"traveler_ids\": [\"traveler_1\", \"traveler_2\"] // Optional: associate travelers\n }\n}\n\nMULTI-ROOM HOTEL (rooms array — one booking, one reference):\nWhen the user wants MULTIPLE ROOMS for ONE hotel stay (same hotel, same check-in/check-out),\nmake ONE add_item call with the rooms array — do NOT add the same hotel twice as separate\nitems when the user wants one reservation. Each entry carries that room's htl_* rate token\nfrom hotel_search (e.g. one rate per requested occupancy). 2–8 rooms; for a single room use\ntrip_item_token instead. rooms and trip_item_token are mutually exclusive. Hotel tokens only;\nnot every hotel rate can be booked this way, and one that cannot is refused when it is added.\n{\n \"add_item\": {\n \"rooms\": [\n { \"trip_item_token\": \"htl_rate_room1\", \"traveler_ids\": [\"traveler_1\", \"traveler_2\"] },\n { \"trip_item_token\": \"htl_rate_room2\", \"traveler_ids\": [\"traveler_3\"] }\n ]\n }\n}\n\n2. REMOVE ITEM (remove_item object):\n{\n \"trip_id\": \"trip_xxx\",\n \"remove_item\": {\n \"item_id\": \"item_123\" // From trip.trip_items[].id\n }\n}\n\n3. UPSERT TRAVELERS (upsert_travelers object):\n{\n \"trip_id\": \"trip_xxx\",\n \"upsert_travelers\": {\n \"travelers\": [\n { \"traveler_id\": \"saved_1\", \"is_lead\": true }, // Pre-saved traveler\n { \"identity\": { ... } } // Or inline details\n ],\n \"contact\": { // Optional trip contact\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\"\n }\n }\n}\n\nTRAVELER ENTRY OPTIONS:\n• { traveler_id: \"id\" } - Use pre-saved traveler\n• { traveler_id: \"id\", is_lead: true } - Pre-saved as lead\n• { identity: {...}, passport?: {...} } - Inline details\n\nPHONE NUMBERS:\n• International format with a leading + and the country code, e.g. \"+12025550147\". Spaces, hyphens, dots and parentheses are tolerated and removed.\n• A number without the leading + is rejected with error_code INVALID_PHONE_NUMBER; ask the user for the country code and resend.\n\nWORKFLOW:\n1. flight_calendar → Returns flights with offer_token\n2. flight_search → Returns fare options with trip_item_token (offer_id encoded inside)\n3. trip(add_item={...}) → Adds flight, returns trip + saved travelers\n4. trip(upsert_travelers={...}) → Sets travelers on trip\n5. checkout_trip → Completes booking\n\nRETURNS:\n• trip: Complete trip object with items, travelers, totals\n• saved_travelers: Available pre-saved travelers for selection\n• recommended_products: Upsell opportunities (hotels, cars, insurance)\n• actions_performed: Which actions were executed\n• trip_item_id: ID of newly added item (if add_item performed)\n• hint: Action guidance for the LLM. May start with \"Cross-sell: ask the user...\" — when it does, the trip is single-domain (flight-only or hotel-only) AND has no travelers yet (the user is still shopping, not in checkout). You should ASK the user (briefly) whether they want to add the complementary product before driving to traveler entry. Forward the trip_id from the response on the follow-up ",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"trip_id": {
"type": [
"string",
"null"
],
"description": "ID of an existing trip. If not provided, a new trip will be created."
},
"version": {
"description": "Deprecated legacy widget field. Accepted and ignored for compatibility; it does not provide optimistic concurrency."
},
"add_item": {
"anyOf": [
{
"type": "object",
"properties": {
"rooms": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"trip_item_token"
],
"properties": {
"traveler_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional traveler IDs occupying this specific room."
},
"trip_item_token": {
"type": "string",
"minLength": 1,
"description": "Hotel rate token (htl_*) from hotel_search for THIS room. All rooms in the array must come from the same hotel and the same stay (same check-in/check-out dates) — typically one rate per requested occupancy from the same hotel_search response."
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
],
"description": "MULTI-ROOM HOTEL ONLY: book 2–8 rooms of the SAME hotel and SAME stay as ONE booking with ONE reference. One entry per room, each with its own htl_* rate token from hotel_search (e.g. one rate per occupancy). All tokens must belong to the same hotel and identical check-in/check-out dates. Mutually exclusive with trip_item_token; for a single room use trip_item_token instead. Not every hotel rate can be booked this way; one that cannot is refused when it is added."
},
"traveler_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Traveler IDs to associate with the added item"
},
"trip_item_token": {
"type": [
"string",
"null"
],
"description": "Token from flight_search fare options. Contains encoded flight/fare information. Mutually exclusive with rooms — provide exactly one of the two; the unused one may be null or left out."
},
"special_requests": {
"type": "array",
"items": {
"type": "string",
"maxLength": 500
},
"maxItems": 10,
"description": "HOTEL ONLY. Free-text special requests for the property, one per entry — e.g. \"Expected arrival around 11:30 PM\", \"Quiet room on a high floor, if available\", \"Baby cot requested\", \"Non-smoking room\". Forwarded to the hotel supplier with the booking as REQUESTS ONLY: neither Jinko nor the hotel guarantees them, and a confirmed booking does not mean they will be honoured — tell the user so. Applies to the whole stay (every room). At most 10 entries of 500 characters each and 1500 characters in total; blank entries are dropped. Ignored on any item that is not a hotel."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Add a flight or hotel to the trip. Use trip_item_token from flight_search (offer__* format) or offer_id from hotel_search (htl_* format). For MULTIPLE ROOMS of the same hotel stay, make ONE add_item call with the rooms array (2–8 htl_* tokens, same hotel + dates) — do NOT add the same hotel as separate items."
},
"offer_id": {
"type": [
"string",
"null"
],
"description": "Deprecated: offer_id is now encoded into trip_item_token by flight_search. Only needed for legacy tokens without encoded offer_id."
},
"remove_item": {
"anyOf": [
{
"type": "object",
"required": [
"item_id"
],
"properties": {
"item_id": {
"type": "string",
"description": "ID of the trip item to remove. Get this from trip.trip_items[].id"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Remove an item from the trip by its ID."
},
"user_intent": {
"type": "string",
"description": "A concise summary of what the user is trying to accomplish, derived from their message or the\nconversation context that triggered this tool call.\nThis is used to understand the user's intent and context to improve the overall user experience.\n\n- For short, self-contained prompts (e.g. \"I want new shoes\"), copy the user message as-is.\n- For longer conversations or detailed requests, summarize the core goal and any relevant\n context in 1-2 sentences. Focus on intent, constraints, and preferences - not the full\n dialogue.\n\nBefore sending, strip all personally identifiable information (PII), including but not\nlimited to:\n - Names (first, last, usernames, handles)\n - Email addresses\n - Phone numbers\n - Physical addresses (street, city, zip/postal code, country when tied to an individual)\n - Dates of birth or exact ages\n - Government-issued ID numbers (SSN, passport, driver's license, etc.)\n - Payment or financial information (card numbers, bank accounts, etc.)\n - IP addresses or device identifiers\n - Account credentials (passwords, tokens, API keys)\n - Health or biometric data\n - Any other information that could identify a specific individual\n\nReplace stripped values with a generic placeholder (e.g. \"[name]\", \"[email]\", \"[address]\").\n\nExamples:\n User: \"I want red running shoes under $100\"\n -> \"I want red running shoes under $100\"\n\n User: \"Hi, I'm John Smith, john@example.com, and I'm looking for flights from Paris to\n Tokyo for 2 adults departing around mid-June, budget around EUR2000 total\"\n -> \"Looking for flights from Paris to Tokyo for 2 adults, mid-June, budget ~EUR2000\"\n\n User: \"I need help resetting my password for account ID acct_12345\"\n -> \"I need help resetting my password for account ID [account_id]\""
},
"payment_type": {
"enum": [
"checkout",
"intent"
],
"type": "string",
"description": "Payment flow type: \"checkout\" for Stripe Checkout (default), \"intent\" for Payment Intent."
},
"schedule_quote": {
"type": "boolean",
"description": "Schedule a fresh quote on the current cart state. Triggers async re-pricing on the BFF; poll trip(get) until trip.quote_status is \"completed\", \"partial\", or \"failed\". Only \"completed\" covers the whole cart. trip.quoted_total is the quoted sell total; trip.totals includes unquoted search prices, and trip.status is a legacy lifecycle field. Call this AFTER any traveler or cart-composition change so subsequent steps see fresh prices. book(create) will silently re-quote if the cart drifted from the last quote."
},
"idempotency_key": {
"type": [
"string",
"null"
],
"description": "Idempotency key to prevent duplicate processing"
},
"upsert_travelers": {
"anyOf": [
{
"type": "object",
"required": [
"travelers"
],
"properties": {
"contact": {
"anyOf": [
{
"type": "object",
"required": [
"email",
"phone"
],
"properties": {
"city": {
"type": [
"string",
"null"
],
"description": "Billing city. Required by some carriers."
},
"email": {
"type": "string",
"format": "email",
"description": "Email address for booking confirmations"
},
"phone": {
"type": "string",
"description": "Phone number in international format: a leading + and the country code, e.g. \"+12025550147\". Spaces, hyphens, dots and parentheses are tolerated and removed. A number without the leading + is rejected with INVALID_PHONE_NUMBER."
},
"title": {
"type": [
"string",
"null"
],
"description": "Title of the person paying (e.g. \"mr\", \"ms\", \"mx\"). Required by some carriers."
},
"zip_code": {
"type": [
"string",
"null"
],
"description": "Billing postal code. Required by some carriers."
},
"country_code": {
"type": [
"string",
"null"
],
"description": "Billing country as an ISO 3166-1 alpha-2 code (e.g. \"FR\")."
},
"flight_number": {
"type": [
"string",
"null"
],
"description": "The driver's arriving flight for a CAR rental, as an IATA flight designator: a two- or three-character airline code then 1 to 4 digits and an optional letter (\"BA472\", \"RUS1727\"). Spaces and hyphens are accepted and removed. ALWAYS OPTIONAL — a car offer's pick_up.requires_flight_number says whether the rental desk asks for one, and checkout never refuses a booking without it. Send it when the traveller has a flight: the rental company can then hold the car if that flight is delayed. Do not invent one, and do not ask a traveller who is not flying."
},
"terms_accepted": {
"type": "boolean",
"description": "Whether the traveller accepted the CARRIER's terms and conditions, which are separate from Jinko's. Send true only if they were actually shown and accepted."
},
"street_and_number": {
"type": [
"string",
"null"
],
"description": "Billing street and number. Required by some carriers."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Contact for the trip lead (email + phone). Optional while building the cart, but required before booking — the connectors reject bookings without a contact phone."
},
"travelers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"contact": {
"anyOf": [
{
"type": "object",
"properties": {
"email": {
"anyOf": [
{
"type": "string",
"format": "email"
},
{
"type": "null"
}
],
"description": "Email address"
},
"phone": {
"type": [
"string",
"null"
],
"description": "Phone number in international format: a leading + and the country code, e.g. \"+12025550147\". Spaces, hyphens, dots and parentheses are tolerated and removed. A number without the leading + is rejected with INVALID_PHONE_NUMBER."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Contact information"
},
"is_lead": {
"type": "boolean",
"description": "Whether this traveler is the lead/primary contact"
},
"identity": {
"anyOf": [
{
"type": "object",
"required": [
"first_name",
"last_name",
"passenger_type"
],
"properties": {
"title": {
"type": [
"string",
"null"
],
"description": "Title (Mr, Mrs, Ms, etc.)"
},
"gender": {
"anyOf": [
{
"enum": [
"MALE",
"FEMALE"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Gender. Required for flights; optional for hotel-only bookings."
},
"last_name": {
"type": "string",
"description": "Last name as on travel documents. Latin letters only (accents allowed), spaces, hyphens and apostrophes; other scripts are refused"
},
"first_name": {
"type": "string",
"description": "First name as on travel documents. Latin letters only (accents allowed), spaces, hyphens and apostrophes; other scripts are refused"
},
"middle_name": {
"type": [
"string",
"null"
],
"description": "Middle name"
},
"nationality": {
"type": [
"string",
"null"
],
"description": "Nationality (ISO 3166-1 alpha-2 country code)"
},
"date_of_birth": {
"type": [
"string",
"null"
],
"description": "Date of birth (YYYY-MM-DD). Required for flights, and for a CHILD or infant (LAP_INFANT, SEATED_INFANT) staying at a hotel; optional for an adult on a hotel-only booking."
},
"frequent_flyer": {
"anyOf": [
{
"type": "object",
"required": [
"airline",
"number"
],
"properties": {
"number": {
"type": "string"
},
"airline": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Frequent-flyer / loyalty membership. airline = IATA carrier that issued the membership (e.g. LH); number = membership number."
},
"passenger_type": {
"enum": [
"ADULT",
"CHILD",
"LAP_INFANT",
"SEATED_INFANT"
],
"type": "string",
"description": "Passenger type based on age. SEATED_INFANT is not currently supported for flights — bookings with it are rejected; book infants as LAP_INFANT."
},
"redress_number": {
"type": [
"string",
"null"
],
"description": "DHS redress control number (TRIP program). Flights only."
},
"known_traveler_number": {
"type": [
"string",
"null"
],
"description": "US trusted-traveler Known Traveler Number (TSA PreCheck / Global Entry). Flights only; sent to the airline as Secure Flight data so PreCheck prints on the boarding pass."
},
"redress_issuing_country": {
"type": [
"string",
"null"
],
"description": "ISO 3166-1 alpha-2 country that issued the redress number. Defaults to US downstream; ignored without redress_number."
},
"known_traveler_issuing_country": {
"type": [
"string",
"null"
],
"description": "ISO 3166-1 alpha-2 country that issued the Known Traveler Number. Defaults to US downstream; ignored without known_traveler_number."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Traveler identity information. Required if traveler_id is not provided."
},
"passport": {
"anyOf": [
{
"type": "object",
"required": [
"number",
"expiry_date",
"issuing_country"
],
"properties": {
"type": {
"type": [
"string",
"null"
],
"description": "Document type in the CARRIER's vocabulary, when the booking requires one (carriers list it in required_customer_details as government_id_type; values are carrier-specific, e.g. \"passport_id\", \"international_passport\", \"national_id\"). Omit unless asked."
},
"number": {
"type": "string",
"description": "Passport number"
},
"expiry_date": {
"type": "string",
"description": "Passport expiration date (YYYY-MM-DD)"
},
"issuing_country": {
"type": "string",
"description": "Issuing country (ISO 3166-1 alpha-2 code)"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Passport information for international travel"
},
"traveler_id": {
"type": [
"string",
"null"
],
"description": "ID of a pre-saved traveler. If provided, fetches traveler details from storage."
}
},
"additionalProperties": false
},
"description": "List of travelers for the trip. Replaces all existing travelers (idempotent). Required to complete a booking; the first traveler also supplies the booking contact name."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Set travelers on the trip. Replaces all existing travelers (idempotent operation)."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"hint": {
"type": "string"
},
"trip": {},
"status": {
"type": "string"
},
"error_code": {
"type": "string"
},
"trip_item_id": {
"type": "string"
},
"error_message": {
"type": "string"
},
"saved_travelers": {
"type": "array",
"items": {}
},
"actions_performed": {
"type": "array",
"items": {
"type": "string"
}
},
"recommended_products": {
"type": "array",
"items": {}
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Unified tool for booking a trip. Actions are determined by which object you provide. SCHEMA: { create?: { // Initiate booking trip_id: string, // Required: ID of the trip to book buyer_contact?: { // Optional: buyer contact info email: string, phone?: string } }, status?: { // Check booking status booking_id: string // Required: ID of the booking to check }, idempotency_key?: string // Prevent duplicate processing } ACTIONS: 1. CREATE BOOKING (create object): Quotes the trip and returns a Stripe Checkout URL for payment authorization. { "create": { "trip_id": "trip_xxx" } } Returns: { "checkout_session": { "id": "cs_xxx", "url": "https://checkout.stripe.com/...", // Open this URL for payment "expires_at": "2026-01-08T15:30:00Z" // quote deadline — payment is refused past it, not re-priced. Not a price hold. Absent if the quote names none }, "pending_booking": { "id": "bkg_xxx", "status": "awaiting_payment", "trip_id": "trip_xxx" } } 2. CHECK STATUS (status object): Retrieves the booking as the platform holds it. { "status": { "booking_id": "bkg_xxx" } } Returns: Full booking object with status, items, passengers, totals, payment info. booking.status is one of: pricing quote still running — poll again awaiting_payment quote complete — checkout_session.url is where the customer pays processing paid — the platform is booking with the suppliers; poll again confirmed / partially_confirmed / failed / cancelled the outcome, with booking_reference, booked_items and documents No checkout URL is returned once the trip is paid: never ask the customer to pay again from processing or a terminal status. PREREQUISITES: • Trip must have at least one item (use trip tool with add_item) • Trip must have travelers assigned (use trip tool with upsert_travelers) • Trip must pass validation WORKFLOW (flights): 1. flight_calendar → offer_token 2. flight_search → trip_item_token 3. trip(add_item) → trip created 4. trip(upsert_travelers) → travelers set 5. book(create={trip_id}) → checkout URL WORKFLOW (hotels): 1. hotel_search → htl_* offer_id 2. trip(add_item, trip_item_token=htl_*) → trip created 3. trip(upsert_travelers) → travelers set 4. book(create={trip_id}) → checkout URL Flights and hotels can be in the same trip (single checkout). After book(create), poll with book(status={booking_id}) for confirmation. EXAMPLES: 1. Create booking: { "create": { "trip_id": "trip_xyz789" } } 2. Create booking with buyer contact: { "create": { "trip_id": "trip_xyz789", "buyer_contact": { "email": "john@example.com", "phone": "+15551234567" } } } 3. Check booking status: { "status": { "booking_id": "bkg_xxx" } } **Cost: 1 credit per call.**
| Parameter | Type | Description |
|---|---|---|
| create | any | Initiate booking for a trip. Quotes the trip and returns a Stripe Checkout URL for payment. Mutually exclusive with `status` — provide exactly one action per call; the unused action may be null or left out. |
| status | any | Check the status of an existing booking. If payment is authorized, triggers fulfillment automatically. Mutually exclusive with `create` — provide exactly one action per call; the unused action may be null or left out. |
| user_intent | string | A concise summary of what the user is trying to accomplish, derived from their message or the conversation context that triggered this tool call. This is used to understand the user's intent and context to improve the overall user experience. - For short, self-contained prompts (e.g. "I want new sh… |
| idempotency_key | ["string","null"] | Idempotency key to prevent duplicate processing |
{
"name": "book",
"title": "book",
"description": "Unified tool for booking a trip. Actions are determined by which object you provide.\n\nSCHEMA:\n{\n create?: { // Initiate booking\n trip_id: string, // Required: ID of the trip to book\n buyer_contact?: { // Optional: buyer contact info\n email: string,\n phone?: string\n }\n },\n status?: { // Check booking status\n booking_id: string // Required: ID of the booking to check\n },\n idempotency_key?: string // Prevent duplicate processing\n}\n\nACTIONS:\n\n1. CREATE BOOKING (create object):\nQuotes the trip and returns a Stripe Checkout URL for payment authorization.\n{\n \"create\": {\n \"trip_id\": \"trip_xxx\"\n }\n}\n\nReturns:\n{\n \"checkout_session\": {\n \"id\": \"cs_xxx\",\n \"url\": \"https://checkout.stripe.com/...\", // Open this URL for payment\n \"expires_at\": \"2026-01-08T15:30:00Z\" // quote deadline — payment is refused past it, not re-priced. Not a price hold. Absent if the quote names none\n },\n \"pending_booking\": {\n \"id\": \"bkg_xxx\",\n \"status\": \"awaiting_payment\",\n \"trip_id\": \"trip_xxx\"\n }\n}\n\n2. CHECK STATUS (status object):\nRetrieves the booking as the platform holds it.\n{\n \"status\": {\n \"booking_id\": \"bkg_xxx\"\n }\n}\n\nReturns: Full booking object with status, items, passengers, totals, payment info.\nbooking.status is one of:\n pricing quote still running — poll again\n awaiting_payment quote complete — checkout_session.url is where the customer pays\n processing paid — the platform is booking with the suppliers; poll again\n confirmed / partially_confirmed / failed / cancelled\n the outcome, with booking_reference, booked_items and documents\nNo checkout URL is returned once the trip is paid: never ask the customer to pay\nagain from processing or a terminal status.\n\nPREREQUISITES:\n• Trip must have at least one item (use trip tool with add_item)\n• Trip must have travelers assigned (use trip tool with upsert_travelers)\n• Trip must pass validation\n\nWORKFLOW (flights):\n1. flight_calendar → offer_token\n2. flight_search → trip_item_token\n3. trip(add_item) → trip created\n4. trip(upsert_travelers) → travelers set\n5. book(create={trip_id}) → checkout URL\n\nWORKFLOW (hotels):\n1. hotel_search → htl_* offer_id\n2. trip(add_item, trip_item_token=htl_*) → trip created\n3. trip(upsert_travelers) → travelers set\n4. book(create={trip_id}) → checkout URL\n\nFlights and hotels can be in the same trip (single checkout).\nAfter book(create), poll with book(status={booking_id}) for confirmation.\n\nEXAMPLES:\n\n1. Create booking:\n{\n \"create\": {\n \"trip_id\": \"trip_xyz789\"\n }\n}\n\n2. Create booking with buyer contact:\n{\n \"create\": {\n \"trip_id\": \"trip_xyz789\",\n \"buyer_contact\": {\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\"\n }\n }\n}\n\n3. Check booking status:\n{\n \"status\": {\n \"booking_id\": \"bkg_xxx\"\n }\n}\n\n**Cost: 1 credit per call.**",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"create": {
"anyOf": [
{
"type": "object",
"required": [
"trip_id"
],
"properties": {
"trip_id": {
"type": "string",
"description": "ID of the trip to book. The trip must have items and travelers."
},
"buyer_contact": {
"anyOf": [
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "Email address for booking confirmations"
},
"phone": {
"type": [
"string",
"null"
],
"description": "Phone number in international format: a leading + and the country code, e.g. \"+12025550147\"."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Buyer contact information. If omitted, uses lead traveler contact."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Initiate booking for a trip. Quotes the trip and returns a Stripe Checkout URL for payment. Mutually exclusive with `status` — provide exactly one action per call; the unused action may be null or left out."
},
"status": {
"anyOf": [
{
"type": "object",
"required": [
"booking_id"
],
"properties": {
"booking_id": {
"type": "string",
"description": "ID of the booking to check status for."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Check the status of an existing booking. If payment is authorized, triggers fulfillment automatically. Mutually exclusive with `create` — provide exactly one action per call; the unused action may be null or left out."
},
"user_intent": {
"type": "string",
"description": "A concise summary of what the user is trying to accomplish, derived from their message or the\nconversation context that triggered this tool call.\nThis is used to understand the user's intent and context to improve the overall user experience.\n\n- For short, self-contained prompts (e.g. \"I want new shoes\"), copy the user message as-is.\n- For longer conversations or detailed requests, summarize the core goal and any relevant\n context in 1-2 sentences. Focus on intent, constraints, and preferences - not the full\n dialogue.\n\nBefore sending, strip all personally identifiable information (PII), including but not\nlimited to:\n - Names (first, last, usernames, handles)\n - Email addresses\n - Phone numbers\n - Physical addresses (street, city, zip/postal code, country when tied to an individual)\n - Dates of birth or exact ages\n - Government-issued ID numbers (SSN, passport, driver's license, etc.)\n - Payment or financial information (card numbers, bank accounts, etc.)\n - IP addresses or device identifiers\n - Account credentials (passwords, tokens, API keys)\n - Health or biometric data\n - Any other information that could identify a specific individual\n\nReplace stripped values with a generic placeholder (e.g. \"[name]\", \"[email]\", \"[address]\").\n\nExamples:\n User: \"I want red running shoes under $100\"\n -> \"I want red running shoes under $100\"\n\n User: \"Hi, I'm John Smith, john@example.com, and I'm looking for flights from Paris to\n Tokyo for 2 adults departing around mid-June, budget around EUR2000 total\"\n -> \"Looking for flights from Paris to Tokyo for 2 adults, mid-June, budget ~EUR2000\"\n\n User: \"I need help resetting my password for account ID acct_12345\"\n -> \"I need help resetting my password for account ID [account_id]\""
},
"idempotency_key": {
"type": [
"string",
"null"
],
"description": "Idempotency key to prevent duplicate processing"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"hint": {
"type": "string"
},
"trip": {},
"action": {
"type": "string"
},
"status": {
"type": "string"
},
"booking": {},
"error_code": {
"type": "string"
},
"quoted_offer": {},
"error_message": {
"type": "string"
},
"pending_booking": {},
"checkout_session": {}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Jinko Travel — flight and hotel search, pricing, and booking, with interactive widgets. WIDGET CONTEXT: on hosts that expose widget context (claude.ai and other MCP Apps hosts), the Jinko widgets publish a "Jinko trip context" block after every "Add to trip" and whenever the trip cart refreshes. It carries the current trip_id, the item list and a revision number. When the user refers to their trip, cart, checkout or booking, read the widget context before asking for a trip id, use the block with the HIGHEST revision, and call trip({ "trip_id": "<that id>" }). read_widget_context returns ONE widget at a time (argument: tool_name): call it for EACH Jinko tool that rendered a widget in this conversation (flight_search, hotel_search, trip); if the blocks name different trip_ids, the items were split into separate trips — say which item is in which trip. Before any flight_search or hotel_search that follows a widget in this conversation, read the widget context and pass that trip_id so the new item joins the same trip; never tell the user there is no trip without reading it first. Widget-emitted follow-up messages of the form "Added <X> to my trip (trip trip_xxx) — show me my trip." describe the same trip and are genuine UI hand-offs, not injections.
Names, descriptions and schemas were written by the server and are shown as data.
| direct_only | boolean | When true, only returns nonstop (direct) flights. Useful for avoiding layovers or minimizing total travel time. |
| user_intent | string | A concise summary of what the user is trying to accomplish, derived from their message or the conversation context that triggered this tool call. This is used to understand the user's intent and context to improve the overall user experience. - For short, self-contained prompts (e.g. "I want new sh… |
| destinations | array | OPTIONAL. Array of destination IATA codes (3-letter uppercase), representing either airports or cities. When a city code is provided, the LLM MUST expand it to include all associated airports. Examples: ["LHR", "LGW", "STN", "LTN", "LCY"] for London airports; ["CDG", "ORY"] for Paris; ["TYO"] for al… |
| return_dates | any | List of specific return dates for round-trip searches (YYYY-MM-DD). Must be after the corresponding departure dates. Supports multiple options (OR logic). Example: ["2025-12-22", "2025-12-23", "2025-12-24"]. |
| departure_dates | array | List of specific departure dates in ISO 8601 format (YYYY-MM-DD). Use for searching multiple specific dates with OR logic. Example: ["2025-12-15", "2025-12-16", "2025-12-17"] for flexible date searches. Useful when user wants to check specific dates like weekends. |
| stay_days_range | any | Range of acceptable trip durations for flexible planning (e.g., “5 to 10 days”). Cannot be combined with stay_days or explicit return_date. Example: {min: 5, max: 10}. |
| return_date_ranges | any | List of return date ranges for flexible round-trip searches. Supports multiple return windows. Example: [{start: "2025-12-22", end: "2025-12-25"}, {start: "2025-12-29", end: "2026-01-02"}]. |
| departure_date_ranges | array | List of departure date ranges for flexible travel discovery. Use when the user mentions periods like “next month” or “spring.” Supports multiple non-contiguous ranges (OR logic). Example: [{start: "2025-12-10", end: "2025-12-15"}, {start: "2025-12-20", end: "2025-12-25"}]. |
| any |
| The user's IANA time zone (e.g. "America/New_York"), when known. Check-in may be today there, so a stay that starts tonight is accepted. |
| destination | any | Destination — provide exactly one shape; unused fields may be null or left out. Two distinct modes: MODE A (rate lookup — you know which hotel): • { hotel_ids } to re-shop a known set. • { hotel_name, country_code?, city_name? } when the user named a specific property. Server resolves via fuzzy… |
| next_handle | any | Opaque continuation handle returned by a prior hotel_search. Send this field by itself, or with every other field null. A first request needs destination, checkin and checkout. |
| occupancies | any | One entry per room (structured). PREFERRED whenever the party is larger than 2 adults or has children — it removes ambiguity about how guests are split across rooms. Example: [{ "adults": 2 }, { "adults": 1, "children_ages": [5] }]. Do NOT combine with the shorthand fields (adults/children/rooms) — … |
| user_intent | string | A concise summary of what the user is trying to accomplish, derived from their message or the conversation context that triggered this tool call. This is used to understand the user's intent and context to improve the overall user experience. - For short, self-contained prompts (e.g. "I want new sh… |
| guest_nationality | any | Guest nationality (ISO 3166-1 alpha-2, uppercase, e.g. "FR"). Affects rate availability + tax handling at search time. Separate from traveler nationality used for booking documents. |
| Idempotency key to prevent duplicate processing |
| upsert_travelers | any | Set travelers on the trip. Replaces all existing travelers (idempotent operation). |