{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "product_id": {
      "type": "string",
      "pattern": "^bp_[0-9]{10}$",
      "description": "Exact grouped BestPrice product id returned by search_products, in bp_<id> form."
    },
    "period_days": {
      "default": 180,
      "description": "Requested history window in days for series and data_gaps. deal_classification and price_delta_vs_180d_median_pct always compare with the 180-day median; window_stats always carries the 30-, 90- and 180-day statistics. Use 180 unless the user asks otherwise.",
      "type": "number",
      "enum": [
        30,
        90,
        180
      ]
    }
  },
  "required": [
    "product_id"
  ],
  "additionalProperties": false
}
