← WebMCP Directory

Tool tree

react-flightsearch

demoTravel & EventsTools verified
Website
Chrome Labs flight-search demo
Explore capabilities
    searchFlightsAnswer

    Searches for flights with the given parameters.

    View tool JSON
    {
      "name": "searchFlights",
      "kind": "answer",
      "impl": "imperative",
      "description": "Searches for flights with the given parameters.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "origin": {
            "type": "string",
            "description": "City or airport IATA code for the origin. Prefer city IATA codes when a specific airport is not provided. Example: 'RIO' for 'Rio de Janeiro'",
            "pattern": "^[A-Z]{3}$",
            "minLength": 3,
            "maxLength": 3
          },
          "destination": {
            "type": "string",
            "description": "City or airport IATA code for the destination airport. Prefer city IATA codes when a specific airport is not provided. Example: 'RIO' for 'Rio de Janeiro'",
            "pattern": "^[A-Z]{3}$",
            "minLength": 3,
            "maxLength": 3
          },
          "tripType": {
            "type": "string",
            "enum": [
              "one-way",
              "round-trip"
            ],
            "description": "The trip type. Can be \"one-way\" or \"round-trip\"."
          },
          "outboundDate": {
            "type": "string",
            "description": "The outbound date in YYYY-MM-DD format.",
            "format": "date"
          },
          "inboundDate": {
            "type": "string",
            "description": "The inbound date in YYYY-MM-DD format.",
            "format": "date"
          },
          "passengers": {
            "type": "number",
            "description": "The number of passengers."
          }
        },
        "required": [
          "origin",
          "destination",
          "tripType",
          "outboundDate",
          "inboundDate",
          "passengers"
        ]
      }
    }