Skip to main content
Glama

Get Booking Details

get_booking_details
Read-only

Returns the full details of one existing booking: hotel, dates, rooms, guests, contact person, total price, payment status (PAID, PENDING, or CREDIT_LINE for a confirmed booking charged to a partner credit line, settled per statement via GET /api/b2b/credit-line/statement), and the cancellation policy (including any cancellation fees and the free-cancellation deadline). Required: bookingId (from list_bookings). Needs a registered LockTrip account session; guest sessions cannot view booking details. Without a signed-in session, pass the user's email instead: LockTrip emails them a sign-in link to their bookings on locktrip.com, and the result has magicLinkSent: true (nothing is shown or changed in this chat). Informational only. Use this to read the fee/refund terms BEFORE cancelling, since cancel_booking itself does not return a fee preview.

Input Schema

NameRequiredDescriptionDefault
emailNoThe user's LockTrip account email. Needed only when there is no signed-in session: LockTrip then emails that address a sign-in link to the user's bookings on locktrip.com (the bookings are not shown in this chat).
bookingIdYesBooking ID to retrieve
sessionTokenNoOptional guest-checkout token returned by `guest_login`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description is consistent, explicitly stating "Informational only" and "nothing is shown or changed in this chat." It goes well beyond annotations by disclosing auth requirements, the guest-session restriction, and the non-obvious side effect of the `email` fallback (a sign-in link is emailed, result carries `magicLinkSent: true`) — behavior an agent could not infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the useful part, but it is one dense block with nested parentheticals, including a credit-line settlement endpoint reference that is tangential to reading one booking. Splitting the required-ID, session, and fallback rules into distinct sentences would cost nothing and improve scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 itself — and it does, naming each returned field and the enum-like payment statuses. For a 3-parameter read tool with an auth fallback, nothing an agent needs in order to call it correctly or interpret the result is missing.

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 baseline is 3. The description adds modest value on top: it states `bookingId` is required and comes from `list_bookings`, and it explains the consequence of `email` (magic link, `magicLinkSent: true`) more concretely than the schema wording. The `sessionToken` parameter is left unaddressed in the description, which keeps it from a 5.

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?

Opens with a specific verb+resource ("Returns the full details of one existing booking") and enumerates the returned fields: hotel, dates, rooms, guests, contact person, total price, payment status, cancellation policy. It is clearly separable from siblings: `list_bookings` is named as the source of the ID, `cancel_booking` is named as the mutation counterpart, and the credit-line statement endpoint is distinguished from the `CREDIT_LINE` status value.

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

Usage Guidelines5/5

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

Gives explicit when-to-use: read fee/refund terms BEFORE cancelling, with the reason stated ("`cancel_booking` itself does not return a fee preview"). Also covers the precondition branch (signed-in session required, guest sessions cannot view) and the fallback path (pass `email` when unauthenticated), so the agent knows both the trigger and the alternative.

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