Skip to main content
Glama

Get Guest Booking History

get_guest_profile
Read-onlyIdempotent
Retrieve a guest's multi-stay booking history (up to 10 most recent reservations) within an authenticated tenant's property portfolio.

Requires tenant authentication via the `X-Tenant-Key` header.

When to use:
    - Use ONLY when an authenticated property manager or tenant agent (`X-Tenant-Key` header present) needs to list all past and upcoming stays for a returning guest by `guest_email`.
When NOT to use:
    - Do NOT use `get_guest_profile` on public unauthenticated guest sessions (it will reject requests without `X-Tenant-Key`).
    - Do NOT use `get_guest_profile` to look up a single reservation's live PMS details by booking ID—use `get_booking_details` with `booking_id` and `guest_email` instead.

Args:
    guest_email: Guest email address

Returns:
    JSON object with `guest_email`, `total_bookings` count, and `bookings` array (`booking_id`, `pms_booking_id`, `unit_id`, `check_in`, `check_out`, `guests`, `status`, `booked_at`).

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": {
      "guest_email": "<guest_email>"
    },
    "name": "get_guest_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
guest_emailYesGuest email address to look up past and upcoming reservations within the authenticated tenant's portfolio.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / guest_email / description
      Added value: +"Guest email address to look up past and upcoming reservations within the authenticated tenant's portfolio."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, but the description adds materially new behavior: the X-Tenant-Key auth requirement, that requests without it are rejected, and that results are capped at 10 reservations. These are operational facts an agent cannot recover from the annotations or schema.

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 the core purpose and well sectioned into when/when-not/args/returns, which makes it easy to scan. It loses a point for the 'Returns' block, which duplicates the existing output schema, and for repeating the X-Tenant-Key requirement in both the opening and the usage section.

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?

For a single-parameter read tool with full annotations and an output schema, the description covers purpose, auth, and exclusion conditions thoroughly. It is only slightly over-complete in re-explaining return fields that the output schema already defines.

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 100% and the single guest_email parameter is already described there in nearly identical terms. The description restates 'Guest email address' without adding format, normalization, or matching behavior (e.g., case sensitivity or partial match), so it adds little beyond the schema — baseline 3.

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 ('Retrieve a guest's multi-stay booking history') plus the scope limits (10 most recent reservations, authenticated tenant's portfolio). An agent can distinguish this from sibling lookups like get_booking_details without opening either schema.

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?

Explicit 'When to use' and 'When NOT to use' sections name the auth precondition and route the agent to the alternative ('use get_booking_details with booking_id and guest_email instead'). The condition selecting the sibling is stated, not inferred.

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