Skip to main content
Glama

MAQAMI Travel

post_rates_book

Overview

Step 2 of 2 in the booking flow. Complete the booking by providing guest information and payment details. This confirms the reservation and creates the final booking.

When to Use

  • After prebook - Call this after creating a prebook session

  • Payment processing - Submit payment information to confirm booking

  • Booking confirmation - Finalize the reservation

What You Get

  • Booking ID - Unique identifier for the confirmed booking

  • Hotel confirmation code - Reference code from the hotel

  • Complete booking details - Dates, pricing, room information

  • Cancellation policies - Terms for cancelling the booking

  • Guest information - Confirmed guest details

Payment Methods

  • ACC_CREDIT_CARD - Direct credit card payment. In sandbox mode, this can be used to simulate a booking without getting charged.

  • TRANSACTION - Use when using Payment SDK (provide transactionId)

  • WALLET - Wallet payment method

  • CREDIT - Use account credit balance

  • CREDIT_CARD - Credit card payment via secure endpoint. Accepts any credit or debit card, including virtual credit cards. Send card details via https://pci-book.liteapi.travel using the billingInfo object. Contact the team to enable this on your API key.

Testing

When testing sandbox bookings, simply use the ACC_CREDIT_CARD payment method. This allows you to simulate a booking without getting charged.

Required Information

  • Prebook ID - From the prebook step

  • Guest details - First name, last name, and email

  • Payment information - Payment method and details

Quick Start

Provide the prebookId, guest information (firstName, lastName, email), and payment details. Returns confirmed booking with booking ID and confirmation code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guestsYesThis represents a list of all individuals included in the hotel reservation
holderYesInformation on the person responsible for making the payment. This may not necessarily be the traveler
paymentNoSpecifies the payment method for completing the booking
timeoutNo
metadataNoEncapsulates essential metadata for fraud detection and compliance, including IP, location, language, device details, and marketing parameters.
prebookIdYesThis identifier from the pre-booking step is used to confirm a booking rate
customTagsNoOptional bag of up to 5 user-defined key/value labels persisted with the booking. Keys must match `^[A-Z0-9_-]+$` (uppercase letters, digits, `-`, `_`). Values are arbitrary strings up to 255 characters. These labels are returned on booking responses and can be used to filter the list endpoints via the `customTags=KEY:VALUE,KEY2:VALUE2` query parameter.
guestPaymentNoThe payment method used for the transaction. This determines where the money for the booking comes from. Recommended to be added when you are merchant of record to improve the fraud detection system.
clientReferenceNoAn optional client-defined reference ID acts as an idempotency key to prevent duplicate bookings. If a booking already exists with the same client reference, the API will return a 4005 error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly=false/idempotent=false/openWorld, so the description is not carrying the safety profile. It adds real behavioral value beyond that: which payment methods exist, that ACC_CREDIT_CARD is simulation-only in sandbox (no charge), the secure-endpoint requirement for CREDIT_CARD, and the fields returned on success. It doesn't call out auth/permission requirements or rate limits.

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?

Well front-loaded with the step and flow position, but the markdown sections overlap: 'Payment Methods' and 'Testing' repeat the same sandbox guidance, and 'Required Information' and 'Quick Start' restate the same inputs. Several sentences could be merged without losing meaning.

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?

With no output schema, the 'What You Get' section usefully describes the return shape (booking ID, hotel confirmation code, policies). For a 9-parameter mutation with nested objects, it covers the required inputs and payment semantics adequately, though guest/holder field detail is left to the schema.

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 89%, so the baseline is 3, but the description goes further by enumerating the payment method values (ACC_CREDIT_CARD, TRANSACTION, WALLET, CREDIT, CREDIT_CARD) for the `payment` parameter, which has no type or enum in the schema. This materially compensates for the zero-enum schema and clarifies required inputs.

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+resource (complete a booking by confirming a rate) and explicitly positions itself as 'Step 2 of 2' in the booking flow. This cleanly distinguishes it from post_rates_prebook (step 1) and post_rates_rebook among the many booking-related siblings.

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?

'When to Use' gives clear context (after prebook, to process payment, to confirm a booking) and the flow prerequisites are unambiguous. It does not explicitly contrast with post_rates_rebook, which is the nearest ambiguous sibling, so it stops short of full routing guidance.

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