Skip to main content
Glama

Apply a promo code

bk_cart_promo

Apply (or remove) a promo / discount code on the Bookeasy cart. Use when the user gives a promo code; call before bk_cart_checkout so the discounted total shows. Set remove=true to take a code off.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
removeNoTrue to remove the code instead of applying it
promo_codeYesThe promo / discount code
session_keyYesThe cart session key

TDQS

A4.2/5.0
Behavior4/5

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

Annotations indicate readOnlyHint=false, so the mutation is already known. The description adds behavioral detail beyond annotations: it explains the removal capability via remove=true, and the timing effect on the discounted total before checkout. It does not contradict the annotations and provides useful operational context about how the cart total is affected.

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 three concise sentences, front-loaded with the main purpose, then usage context, and a parameter-specific note. Each sentence adds essential information without redundancy or filler, making it easy to parse and act upon.

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 tool with 3 simple parameters, no output schema, and minimal annotations, the description covers the core aspects: what it does, when to use it, and how removal works. It is well-integrated with sibling context via the checkout ordering hint. The only minor gap is not mentioning potential error handling or invalid codes, but the description is complete enough for straightforward invocation.

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

Parameters3/5

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

The input schema covers all three parameters with descriptions, so the baseline is 3. The description restates the remove parameter ('Set remove=true to take a code off') but does not add substantial meaning beyond the schema. No additional parameter details are needed due to high schema coverage.

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 function with a specific verb and resource: 'Apply (or remove) a promo / discount code on the Bookeasy cart.' It explicitly distinguishes from sibling tools by mentioning the correct timing relative to bk_cart_checkout and the removal option, so the purpose is unambiguous and differentiates among cart-related operations.

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 usage context: 'Use when the user gives a promo code; call before bk_cart_checkout so the discounted total shows.' This gives an explicit when-to-use and an ordering guideline. It does not explicitly state when not to use or name alternatives, but the context is sufficient for an agent to select this tool appropriately among siblings.

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