WebMCP Registry

searchFlights

unverifiedv0.1

Searches for flights with the given parameters.

Updated 6/6/2026 · Created 6/6/2026

Input Schema

{
  "type": "object",
  "required": [
    "origin",
    "destination",
    "tripType",
    "outboundDate",
    "inboundDate",
    "passengers"
  ],
  "properties": {
    "origin": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "maxLength": 3,
      "minLength": 3,
      "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'"
    },
    "tripType": {
      "enum": [
        "one-way",
        "round-trip"
      ],
      "type": "string",
      "description": "The trip type. Can be \"one-way\" or \"round-trip\"."
    },
    "passengers": {
      "type": "number",
      "description": "The number of passengers."
    },
    "destination": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "maxLength": 3,
      "minLength": 3,
      "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'"
    },
    "inboundDate": {
      "type": "string",
      "format": "date",
      "description": "The inbound date in YYYY-MM-DD format."
    },
    "outboundDate": {
      "type": "string",
      "format": "date",
      "description": "The outbound date in YYYY-MM-DD format."
    }
  }
}

Full Contract

{
  "name": "searchFlights",
  "description": "Searches for flights with the given parameters.",
  "inputSchema": {
    "type": "object",
    "required": [
      "origin",
      "destination",
      "tripType",
      "outboundDate",
      "inboundDate",
      "passengers"
    ],
    "properties": {
      "origin": {
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "maxLength": 3,
        "minLength": 3,
        "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'"
      },
      "tripType": {
        "enum": [
          "one-way",
          "round-trip"
        ],
        "type": "string",
        "description": "The trip type. Can be \"one-way\" or \"round-trip\"."
      },
      "passengers": {
        "type": "number",
        "description": "The number of passengers."
      },
      "destination": {
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "maxLength": 3,
        "minLength": 3,
        "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'"
      },
      "inboundDate": {
        "type": "string",
        "format": "date",
        "description": "The inbound date in YYYY-MM-DD format."
      },
      "outboundDate": {
        "type": "string",
        "format": "date",
        "description": "The outbound date in YYYY-MM-DD format."
      }
    }
  }
}

GET /api/tool/googlechromelabs.github.io/webmcp-tools/demos/react-flightsearch/searchFlights