Skip to main content
Glama

create_booking_intent

Read-onlyIdempotent

Creates a link only — nothing is charged, reserved or booked until the person pays on autonomad.ai. The short-lived link opens a page where the traveler reviews the full price and terms, signs in or creates an account, and books and pays. Payment and identity checks happen on the website, and bookings are not made inside the chat.

No new search is needed: offer_data is built from the search results already in this conversation. The website checks the live price and availability at checkout, and finds the same flights again if a fare has expired, so results that are a few minutes old are fine, and searching again first only adds a wait.

When to use it: as soon as the person picks a flight, fare or hotel, says they want to book, or asks how to book. It is not needed for browsing. intent_type is one of 'flight', 'hotel' or 'trip' — there is no activity, event or experiences link. Activities, experiences and events are chosen as add-ons on autonomad.ai after the person opens a flight, hotel or trip link, so describe them in the reply rather than creating a link for them.

intent_type (choose one):

  • 'flight': the person chose a flight only. offer_data is the flight from search_flights, unchanged, with the CHOSEN fare: when the person picked a fare other than the first in fare_options, set offer_id, price_usd, fare_brand and cabin_class to that fare option's values (the booking page opens exactly that fare). Plus a top-level passengers number (the TOTAL number of travelers the person asked for; flight offers do not include it). When children or lap infants travel, also add the same adults, children_ages and infants_on_lap used in search_flights, so the booking page asks for each traveler (every traveler's date of birth is entered on autonomad.ai, never here).

  • 'hotel': the person chose a hotel only. offer_data is the hotel offer from search_hotels plus top-level check_in and check_out as YYYY-MM-DD strings (the dates used in the search; hotel offers do not include them, and without them the booking page opens an empty form), and adults and rooms numbers. A hotel from find_hotels_on_route is different: offer_data is that hotel's booking_offer exactly as find_hotels_on_route returned it — copy it whole, never rebuild it from the hotel's name, address or price and never add or drop keys (it already carries check_in, check_out, adults and rooms, and the room to book).

  • 'trip': the person chose a flight and a hotel for the same trip. offer_data is { flight: { ...offer (with the chosen fare, as for 'flight'), passengers: }, hotel: { ...offer, adults: , rooms: , check_in, check_out } }. One link covers both, so one intent per trip is enough; two separate links for one trip are confusing.

Include the traveler count in offer_data: without it the booking page defaults to 2 travelers. Travelers can be any age, including children and babies; only the account holder who books and pays must be 18 or older.

A person's first trip with Autonomad, booked from an assistant's booking link, includes Trip Concierge free.

What the reply to the person should include: the deep_link as a clickable link that invites them to book (for example 'Book it here'), and one short line that nothing is charged until they pay on autonomad.ai, where the full price and terms are shown. Lead with the link, not with caveats. The link lasts about 30 minutes; there is no need to say so unless the person comes back later, and then simply create a new one.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "intent_type": "<intent_type>",
      "offer_data": "<offer_data>"
    },
    "name": "create_booking_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_dataYesThe chosen flight or hotel exactly as the search result gave it (see intent_type for what to add, such as passengers or check_in and check_out). Taken from the results already shown; no new search is needed.
intent_typeYesflight, hotel, or trip (a flight and a hotel together). Activities, experiences and events are added on autonomad.ai after opening one of these links.
expires_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / offer_data / description
      Added value: +"The chosen flight or hotel exactly as the search result gave it (see intent_type for what to add, such as passengers or check_in and check_out). Taken from the results already shown; no new search is needed."
  2. Changed2 schema fields changed
    • addedInput schema / properties / intent_type / description
      Added value: +"flight, hotel, or trip (a flight and a hotel together). Activities, experiences and events are added on autonomad.ai after opening one of these links."
    • changedInput schema / properties / intent_type / enum
      Previous value: -[
      -  "flight",
      -  "hotel",
      -  "activity",
      -  "event",
      -  "trip",
      -  "experiences"
      -]New value: +[
      +  "flight",
      +  "hotel",
      +  "trip"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / intent_type / enum
      Previous value: -[
      -  "flight",
      -  "hotel",
      -  "activity",
      -  "event",
      -  "transport",
      -  "trip",
      -  "experiences"
      -]New value: +[
      +  "flight",
      +  "hotel",
      +  "activity",
      +  "event",
      +  "trip",
      +  "experiences"
      +]
  4. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=true, idempotentHint=true, destructiveHint=false), the description discloses the key behaviors an agent cannot infer: the link is short-lived (~30 minutes), nothing is charged until payment on the website, price/availability are re-validated at checkout, stale results are acceptable, and the booking page defaults to 2 travelers if the count is omitted. It also states where payment and identity checks occur and gives reply-construction guidance.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core distinction (link only, nothing charged) and then organized under clear headers ('When to use it', per-intent_type bullets, reply guidance). It is long and repeats the traveler-count warning and the 'no new search needed' point more than once, but nearly every sentence carries actionable detail for a nested-object tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a nested, polymorphic offer_data and no output schema, the description supplies everything needed to call it correctly and to use the result — including that the return value is a deep_link, that it should be presented as a clickable link, and what caveat line to accompany it. The only unaddressed item is the optional expires_minutes parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 67% schema coverage and a nested offer_data object, the description goes far past the schema by specifying the exact shape per intent_type: chosen fare fields (offer_id, price_usd, fare_brand, cabin_class), top-level passengers/adults/children_ages/infants_on_lap for flights, check_in/check_out/adults/rooms for hotels, the copy-whole rule for find_hotels_on_route booking_offer, and the nested flight/hotel composition for 'trip'. The only gap is expires_minutes, which is undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a precise verb and resource and immediately scopes it: 'Creates a link only — nothing is charged, reserved or booked until the person pays on autonomad.ai.' It also distinguishes the tool from its siblings by naming search_flights, search_hotels and find_hotels_on_route as the sources of offer_data, and explicitly excludes activities/events/experiences links.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It has an explicit 'When to use it' trigger ('as soon as the person picks a flight, fare or hotel, says they want to book, or asks how to book') and an explicit when-not ('It is not needed for browsing'). It also routes non-supported cases away (activities/events described in the reply instead of a link) and tells the agent not to re-run a search first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources