WebMCP Registry

setFilters

unverifiedv0.1

Sets the filters for flights.

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

Input Schema

{
  "type": "object",
  "properties": {
    "stops": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The list of stop counts to filter by."
    },
    "origins": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Z]{3}$"
      },
      "description": "The list of origin airports to filter by, using the 3 letter IATA code."
    },
    "airlines": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Z]{2}$"
      },
      "description": "The list of airlines IATA codes to filter by."
    },
    "maxPrice": {
      "type": "number",
      "description": "The maximum price."
    },
    "minPrice": {
      "type": "number",
      "description": "The minimum price."
    },
    "flightIds": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The list of flight IDs to filter by."
    },
    "arrivalTime": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The arrival time range in minutes from the start of the day (0-1439). For example, to filter for flights arriving between 9:00 AM and 5:00 PM, you would use [540, 1020]."
    },
    "destinations": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Z]{3}$"
      },
      "description": "The list of destination airports to filter by, using the 3 letter IATA code."
    },
    "departureTime": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The departure time range in minutes from the start of the day (0-1439). For example, to filter for flights departing between 9:00 AM and 5:00 PM, you would use [540, 1020]."
    }
  }
}

Full Contract

{
  "name": "setFilters",
  "description": "Sets the filters for flights.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "stops": {
        "type": "array",
        "items": {
          "type": "number"
        },
        "description": "The list of stop counts to filter by."
      },
      "origins": {
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "description": "The list of origin airports to filter by, using the 3 letter IATA code."
      },
      "airlines": {
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[A-Z]{2}$"
        },
        "description": "The list of airlines IATA codes to filter by."
      },
      "maxPrice": {
        "type": "number",
        "description": "The maximum price."
      },
      "minPrice": {
        "type": "number",
        "description": "The minimum price."
      },
      "flightIds": {
        "type": "array",
        "items": {
          "type": "number"
        },
        "description": "The list of flight IDs to filter by."
      },
      "arrivalTime": {
        "type": "array",
        "items": {
          "type": "number"
        },
        "description": "The arrival time range in minutes from the start of the day (0-1439). For example, to filter for flights arriving between 9:00 AM and 5:00 PM, you would use [540, 1020]."
      },
      "destinations": {
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "description": "The list of destination airports to filter by, using the 3 letter IATA code."
      },
      "departureTime": {
        "type": "array",
        "items": {
          "type": "number"
        },
        "description": "The departure time range in minutes from the start of the day (0-1439). For example, to filter for flights departing between 9:00 AM and 5:00 PM, you would use [540, 1020]."
      }
    }
  }
}

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