Skip to main content
Glama

Request a booking

request_booking

Books a treatment for the guest, the same way the spa's website does. The booking is confirmed only when the guest pays by card on the returned pay_url: show it to the guest. Ask the guest first and only call this with customer_consent true. If the time is no longer free, nothing is booked and up to 3 other free times are returned.

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": {
      "service_id": "<service_id>",
      "customer_name": "<customer_name>",
      "customer_consent": "<customer_consent>"
    },
    "name": "request_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD, Sint Maarten
timeNoHH:MM, Sint Maarten (UTC−4)
notesNoe.g. pressure preference, allergies, occasion
guestsNoCouples treatments are always 2
languageNoLanguage of the pay page and email
service_idYesAn id from list_services
start_timeNoISO 8601 with offset, e.g. 2026-11-20T15:00:00-04:00. Or give date and time.
customer_nameYes
customer_emailNoIf given, the guest also gets the pay link by email
customer_phoneNoE.164, e.g. +17215551234
idempotency_keyNoRepeating a request with the same key within 24 hours returns the same booking
customer_consentYesMust be true: the guest asked for this booking and agrees to be contacted about it

Output Schema

NameRequiredDescriptionDefault
statusYes
messageNo
pay_urlNo
serviceNo
amount_usdNo
start_timeNo
alternativesNo
booking_referenceNo
pay_within_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the two-phase nature of the operation: nothing is actually booked until the guest pays via the returned pay_url, and the agent is told to surface that URL. It also documents the failure mode — if the time is taken, nothing is booked and up to 3 alternative free times come back — which is exactly the non-obvious behavior an agent needs before calling.

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?

Three tight sentences, each doing distinct work: what it does, the consent/payment requirement, and the conflict fallback. The most consequential constraint (confirmed only on payment) is front-loaded in sentence two.

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?

With 12 parameters, a 92% covered schema and an output schema, the description covers the critical gaps: consent gating, the unconfirmed-until-payment state, and the alternative-times response. Minor omissions remain (whether the slot is held and for how long, when to supply idempotency_key), but nothing blocks a correct call.

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 description coverage is 92%, so the schema already explains date, time, guests, language, service_id, idempotency_key and the rest. The description reinforces only customer_consent ('ask the guest first'), adding a little intent beyond the schema's wording; everything else is schema-carried, so the baseline 3 applies.

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 and resource ('Books a treatment for the guest') and clarifies the mechanism ('the same way the spa's website does'), which separates it from check_availability and get_booking_status. It stops short of naming a sibling or stating the prerequisite flow (list_services → check_availability), so it is clear but not fully differentiated.

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 explicit preconditions: ask the guest first, only call with customer_consent true, and show the returned pay_url to the guest. It does not state when to prefer check_availability first or what to do if the guest has not yet chosen a service, so the surrounding workflow is implied rather than spelled out.

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