Skip to main content
Glama

Book and pay for a ride

book_and_pay_transfer

Book an airport transfer and pay for it now with a Stripe shared payment token (spt_...) the traveller approved, for example from their Link wallet. CHARGES the traveller. Before calling: get the exact price with get_transfer_quote, tell the traveller the price and the cancellation terms (get_booking_terms), and get their explicit yes; pass that price as approved_total_usd. Needs every flight number and time the ride has, and the traveller's name, email and phone. An identical ride that is already paid is reported, never charged twice. Returns the booking reference; the confirmation email follows.

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": {
      "destination": "<destination>",
      "trip_type": "<trip_type>",
      "passengers": "<passengers>",
      "guest": "<guest>",
      "approved_total_usd": "<approved_total_usd>",
      "shared_payment_token": "<shared_payment_token>"
    },
    "name": "book_and_pay_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
guestYesThe traveller the booking is for
directionNoRequired for a one-way
trip_typeYes
arrival_atNoFlight arrival at MBJ, "YYYY-MM-DDTHH:MM" Jamaica time
passengersYes
destinationYesHotel or villa name, or id from find_transfer_destination
departure_atNoHotel pickup for the flight home, "YYYY-MM-DDTHH:MM" Jamaica time. If you only know the flight time, pass departure_flight_at instead
arrival_flightNoArrival flight number, e.g. AA1234
departure_flightNoDeparture flight number
special_requestsNoOptional note for the driver, e.g. a car seat
approved_total_usdYesThe total in USD the traveller approved; must equal the price from get_transfer_quote
departure_flight_atNoFlight home departs MBJ, "YYYY-MM-DDTHH:MM" Jamaica time; the pickup is set from it for this hotel, 3 hours 30 minutes earlier or more from hotels far from MBJ
shared_payment_tokenYesStripe shared payment token (spt_...) granted to MAPL Tours Jamaica for at least this amount in USD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / departure_flight_at / description
      Previous value: -"Flight home departs MBJ, \"YYYY-MM-DDTHH:MM\" Jamaica time; pickup is set 3 hours 30 minutes earlier"New value: +"Flight home departs MBJ, \"YYYY-MM-DDTHH:MM\" Jamaica time; the pickup is set from it for this hotel, 3 hours 30 minutes earlier or more from hotels far from MBJ"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover only the read/write and open-world profile; the description adds the substantive behavior — that money is captured, that the approved total must match the quote, that duplicate paid rides are reported rather than double-charged, and that a booking reference is returned with the email to follow. The dedupe statement is a domain-level guard rather than a claim of call idempotency, so it does not conflict with 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences ordered as purpose, cost warning, prerequisites, data needs, then return value — nothing is buried. A few phrases restate schema descriptions (flight numbers, guest contact details), costing it the top score, but there is no filler.

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 13-parameter, nested-object, payment-capturing mutation with no output schema, the description supplies the prerequisite chain, the monetary guard, the dedupe behavior, and the return value. An agent has everything needed to call it safely and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 85%, so the schema already explains most fields including the approved_total_usd/quote equality. The description reinforces which data is mandatory (every flight number and time, traveller name/email/phone) but adds no format or syntax detail beyond the schema, making the baseline 3 appropriate.

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 pair (book an airport transfer) plus the distinguishing twist that it also charges payment via a Stripe spt_ token. The verb 'CHARGES' is capitalized and front-loaded, so an agent immediately knows this is a book-and-capture operation, not just a reservation.

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?

Gives an explicit pre-call sequence with named siblings: get_transfer_quote for price, get_booking_terms for cancellation terms, then obtain the traveller's explicit yes. It stops short of naming the non-payment alternative (start_transfer_booking) as the path to take when no token exists, so the exclusion is implied 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