Skip to main content
Glama

Zestli

Initiate Booking

initiate_booking

Use this when the user has agreed to a quoted price and wants to book: turns a live quote_id into a booking proposal with final pricing and terms for review. Nothing is charged or booked yet — show the proposal to the user. When they want to go ahead, call request_human_booking_approval (an approval form in this chat, with a saved card) or confirm_booking (Zestli's secure checkout link) with the proposal_id. Payment happens only in that form or on the checkout, where the user approves and pays; a reply in chat pays nothing. For a person under 18 (guardian_must_pay true) there is no checkout: use ask_someone_to_pay so their parent or legal guardian pays. Send one idempotency_key per intended purchase and reuse it on retry; each call without one creates a new proposal that holds its own seats. Creating another proposal, including from a revised quote, does not replace or release an earlier proposal or hold. Only a current Zestli readback establishes whether an earlier hold is active, released, or expired. State amounts using the *_display fields.

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": {
      "request": "<request>"
    },
    "name": "initiate_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesInput for initiating a booking (creates a proposal, not a booking).

Output Schema

NameRequiredDescriptionDefault
reviewNo
statusNo
messageNo
currencyNo
quote_idYes
booking_idNo
error_codeNo
is_sandboxNo
line_itemsNo
proposal_idYes
checkout_urlNo
confirmationNo
total_amountYes
total_displayNo
guest_questionsNo
travelers_savedNo
travelers_neededNo
guardian_must_payNo
cancellation_policyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that no payment occurs here, that each keyless call creates a new proposal holding its own seats, that creating a new proposal does not release an earlier hold, and that only a current Zestli readback establishes hold status. The idempotency_key guidance is consistent with idempotentHint=false, since only keyed retries are idempotent.

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?

Front-loaded with the trigger and the crucial 'nothing is charged yet' constraint, then the alternatives, then the hold/idempotency caveats. It is dense and long, but nearly every sentence carries operational weight; only the hold-status readback sentence could be tightened.

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?

Covers everything an agent needs for a state-creating, money-adjacent tool: what is and is not committed, which sibling to call next, the guardian exception, idempotency discipline, and hold semantics. With a full output schema present, return values need no elaboration here.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents all nested fields, making 3 the baseline. The description still adds real meaning: the consequence of omitting idempotency_key ('each call without one creates a new proposal that holds its own seats') and the guidance to report amounts via the *_display fields rather than raw values.

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?

States a specific verb and resource with scope: 'turns a live quote_id into a booking proposal with final pricing and terms for review.' It explicitly separates itself from the downstream commit tools (request_human_booking_approval, confirm_booking), so an agent knows this is a proposal-creation step, not a purchase.

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?

Gives an explicit trigger ('when the user has agreed to a quoted price and wants to book'), explicit non-goals ('Nothing is charged or booked yet — show the proposal to the user'), and routes to named alternatives with the conditions that select them: request_human_booking_approval vs confirm_booking, and ask_someone_to_pay when guardian_must_pay is true.

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