Get Guest Booking History
get_guest_profileRetrieve 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
| Name | Required | Description | Default |
|---|---|---|---|
| guest_email | Yes | Guest email address to look up past and upcoming reservations within the authenticated tenant's portfolio. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |