Skip to main content
Glama

Confirm flight price and get checkout link

post_flights_verify
Read-only

Verify a selected flight offer is still available, confirm current price and fare policies, then get the checkout link to complete booking.

Instructions

Overview

Confirm a flight offer is still available and retrieve the latest pricing before proceeding to booking. Returns the checkout link for the verified offer.

When to Use

  • Pre-booking validation - Confirm offer availability after user selects a flight

  • Price confirmation - Show users the guaranteed price

  • Fare rule retrieval - Get the latest cancellation and change policies

What You Get

  • Verified pricing with up-to-date fare breakdown

  • changes (when present) — cabin/fare flags, human-readable messages, and pricing (old / new full OfferPricing) instead of deprecated scalar currency/prices

  • Journey pricing — original (provider/PCC) and display (customer) price breakdown per provider FlattenedJourney

  • Fare family details including name and included amenities

  • Baggage policy for each passenger type and segment

  • Booking terms including cancellation and change fee rules

Key Features

  • Real-time price check: Confirms current availability and price with the provider

  • Updated baggage info: Returns the latest baggage allowances at time of verification

  • Fare rules: Includes cancellation and change fee policies before commitment

Quick Start

Provide the offerId from post_flights_rates search results. The verified offer data gives the customer a booking summary.

Booking

The response includes checkoutUrl (https://book.maqami.co/flights/booking?offerId=...). Flights are booked and paid only on MAQAMI's website: the checkoutUrl opens checkout for this fare, where the customer enters passenger details, pays securely and receives the confirmation. This tool takes no card or passport details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offerIdYesThe offerId from the search results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description usefully adds that no card or passport details are handled here and that booking/payment happens on MAQAMI's website via checkoutUrl, which is context beyond the annotations; however it does not discuss the non-idempotent price-change behavior implied by idempotentHint=false.

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 header structure and front-loaded Overview are good, but content is duplicated across sections: fare rules and baggage are each advertised two to three times ('Fare rule retrieval', 'Booking terms', 'Fare rules'; 'Baggage policy', 'Updated baggage info'), and there is redundancy between 'Quick Start' and 'Booking'. Several sentences do not earn their place.

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?

With no output schema, the description carries the return-value burden and does so thoroughly, enumerating the changes/pricing objects, journey pricing, fare family, baggage and booking terms, and the checkoutUrl flow. An agent has everything needed to call and interpret this one-parameter tool.

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?

With a single parameter and 100% schema coverage, the schema already documents offerId; the description adds provenance by telling the agent to take it from post_flights_rates search results. That is meaningful routing context, though no format or error-handling detail is added.

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 operation (re-verify an existing flight offer's availability and price) plus a concrete downstream artifact (checkoutUrl). It is clearly distinguishable from the sibling search tool post_flights_rates, which is named as the source of the offerId.

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?

The 'When to Use' section enumerates three concrete triggers (pre-booking validation, price confirmation, fare rule retrieval) and 'Quick Start' ties the input to post_flights_rates results, giving clear context. It never states an explicit exclusion or when-not-to-use case (e.g., before an offerId exists), so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.