Decode a PNR
decode_pnrDecode a raw PNR into a readable itinerary (text) and structured JSON: passengers, flights, airports, terminals, times, flight duration, airline locators. Each decode with flights counts towards the monthly limit of the KeyFlight subscription, as in the PNR API.
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": "decode_pnr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The PNR as shown by the GDS (Amadeus, Sabre, Galileo/Apollo, Worldspan), up to 20000 characters. | |
| view | No | Layout of the itinerary text. Default: table. | |
| date_format | No | "short" (18 Jun 2026) or "numeric" (18.06.2026). | |
| time_format | No | 24 or 12 hour time. Default: 24. |