Skip to main content
Glama

Complete booking checkout

bk_cart_checkout
Destructive

Requires sign-in and the booking:checkout permission. Finalise the live booking cart in two steps:

  1. Without confirm, it returns the booking summary (property, dates, guests) and total price, with no payment link.

  2. With confirm=true, it returns a single link to the park's secure payment page covering the whole cart. The traveller pays on that page; this connector never takes payment. confirm=true is intended for after the traveller has reviewed the summary and agreed to proceed. The booking stays pending until payment is completed on the payment page. The cart needs no pending questions and a lead guest set with bk_cart_guest.

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": {
      "session_key": "<session_key>"
    },
    "name": "bk_cart_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNotrue returns the secure payment link; intended for after the traveller has reviewed the summary and total and agreed to proceed. Omitted or false returns only the summary and total.
session_keyYesThe cart session key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Set true ONLY after the traveller has seen the full summary + total and explicitly agreed. Without it, the payment link is withheld and only the summary is returned."New value: +"true returns the secure payment link; intended for after the traveller has reviewed the summary and total and agreed to proceed. Omitted or false returns only the summary and total."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses what the call produces in each mode, that no payment is taken by the connector, and that the booking remains pending until payment occurs on the external page. It also surfaces the auth/permission requirement and the cart precondition, which the annotations (destructive, openWorld, non-idempotent) do not convey.

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?

The numbered two-step list is well front-loaded and efficient, but the confirm=true guidance is repeated in the prose after already being stated in step 2, making the last two sentences partially redundant.

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 two-parameter, non-idempotent, destructive-flagged checkout tool with no output schema, the definition covers auth, preconditions, both return shapes, and post-call state. Nothing an agent needs to invoke it correctly is missing.

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% and the confirm parameter already documents its dual behavior, so the description largely restates it; the added value is placing confirm within an explicit two-step ordering and tying it to the review-then-proceed condition. session_key is not elaborated on beyond the schema, but it needs no further explanation.

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 description names a specific verb and resource ('Finalise the live booking cart') and defines two distinct operating modes: summary-only versus payment-link generation. An agent can distinguish this from cart mutation or guest-management siblings without opening the schema.

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 states prerequisites ('Requires sign-in and the booking:checkout permission'), preconditions for the cart ('no pending questions and a lead guest set with bk_cart_guest'), and the exact condition for confirm=true ('after the traveller has reviewed the summary and agreed to proceed'). It routes the agent to a named sibling for the guest prerequisite.

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