Skip to main content
Glama

Apply a promo code

bk_cart_promo

Requires sign-in and the booking:cart permission. Apply a promo or discount code to the live booking cart, or remove one with remove=true. A code applied before bk_cart_checkout is reflected in the checkout total. Returns the updated cart.

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>",
      "promo_code": "<promo_code>"
    },
    "name": "bk_cart_promo"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations provide a safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), so the bar is lower. The description adds auth/permission prerequisites, the dual apply/remove modes, and the checkout-total effect, but does not address non-idempotency (e.g., re-applying an already applied code) despite idempotentHint=false.

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?

Short and mostly front-loaded, with every sentence adding content (prereqs, action, checkout effect, return). However, leading with the auth requirement rather than the core action slightly buries the purpose.

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?

Covers what an agent needs for a 3-param mutation tool: prerequisites, apply/remove behavior, ordering relative to checkout, and the return value ('updated cart') even though no output schema exists. Missing only idempotency/error behavior on duplicate codes.

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?

Schema coverage is 100%, so all three parameters are already documented, including remove. The description only restates remove's semantics and adds the checkout-ordering note. Baseline 3 is correct when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: applying or removing a promo/discount code on the live booking cart. The dual-mode behavior (apply vs. remove with remove=true) is spelled out, so an agent can distinguish it from bk_cart_add and bk_cart_checkout.

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?

Gives ordering context: a code applied before bk_cart_checkout shows up in the checkout total, which tells the agent when this tool belongs in the flow. Prerequisites (sign-in, booking:cart permission) are stated. No explicit when-not needed for a cart-scoped mutation.

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