Skip to main content
Glama

Get Booking Details

get_booking_details
Read-onlyIdempotent
Retrieve live reservation status, stay dates, unit details, and total amount for one specific confirmed booking (`booking_id`).

When to use:
    - Use when a guest or agent has a specific `booking_id` and wants to check its confirmation status, PMS reference, dates, or total amount.
When NOT to use:
    - Do NOT use `get_booking_details` to look up a guest's multi-stay booking history across a property portfolio by email alone—authenticated tenants should use `get_guest_profile` instead.
    - Do NOT use before a booking is confirmed—to check pricing on an unbooked unit, use `get_rate_details`.

Args:
    booking_id:  Vayancy booking ID returned by create_booking
    guest_email: Guest email used when booking (required for public ownership verification)

Returns:
    JSON object with `booking_id`, `pms_booking_id`, `status`, `unit_id`, `unit_name`, `check_in`, `check_out`, `guests`, `guest_name`, `guest_email`, `total_amount`, and `currency`.

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": {
      "booking_id": "<booking_id>"
    },
    "name": "get_booking_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
booking_idYesConfirmed Vayancy booking ID returned by `create_booking`.
guest_emailNoLead guest email address used when booking (required on public sessions to verify booking ownership).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / booking_id / description
      Added value: +"Confirmed Vayancy booking ID returned by `create_booking`."
    • addedInput schema / properties / guest_email / description
      Added value: +"Lead guest email address used when booking (required on public sessions to verify booking ownership)."
  2. Changed1 schema field changed
    • addedInput schema / properties / guest_email
      Added value: +{
      +  "default": "",
      +  "title": "Guest Email",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds non-obvious context such as the requirement that the booking be confirmed and that `guest_email` must be supplied for ownership verification on public sessions. It also lists the returned fields, though those are already represented by the output 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?

The definition is front-loaded with a one-sentence purpose, then cleanly sectioned into when/when-not, args, and returns. The only waste is the Returns block, which restates fields the output schema already provides.

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?

For a two-parameter read tool with full schema coverage, complete annotations, and an output schema, this definition covers the remaining gaps: confirmation prerequisite, ownership verification, and alternatives for other lookup shapes. An agent has everything needed to choose and call it correctly.

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 structured fields already describe both parameters; the description nonetheless adds meaning by tying `booking_id` to `create_booking` as its origin and by explaining that `guest_email` is a required ownership check on public sessions rather than a simple filter. This is meaningful clarification beyond the schema text, though not exhaustive.

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?

The opening sentence names a specific verb (retrieve) and enumerates exactly the resource contents: live reservation status, stay dates, unit details, and total amount for one confirmed booking. It scopes the lookup to a single booking via `booking_id`, which clearly separates it from sibling tools like `search_properties` or `get_guest_profile`.

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?

The definition has explicit 'When to use' and 'When NOT to use' sections, naming two alternatives by name: `get_guest_profile` for multi-stay history by email and `get_rate_details` for unbooked pricing. Each exclusion states the selecting condition, leaving nothing to inference.

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