Skip to main content
Glama

Add a stay to the booking cart

bk_cart_add

Requires sign-in and the booking:cart permission. Add a product to the live booking cart, or answer a question the park asks while adding it.

  • First add: omit session_key to open a new cart, and pass operator_id, product_id, check_in, check_out, adults, children and quoted_price (the price from bk_operator_availability).

  • The response status is 'added' when the item is in the cart, or 'question_pending' with one question from the park and a pending_token. Answering means calling again with the same session_key, the pending_token and answer={field_id, value}; this repeats until the status is 'added'. Each response carries the session_key that identifies the cart in later cart calls.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bk_cart_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
adultsNoAdults (default 2)
answerNoAnswer to the pending booking question
check_inNoCheck-in date YYYY-MM-DD
childrenNoChildren (default 0)
check_outNoCheck-out date YYYY-MM-DD
product_idNoProduct id from bk_operator_availability
operator_idNoOperator id from bk_search_operators (for a new product add)
session_keyNoCart session key from a prior cart call. Omit on the very first add to open a new cart.
quoted_priceNoThe price quoted by bk_operator_availability for this product
pending_tokenNoToken from a prior 'question_pending' response (when answering a booking question)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / operator_id / description
      Previous value: -"Bookeasy operator id (for a new product add)"New value: +"Operator id from bk_search_operators (for a new product add)"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag the write/non-idempotent/open-world nature, and the description goes further by disclosing the two terminal statuses ('added', 'question_pending'), the pending_token handshake, and that responses carry the session_key that binds later calls. It does not cover failure modes such as a failed or rejected add, which is the main remaining gap.

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

Conciseness5/5

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

Front-loads the permission requirement, then splits the two call modes into separate bullets with the return-status loop summarized last. No filler sentences; every line carries operational detail.

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

Completeness4/5

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

For a 10-parameter, nested-object mutation tool with no output schema, the description supplies the missing return-behavior context (status values, pending_token, session_key propagation). Only error/edge-case handling is left unaddressed.

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 baseline is 3; the description earns above that by explaining how parameters combine — which fields belong to a first add versus a question-answer call, and that session_key must be omitted to open a new cart. That grouping is semantic information the flat schema cannot express.

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 ('Add a product to the live booking cart') and explicitly covers the second mode ('answer a question the park asks while adding it'). This distinguishes it from siblings like bk_cart_checkout, bk_cart_guest and bk_cart_promo without the agent needing to open any 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?

Gives explicit branching guidance: omit session_key on the first add, provide the full first-add field set, then loop with the same session_key plus pending_token and answer until status is 'added'. It also names the prerequisite (sign-in plus booking:cart permission) and points at bk_operator_availability as the source of quoted_price.

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