a2bflight fares

Cheap flight fares by route and date, each with the day it was found, and where a group can meet.

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
96%
Vollständigkeit des Schemas
96%
Qualität der Benennung
84%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~6,185Tokens (Tool-Definitionen)
~14.1 KBTypische Antwortgröße
Erhebliche Auswirkung auf die Aufmerksamkeit (4.83% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "fares": {
      "url": "https://mcp.a2bflight.com/mcp"
    }
  }
}

Remote-Endpunkte

https://mcp.a2bflight.com/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (5)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢cheapest_routes(from, to, max_price, month, limit)

Use this when someone asks where they can fly cheaply from a city, or for flight deals under a budget or in a month. Returns the cheapest fare on each route with fares from an origin (or into a destination), cheapest one-way first, each with its cheapest round trip of a 3 to 21 day stay in `return` when the route has one. Filter by a maximum price and a departure month here rather than by reading the list; both apply to the one-way. Prices are for one adult in economy; each fare carries found_at, the day it was found (or checked, the day its route was last checked, when it has none), and a one-way may carry typical_price and pct_below_typical.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "where the flights leave from: origin IATA airport or city code (NYC covers JFK, LGA and EWR); give from, to or both"
    },
    "to": {
      "type": "string",
      "description": "where the flights land: destination IATA airport or city code"
    },
    "max_price": {
      "type": "number",
      "description": "keep only fares at or under this amount, in the currency the results carry"
    },
    "month": {
      "type": "string",
      "description": "YYYY-MM: the cheapest fare departing in that month; needs from"
    },
    "limit": {
      "type": "integer",
      "description": "how many routes to return, 1 to 20; 10 when omitted"
    }
  },
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "currency": {
      "type": "string"
    },
    "routes": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "trip": {
            "type": "string",
            "description": "one-way or return"
          },
          "depart_date": {
            "type": "string"
          },
          "return_date": {
            "type": "string"
          },
          "month": {
            "type": "string",
            "description": "YYYY-MM, on a per-month row that has no single date"
          },
          "departs": {
            "type": "string",
            "description": "local departure time with the airport's offset"
          },
          "lands": {
            "type": "string",
            "description": "local arrival time with the airport's offset"
          },
          "carrier": {
            "type": "string"
          },
          "carrier_name": {
            "type": "string"
          },
          "flight": {
            "type": "string"
          },
          "stops": {
            "type": [
              "null",
              "integer"
            ],
            "description": "connections; on a return, both directions together"
          },
          "duration": {
            "type": "string",
            "description": "flying time; on a return, both directions together"
          },
          "price": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "travellers": {
            "type": "integer"
          },
          "cabin": {
            "type": "string"
          },
          "found_at": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
          },
          "checked": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
          },
          "typical_price": {
            "type": "number",
            "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
          },
          "pct_below_typical": {
            "type": "integer",
            "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
          },
          "ref": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "description": "the route's page on a2bflight.com — give the user this link first"
          },
          "book_url": {
            "type": "string",
            "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
          },
          "return": {
            "type": [
              "null",
              "object"
            ],
            "properties": {
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              },
              "trip": {
                "type": "string",
                "description": "one-way or return"
              },
              "depart_date": {
                "type": "string"
              },
              "return_date": {
                "type": "string"
              },
              "month": {
                "type": "string",
                "description": "YYYY-MM, on a per-month row that has no single date"
              },
              "departs": {
                "type": "string",
                "description": "local departure time with the airport's offset"
              },
              "lands": {
                "type": "string",
                "description": "local arrival time with the airport's offset"
              },
              "carrier": {
                "type": "string"
              },
              "carrier_name": {
                "type": "string"
              },
              "flight": {
                "type": "string"
              },
              "stops": {
                "type": [
                  "null",
                  "integer"
                ],
                "description": "connections; on a return, both directions together"
              },
              "duration": {
                "type": "string",
                "description": "flying time; on a return, both directions together"
              },
              "price": {
                "type": "number"
              },
              "currency": {
                "type": "string"
              },
              "travellers": {
                "type": "integer"
              },
              "cabin": {
                "type": "string"
              },
              "found_at": {
                "type": "string",
                "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
              },
              "checked": {
                "type": "string",
                "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
              },
              "typical_price": {
                "type": "number",
                "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
              },
              "pct_below_typical": {
                "type": "integer",
                "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
              },
              "ref": {
                "type": "string"
              },
              "page_url": {
                "type": "string",
                "description": "the route's page on a2bflight.com — give the user this link first"
              },
              "book_url": {
                "type": "string",
                "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
              }
            },
            "description": "the route's cheapest round trip of a 3 to 21 day stay; absent when the route has none, and the route's page_url then offers a return search",
            "required": [
              "from",
              "to",
              "trip",
              "price",
              "currency",
              "travellers",
              "cabin",
              "checked",
              "page_url"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "from",
          "to",
          "trip",
          "price",
          "currency",
          "travellers",
          "cabin",
          "checked",
          "page_url"
        ],
        "additionalProperties": false
      }
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "routes"
  ],
  "additionalProperties": false
}
🟢find_airports(query, near)

Look up airports and city codes by name, or list the airports near an airport code. Use it to turn a city name into the IATA code a flight search with the other tools takes.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "a city or airport name or the start of one; give this or near"
    },
    "near": {
      "type": "string",
      "description": "an IATA airport code, to list the airports near it; give this or query"
    }
  },
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "places": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "metro": {
            "type": "boolean",
            "description": "true for a city code that covers several airports"
          },
          "airports": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "distance_km": {
            "type": [
              "null",
              "integer"
            ]
          }
        },
        "required": [
          "code",
          "city",
          "country"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "places"
  ],
  "additionalProperties": false
}
🟢meet_link(members, to, out, back, mode)

A link to a2bflight.com's group page for people flying from different homes to meet in one place. Use it when the user already knows where; where_to_meet when they ask where. Without dates it picks the weekend, of the next eight, whose round trips cover everyone for the lowest total, and returns each fare and the total; with dates it returns no price, and the page shows each person's cheapest fare for those dates or the closest. A warning says why the fares are a poor option and what to try instead: pass it on.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "members": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "home": {
            "type": "string",
            "description": "the person's home IATA airport, such as JFK — an airport, not a city code"
          },
          "adults": {
            "type": "integer",
            "description": "how many adults fly from this home together; omit for 1"
          }
        },
        "required": [
          "home"
        ],
        "additionalProperties": false
      },
      "description": "2 to 8 people, each flying from their own home; person 1 first"
    },
    "to": {
      "type": "string",
      "description": "the IATA airport where they all meet — an airport, not a city code"
    },
    "out": {
      "type": "string",
      "description": "YYYY-MM-DD: the day they meet; leave out and back both empty for a suggested long weekend"
    },
    "back": {
      "type": "string",
      "description": "YYYY-MM-DD: the day everyone flies home"
    },
    "mode": {
      "type": "string",
      "description": "cheapest_total (the default: the lowest sum), fairest (the lowest dearest ticket), least_travel (the least flying time) or earliest_together (everyone landed soonest)"
    }
  },
  "required": [
    "members",
    "to"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "meet_url": {
      "type": "string",
      "description": "the group's page on a2bflight.com with everyone filled in — give the user this link"
    },
    "members": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "home": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "adults": {
            "type": "integer"
          }
        },
        "required": [
          "home",
          "city",
          "adults"
        ],
        "additionalProperties": false
      }
    },
    "to": {
      "type": "string"
    },
    "to_city": {
      "type": "string"
    },
    "out": {
      "type": "string"
    },
    "back": {
      "type": "string"
    },
    "dates": {
      "type": "string",
      "description": "asked: the user's dates; priced: the weekend of the next eight whose round trips cover everyone, cheapest summed; suggested: no weekend does, so a long weekend three weeks out, whose page links each person to a search for those dates"
    },
    "total": {
      "type": "number",
      "description": "on priced dates, the fares added up; absent when anyone is more than one adult or the currencies differ"
    },
    "currency": {
      "type": "string"
    },
    "fares": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "trip": {
            "type": "string",
            "description": "one-way or return"
          },
          "depart_date": {
            "type": "string"
          },
          "return_date": {
            "type": "string"
          },
          "month": {
            "type": "string",
            "description": "YYYY-MM, on a per-month row that has no single date"
          },
          "departs": {
            "type": "string",
            "description": "local departure time with the airport's offset"
          },
          "lands": {
            "type": "string",
            "description": "local arrival time with the airport's offset"
          },
          "carrier": {
            "type": "string"
          },
          "carrier_name": {
            "type": "string"
          },
          "flight": {
            "type": "string"
          },
          "stops": {
            "type": [
              "null",
              "integer"
            ],
            "description": "connections; on a return, both directions together"
          },
          "duration": {
            "type": "string",
            "description": "flying time; on a return, both directions together"
          },
          "price": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "travellers": {
            "type": "integer"
          },
          "cabin": {
            "type": "string"
          },
          "found_at": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
          },
          "checked": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
          },
          "typical_price": {
            "type": "number",
            "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
          },
          "pct_below_typical": {
            "type": "integer",
            "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
          },
          "ref": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "description": "the route's page on a2bflight.com — give the user this link first"
          },
          "book_url": {
            "type": "string",
            "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
          }
        },
        "required": [
          "from",
          "to",
          "trip",
          "price",
          "currency",
          "travellers",
          "cabin",
          "checked",
          "page_url"
        ],
        "additionalProperties": false
      },
      "description": "on priced dates, each person's cheapest round trip, in the order of members"
    },
    "warning": {
      "type": "string",
      "description": "why these fares are a poor option and what to try instead — tell the user both"
    }
  },
  "required": [
    "meet_url",
    "members",
    "to",
    "to_city",
    "out",
    "back",
    "dates"
  ],
  "additionalProperties": false
}
🟢route_fares(from, to, month)

Use this when someone asks about flights, flight prices, airfare or cheap plane tickets between two airports or cities (for example Seoul to Tokyo; find_airports turns a city into its airports). Returns the fares for one airport pair: the cheapest one-way, the cheapest round trip of a 3 to 21 day stay, a fare calendar of the cheapest one-way by departure date, the cheapest one-way in each month, and the cheapest round trips. A one-way may carry typical_price, the route's typical one-way fare, and pct_below_typical. When the pair has no fares yet, it looks the route up; if the fares are not back in time it answers status "pricing", and asking again a minute later reads them.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "where the flight leaves from: origin IATA airport code (an airport, not a city code)"
    },
    "to": {
      "type": "string",
      "description": "where the flight lands: destination IATA airport code"
    },
    "month": {
      "type": "string",
      "description": "YYYY-MM: keep only departure dates in that month"
    }
  },
  "required": [
    "from",
    "to"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "held: fares below; pricing: the route is still being looked up, ask again in a minute; none: no fares for it yet"
    },
    "currency": {
      "type": "string"
    },
    "cheapest": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "trip": {
          "type": "string",
          "description": "one-way or return"
        },
        "depart_date": {
          "type": "string"
        },
        "return_date": {
          "type": "string"
        },
        "month": {
          "type": "string",
          "description": "YYYY-MM, on a per-month row that has no single date"
        },
        "departs": {
          "type": "string",
          "description": "local departure time with the airport's offset"
        },
        "lands": {
          "type": "string",
          "description": "local arrival time with the airport's offset"
        },
        "carrier": {
          "type": "string"
        },
        "carrier_name": {
          "type": "string"
        },
        "flight": {
          "type": "string"
        },
        "stops": {
          "type": [
            "null",
            "integer"
          ],
          "description": "connections; on a return, both directions together"
        },
        "duration": {
          "type": "string",
          "description": "flying time; on a return, both directions together"
        },
        "price": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "travellers": {
          "type": "integer"
        },
        "cabin": {
          "type": "string"
        },
        "found_at": {
          "type": "string",
          "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
        },
        "checked": {
          "type": "string",
          "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
        },
        "typical_price": {
          "type": "number",
          "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
        },
        "pct_below_typical": {
          "type": "integer",
          "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
        },
        "ref": {
          "type": "string"
        },
        "page_url": {
          "type": "string",
          "description": "the route's page on a2bflight.com — give the user this link first"
        },
        "book_url": {
          "type": "string",
          "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
        }
      },
      "description": "the cheapest one-way; absent when the pair has no dated one-way",
      "required": [
        "from",
        "to",
        "trip",
        "price",
        "currency",
        "travellers",
        "cabin",
        "checked",
        "page_url"
      ],
      "additionalProperties": false
    },
    "cheapest_return": {
      "type": [
        "null",
        "object"
      ],
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "trip": {
          "type": "string",
          "description": "one-way or return"
        },
        "depart_date": {
          "type": "string"
        },
        "return_date": {
          "type": "string"
        },
        "month": {
          "type": "string",
          "description": "YYYY-MM, on a per-month row that has no single date"
        },
        "departs": {
          "type": "string",
          "description": "local departure time with the airport's offset"
        },
        "lands": {
          "type": "string",
          "description": "local arrival time with the airport's offset"
        },
        "carrier": {
          "type": "string"
        },
        "carrier_name": {
          "type": "string"
        },
        "flight": {
          "type": "string"
        },
        "stops": {
          "type": [
            "null",
            "integer"
          ],
          "description": "connections; on a return, both directions together"
        },
        "duration": {
          "type": "string",
          "description": "flying time; on a return, both directions together"
        },
        "price": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "travellers": {
          "type": "integer"
        },
        "cabin": {
          "type": "string"
        },
        "found_at": {
          "type": "string",
          "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
        },
        "checked": {
          "type": "string",
          "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
        },
        "typical_price": {
          "type": "number",
          "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
        },
        "pct_below_typical": {
          "type": "integer",
          "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
        },
        "ref": {
          "type": "string"
        },
        "page_url": {
          "type": "string",
          "description": "the route's page on a2bflight.com — give the user this link first"
        },
        "book_url": {
          "type": "string",
          "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
        }
      },
      "description": "the cheapest round trip of a 3 to 21 day stay; absent when the pair has none, and page_url then offers a return search",
      "required": [
        "from",
        "to",
        "trip",
        "price",
        "currency",
        "travellers",
        "cabin",
        "checked",
        "page_url"
      ],
      "additionalProperties": false
    },
    "dates": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "trip": {
            "type": "string",
            "description": "one-way or return"
          },
          "depart_date": {
            "type": "string"
          },
          "return_date": {
            "type": "string"
          },
          "month": {
            "type": "string",
            "description": "YYYY-MM, on a per-month row that has no single date"
          },
          "departs": {
            "type": "string",
            "description": "local departure time with the airport's offset"
          },
          "lands": {
            "type": "string",
            "description": "local arrival time with the airport's offset"
          },
          "carrier": {
            "type": "string"
          },
          "carrier_name": {
            "type": "string"
          },
          "flight": {
            "type": "string"
          },
          "stops": {
            "type": [
              "null",
              "integer"
            ],
            "description": "connections; on a return, both directions together"
          },
          "duration": {
            "type": "string",
            "description": "flying time; on a return, both directions together"
          },
          "price": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "travellers": {
            "type": "integer"
          },
          "cabin": {
            "type": "string"
          },
          "found_at": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
          },
          "checked": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
          },
          "typical_price": {
            "type": "number",
            "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
          },
          "pct_below_typical": {
            "type": "integer",
            "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
          },
          "ref": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "description": "the route's page on a2bflight.com — give the user this link first"
          },
          "book_url": {
            "type": "string",
            "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
          }
        },
        "required": [
          "from",
          "to",
          "trip",
          "price",
          "currency",
          "travellers",
          "cabin",
          "checked",
          "page_url"
        ],
        "additionalProperties": false
      },
      "description": "the cheapest one-way fares by departure date, cheapest first"
    },
    "months": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "trip": {
            "type": "string",
            "description": "one-way or return"
          },
          "depart_date": {
            "type": "string"
          },
          "return_date": {
            "type": "string"
          },
          "month": {
            "type": "string",
            "description": "YYYY-MM, on a per-month row that has no single date"
          },
          "departs": {
            "type": "string",
            "description": "local departure time with the airport's offset"
          },
          "lands": {
            "type": "string",
            "description": "local arrival time with the airport's offset"
          },
          "carrier": {
            "type": "string"
          },
          "carrier_name": {
            "type": "string"
          },
          "flight": {
            "type": "string"
          },
          "stops": {
            "type": [
              "null",
              "integer"
            ],
            "description": "connections; on a return, both directions together"
          },
          "duration": {
            "type": "string",
            "description": "flying time; on a return, both directions together"
          },
          "price": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "travellers": {
            "type": "integer"
          },
          "cabin": {
            "type": "string"
          },
          "found_at": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
          },
          "checked": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
          },
          "typical_price": {
            "type": "number",
            "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
          },
          "pct_below_typical": {
            "type": "integer",
            "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
          },
          "ref": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "description": "the route's page on a2bflight.com — give the user this link first"
          },
          "book_url": {
            "type": "string",
            "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
          }
        },
        "required": [
          "from",
          "to",
          "trip",
          "price",
          "currency",
          "travellers",
          "cabin",
          "checked",
          "page_url"
        ],
        "additionalProperties": false
      },
      "description": "the cheapest one-way fare in each month"
    },
    "returns": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "trip": {
            "type": "string",
            "description": "one-way or return"
          },
          "depart_date": {
            "type": "string"
          },
          "return_date": {
            "type": "string"
          },
          "month": {
            "type": "string",
            "description": "YYYY-MM, on a per-month row that has no single date"
          },
          "departs": {
            "type": "string",
            "description": "local departure time with the airport's offset"
          },
          "lands": {
            "type": "string",
            "description": "local arrival time with the airport's offset"
          },
          "carrier": {
            "type": "string"
          },
          "carrier_name": {
            "type": "string"
          },
          "flight": {
            "type": "string"
          },
          "stops": {
            "type": [
              "null",
              "integer"
            ],
            "description": "connections; on a return, both directions together"
          },
          "duration": {
            "type": "string",
            "description": "flying time; on a return, both directions together"
          },
          "price": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "travellers": {
            "type": "integer"
          },
          "cabin": {
            "type": "string"
          },
          "found_at": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
          },
          "checked": {
            "type": "string",
            "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
          },
          "typical_price": {
            "type": "number",
            "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
          },
          "pct_below_typical": {
            "type": "integer",
            "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
          },
          "ref": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "description": "the route's page on a2bflight.com — give the user this link first"
          },
          "book_url": {
            "type": "string",
            "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
          }
        },
        "required": [
          "from",
          "to",
          "trip",
          "price",
          "currency",
          "travellers",
          "cabin",
          "checked",
          "page_url"
        ],
        "additionalProperties": false
      },
      "description": "the cheapest round trips, any stay, cheapest first"
    },
    "page_url": {
      "type": "string"
    }
  },
  "required": [
    "from",
    "to",
    "status",
    "page_url"
  ],
  "additionalProperties": false
}
🟢where_to_meet(homes, month, nights, limit)

Where 2 to 8 people flying from different homes can meet cheapest: the places every home has a route into, each with a weekend that has a round trip for everyone, each person's fare, the total, and meet_url — the group's page with all of it filled in. A place with a warning is a poor option: say why, and offer the better pick it names. Prices are for one adult in economy; each fare carries found_at, the day it was found (or checked, the day its route was last checked, when it has none).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "homes": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string"
      },
      "description": "2 to 8 home airports or city codes, one per person, person 1 first (NYC covers JFK, LGA and EWR)"
    },
    "month": {
      "type": "string",
      "description": "YYYY-MM: meet on a weekend in that month; the next eight weekends from two weeks out when omitted"
    },
    "nights": {
      "type": "integer",
      "description": "nights they stay, 1 to 14; 3 (Friday to Monday) when omitted"
    },
    "limit": {
      "type": "integer",
      "description": "how many places to return, 1 to 8; 5 when omitted"
    }
  },
  "required": [
    "homes"
  ],
  "additionalProperties": false
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "places": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "the airport everyone flies into"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "out": {
            "type": "string",
            "description": "the Friday they meet"
          },
          "back": {
            "type": "string",
            "description": "the day home"
          },
          "leave_from": {
            "type": "string",
            "description": "the earliest day a fare below leaves; each lands by out"
          },
          "home_within_days": {
            "type": "integer",
            "description": "a fare below may fly home this many days either side of back"
          },
          "total": {
            "type": "number",
            "description": "the round trips below added up, one adult each; absent when they are in different currencies"
          },
          "currency": {
            "type": "string"
          },
          "fares": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "trip": {
                  "type": "string",
                  "description": "one-way or return"
                },
                "depart_date": {
                  "type": "string"
                },
                "return_date": {
                  "type": "string"
                },
                "month": {
                  "type": "string",
                  "description": "YYYY-MM, on a per-month row that has no single date"
                },
                "departs": {
                  "type": "string",
                  "description": "local departure time with the airport's offset"
                },
                "lands": {
                  "type": "string",
                  "description": "local arrival time with the airport's offset"
                },
                "carrier": {
                  "type": "string"
                },
                "carrier_name": {
                  "type": "string"
                },
                "flight": {
                  "type": "string"
                },
                "stops": {
                  "type": [
                    "null",
                    "integer"
                  ],
                  "description": "connections; on a return, both directions together"
                },
                "duration": {
                  "type": "string",
                  "description": "flying time; on a return, both directions together"
                },
                "price": {
                  "type": "number"
                },
                "currency": {
                  "type": "string"
                },
                "travellers": {
                  "type": "integer"
                },
                "cabin": {
                  "type": "string"
                },
                "found_at": {
                  "type": "string",
                  "description": "YYYY-MM-DD: the day this fare was found; absent when only checked is known"
                },
                "checked": {
                  "type": "string",
                  "description": "YYYY-MM-DD: the day this route was last checked; found_at, when present, is the day this fare was found"
                },
                "typical_price": {
                  "type": "number",
                  "description": "one-way only: the route's typical one-way fare, the median of each departure date's cheapest one-way, in currency"
                },
                "pct_below_typical": {
                  "type": "integer",
                  "description": "one-way only: how many percent this fare is under typical_price; present only when 10 or more"
                },
                "ref": {
                  "type": "string"
                },
                "page_url": {
                  "type": "string",
                  "description": "the route's page on a2bflight.com — give the user this link first"
                },
                "book_url": {
                  "type": "string",
                  "description": "opens the seller's booking page for this fare, where the final price and bag fees appear at checkout"
                }
              },
              "required": [
                "from",
                "to",
                "trip",
                "price",
                "currency",
                "travellers",
                "cabin",
                "checked",
                "page_url"
              ],
              "additionalProperties": false
            },
            "description": "each person's cheapest round trip for these dates, in the order of homes"
          },
          "meet_url": {
            "type": "string",
            "description": "the group's page with everyone, the place and the dates filled in — give the user this link"
          },
          "warning": {
            "type": "string",
            "description": "why this place is a poor option, and the better pick in this list — tell the user both"
          }
        },
        "required": [
          "to",
          "city",
          "country",
          "out",
          "back",
          "leave_from",
          "fares",
          "meet_url"
        ],
        "additionalProperties": false
      }
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "places"
  ],
  "additionalProperties": false
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet5 Tools
verifiziertVersion nicht aufgezeichnet5 Tools
verifiziertVersion nicht aufgezeichnet5 Tools
verifiziertVersion nicht aufgezeichnet3 Tools
verifiziertVersion nicht aufgezeichnet3 Tools
verifiziertVersion nicht aufgezeichnet3 Tools