Skip to main content
Glama

Add a stay to the booking cart

bk_cart_add

Add a product to the Bookeasy booking cart, OR answer a booking question. This is SERVER-DRIVEN and stateful:

  • First add: omit session_key to start a new cart; 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' (item is in the cart) OR 'question_pending' — in which case it returns ONE question and a pending_token. Ask the user EXACTLY that one question, then call bk_cart_add again with the same session_key, the pending_token, and answer={field_id, value}. Repeat until status is 'added'. Always reuse the session_key returned by the previous cart call — never invent one.

Input Schema

TableJSON 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_idNoBookeasy operator id (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)

TDQS

A4.5/5.0
Behavior4/5

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

The description extensively discloses behavioral traits beyond annotations: it is 'SERVER-DRIVEN and stateful', requires session_key reuse, returns 'added' or 'question_pending' statuses, and mandates asking the user EXACTLY one question at a time. This adds significant value over the minimal annotations (all false). It does not cover error handling or auth, but the essential stateful behavior is well explained.

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?

The description is dense but every sentence earns its place. It opens with the purpose, then uses bullet points to separate the two call flows, ending with a critical warning about session_key. The structure is clear and front-loaded with the most important information, making it easy to parse despite the complexity.

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?

Given the tool's complexity (10 params, nested objects, no output schema), the description covers the key aspects: how to start, how to continue, and what responses to expect. It does not describe the contents of an 'added' response, but that is not essential for invocation. The reference to bk_operator_availability provides prerequisite context. It is reasonably complete, though a bit more explanation of the response structure would make it fully self-contained.

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 100% schema coverage, the baseline is 3, but the description adds substantial meaning. It explains the role of session_key (omit on first add), pending_token for subsequent answers, the answer object structure, and that quoted_price comes from bk_operator_availability. It also clarifies the parameter groups for the two call modes, which is not evident from the schema alone.

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 clearly states the tool's core function: 'Add a product to the Bookeasy booking cart, OR answer a booking question.' It specifies the two distinct use cases and distinguishes itself from sibling cart tools like bk_cart_checkout and bk_cart_promo. The verb 'add' and resource 'booking cart' are explicit.

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

Usage Guidelines4/5

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

The description provides clear workflow context: when to omit session_key for a new cart, how to pass initial parameters, and how to handle the question_pending flow by reusing session_key and pending_token. It references bk_operator_availability as the source for quoted_price. It does not explicitly mention alternatives or exclusions, but the context is clear enough for an agent to know when to use this tool versus others.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool targets a distinct operation: bk_* for Bookeasy booking workflows (add, checkout, guest, promo, search operators/content), get_* for retrieval, search_* for different domains (campsites, campervans, products), and find_nearest_toilets and recommend_gear for specific niche queries. No significant overlap.

Naming Consistency5/5

Naming follows a consistent pattern: bk_ prefix for Bookeasy tools, then verb_noun (e.g., bk_cart_add, bk_search_operators). Non-bk tools use get_ or search_ prefixes. All snake_case, predictable and clear.

Tool Count5/5

18 tools cover a broad scope (accommodation search, campervan rental, public toilets, weather, gear, products, and full booking lifecycle) without bloat. Each tool earns its place; the count is well-scoped for the domain.

Completeness4/5

The tool set covers most user needs: listing, searching, booking, weather, gear, product sales. Minor gaps (e.g., no tool for cancelling/viewing past bookings) but these are likely handled externally via the booking platform. The core workflows are well-supported.

Resources