Skip to main content
Glama

LockTrip Hotels

List My Bookings

list_bookings
Read-only

Lists the authenticated user's existing bookings, filtered by type: UPCOMING (default), COMPLETED, CANCELLED, or PENDING. Needs a registered LockTrip account session; guest sessions from guest_login cannot list bookings. 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). Returns bookings[] (each with bookingId, bookingReferenceId, hotelName, checkIn, checkOut, status, roomCount, createdAt, and totalPrice + currency when the booking records a price) plus totalCount (all matching bookings). Optional paging: page (0-based) and size (max 100); omit both for the full list. Pass a bookingId to get_booking_details or cancel_booking.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 0-based. Omit page and size for the full list.
sizeNoBookings per page (max 100).
typeNoBooking list filter
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).
sessionTokenNoOptional guest-checkout token returned by `guest_login`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description stays consistent while adding behavior annotations don't cover: the email fallback sends a magic link on locktrip.com and returns `magicLinkSent: true`, with nothing shown or changed in the chat. It also documents default filtering (UPCOMING) and paging behavior.

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?

Front-loaded with purpose and filter semantics, then constraints, then return shape, then next-step routing — a logical order with no filler. It runs as one dense block, which is slightly heavy but every clause carries operational information.

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, and the description compensates by enumerating the returned `bookings[]` fields, `totalCount`, and the conditional price fields. Combined with the auth prerequisites and paging rules, an agent has everything needed to call it and interpret the result.

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, but the description adds meaning the schema does not: `type` defaults to UPCOMING, omitting `page` and `size` returns the full list, and `email` is only needed when no session exists. The sessionToken parameter's role is only lightly covered (schema notes it comes from `guest_login`).

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 and resource ("Lists the authenticated user's existing bookings") and immediately scopes it by the `type` filter values. It also names the sibling tools to use downstream (`get_booking_details`, `cancel_booking`), so an agent can separate listing from detail lookup or mutation.

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?

Explicitly states the precondition (registered LockTrip account session) and the exclusion (guest sessions from `guest_login` cannot list bookings), then gives the alternative path: pass `email` to trigger a sign-in link. It also routes the agent onward by telling it to pass a `bookingId` to `get_booking_details` or `cancel_booking`.

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