Skip to main content
Glama

Zestli

Get Booking Status

get_booking_status
Read-onlyIdempotent

Use this when the user asks about an existing booking (its booking_id, or the ZST-… reference from Zestli's emails and pages): current lifecycle status, per-segment supplier state, and the real financial summary; for the signed-in user who owns it, also the lead guest's name. Read-only. Money fields are minor units; *_major fields are readable major-unit amounts. Each part states its monetary currency; names do not define units or FX. A refund_decision is an agreed amount, not a payment receipt; null totals or refund_owed are unknown, not zero or the original price minus confirmed refunds. An uncertain payment effect (being_checked) must not be retried as a new cancellation. This read neither schedules recovery nor sends notifications; an unknown refund record does not establish that Zestli is working on it or will email the user. A person someone else paid for reads it by booking_id or reference too (ask_someone_to_pay returns both once it is paid): paid_by_someone_else then gives the amount they paid, never their card or refunds. Otherwise payment_outcome states whether the card was charged or refunded, from Zestli's payment records; unknown means not established. The proposal_id initiate_booking returned works too: it reads the booking its checkout created, or status not_booked while checkout hasn't booked anything.

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": {
      "request": "<request>"
    },
    "name": "get_booking_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesInput for checking booking status.

Output Schema

NameRequiredDescriptionDefault
partsNo
statusYes
messageNo
requestNo
segmentsNo
timezoneNo
booking_idYes
error_codeNo
is_sandboxYes
manage_urlNo
read_scopeNo
cancelled_byNo
date_changesNo
lead_guest_nameNo
package_choicesNo
payment_outcomeNo
weather_choicesNo
booking_referenceNo
financial_summaryNo
cancellation_reasonNo
supplier_referencesNo
paid_by_someone_elseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses real operational behavior: this read neither schedules recovery nor sends notifications, an unknown refund record does not imply work in progress, and a being_checked payment effect must not be retried as a new cancellation. It also bounds visibility (only bookings this connection owns; paid_by_someone_else never exposes card or refund data). These are genuine behavioral caveats the readOnly/idempotent hints cannot convey.

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?

The trigger condition is correctly front-loaded, but the body is a single dense paragraph of run-on clauses where semantic caveats (minor units, refund_decision, null totals, being_checked) blur together without separation. Most sentences carry real content, though the phrasing is hard to parse in one pass and some points are restated in different words.

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 one-parameter read with an output schema, the definition covers the hard parts: accepted identifier forms, ownership scoping, the third-party payer case, and the not_booked state. It spends a large share of its length on return-field semantics that the output schema already partially covers, but the interpretive caveats (null is unknown, not zero) are not schema-derivable and are appropriately included.

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% and the schema already documents booking_id as an id or ZST- reference, so the baseline is 3. The description adds value by revealing that a proposal_id from initiate_booking is also accepted and by describing the not_booked outcome while checkout has not created anything, which is information the schema does not carry.

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 description opens with a specific verb and resource ("asks about an existing booking") and immediately enumerates what comes back: lifecycle status, per-segment supplier state, financial summary, and lead guest name for owners. It is clearly distinguishable from sibling mutation tools like cancel_booking or confirm_booking because it is framed as a read tied to an existing booking identifier or ZST- reference.

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

Usage Guidelines4/5

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

It gives an explicit trigger ("Use this when the user asks about an existing booking") and clarifies the accepted entry points, including the proposal_id from initiate_booking and the ask_someone_to_pay path for third-party payers. It stops short of naming alternative siblings to use instead when the user actually wants to change or cancel a booking, so the exclusion guidance is implicit rather than stated.

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