Make a PRO ticket PDF
make_ticketMake a PRO e-ticket PDF (Expedia style: PNR, airline logos, class, optional price) from a raw PNR and return a link to the PDF. Passenger names and the PNR code come from the text unless given here. Included in the KeyFlight subscription.
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": {
"text": "<text>"
},
"name": "make_ticket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pnr | No | Booking code printed on the ticket, 5–8 letters and digits. Default: the one in the text, or a random one. | |
| logo | No | Logo in the ticket header. Default: none. | |
| text | Yes | The PNR as shown by the GDS (Amadeus, Sabre, Galileo/Apollo, Worldspan), up to 20000 characters. | |
| price | No | Total price printed on the ticket, e.g. "1200.50". Default: no price on the ticket. | |
| currency | No | Currency next to the price, e.g. "USD", "€". Default: "$". | |
| passengers | No | Passenger names as on the ticket, e.g. "SMITH/JOHN MR". Default: the names in the PNR. | |
| date_format | No | "short" or "numeric". | |
| time_format | No | 24 or 12 hour time. Default: 24. | |
| booking_class | No | Default: the cabin of the first flight's booking class. |