Skip to main content
Glama

Create Booking

create-booking

Create a booking for a company as a guest. Requires a date (YYYY/MM/DD), an hour and shift_id obtained from list-available-slots, and the guest contact details. On success, returns a token field: the booking management token to pass to get-booking-info and cancel-booking. When type is "Deposit", give the guest the redirect_url to pay the deposit, which confirms the booking.

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": {
      "company_id": "<company_id>",
      "date": "<date>",
      "hour": "<hour>",
      "shift_id": "<shift_id>",
      "adults": "<adults>",
      "name": "<name>",
      "surname": "<surname>",
      "email": "<email>",
      "phone": "<phone>"
    },
    "name": "create-booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoGuest city.
dateYesBooking date in YYYY/MM/DD format (e.g. 2026/07/20). Note the slashes.
hourYesBooking hour in HH:MM format, taken from list-available-slots.
nameYesGuest first name.
petsNoNumber of pets.
emailYesGuest email address. The booking confirmation and management token are sent here.
optinNoMarketing opt-in flag (1 or 0).
phoneYesGuest phone number.
veganNoWhether the party includes vegan guests.
adultsYesNumber of adults.
babiesNoNumber of babies.
countryNoGuest country.
messageNoOptional message for the business.
surnameYesGuest last name.
childrenNoNumber of children.
latitudeNoGuest latitude, if known.
shift_idYesThe shift id, taken from list-available-slots.
highchairNoNumber of highchairs.
longitudeNoGuest longitude, if known.
pushchairNoNumber of pushchairs.
company_idYesThe company id, as returned by the find-company tool.
vegetarianNoWhether the party includes vegetarian guests.
wheelchairNoNumber of wheelchairs.
gluten_freeNoWhether the party needs gluten-free options.
guest_tokenNoExisting guest token, if the guest has booked before.
nuts_allergyNoWhether the party has a nut allergy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds real behavioral context beyond that, namely that a successful call returns a `token` used by get-booking-info and cancel-booking, and that Deposit-type bookings are only confirmed after the guest pays via `redirect_url`. It does not describe failure modes (e.g. slot taken, invalid shift_id), so it is strong but not exhaustive.

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?

Four sentences, each carrying a distinct piece of information: purpose, required inputs, success token, and the Deposit payment path. Front-loaded and free of filler, though the `type` reference appears without being a documented input parameter, which slightly muddies an otherwise tight text.

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?

There is no output schema, so the description carries the return-value burden and does so by naming the `token` and `redirect_url` fields and their downstream use. For a 26-parameter mutation tool this is largely sufficient, with the remaining gap being error/edge-case behavior rather than input semantics.

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 more by documenting cross-field dependencies the schema alone does not state, specifically that hour and shift_id must originate from list-available-slots and the exact date format YYYY/MM/DD. It does not cover the many optional guest-detail fields (pets, allergies, wheelchair), though the schema already documents those.

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 ('Create a booking for a company as a guest') and names the sibling tools involved in the surrounding workflow (list-available-slots, get-booking-info, cancel-booking), so an agent can place it precisely among its siblings.

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 clear preconditions: the date/hour/shift_id must come from list-available-slots and guest contact details are required. It also explains a conditional follow-up action when type is "Deposit" (hand the guest the redirect_url). It stops short of explicit when-not-to-use guidance, e.g. what to do when no slots are free or the guest already has a token.

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