Skip to main content
Glama

Get price history

get_price_history
Read-onlyIdempotent

Daily lowest/average UK price for one product over a trailing window, plus summary stats (historical low with date, high, trend direction). Optionally scoped to a variant configuration; if the variant series is too thin the backend falls back to product-level history (see scope field).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoTrailing window in days
flexNo
handNoe.g. "RH" or "LH"
loftNo
slugNoAlias for product — pass either
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
productNoProduct slug (preferred, from search results) or numeric product id
conditionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
brandYes
dailyYes
scopeYes
trendYes
productYes
days_trackedYes
low_in_windowYes
high_in_windowYes
current_min_priceYes
retailers_trackedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "brand": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "current_min_price": {
      +      "anyOf": [
      +        {
      +          "description": "Price in GBP",
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "daily": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "avg": {
      +            "description": "Price in GBP",
      +            "type": "number"
      +          },
      +          "date": {
      +            "type": "string"
      +          },
      +          "min": {
      +            "description": "Price in GBP",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "date",
      +          "min",
      +          "avg"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "days_tracked": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "high_in_window": {
      +      "anyOf": [
      +        {
      +          "description": "Price in GBP",
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "low_in_window": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "date": {
      +              "type": "string"
      +            },
      +            "price": {
      +              "description": "Price in GBP",
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "price",
      +            "date"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "product": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "retailers_tracked": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "scope": {
      +      "type": "string"
      +    },
      +    "trend": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "product",
      +    "brand",
      +    "current_min_price",
      +    "low_in_window",
      +    "high_in_window",
      +    "trend",
      +    "days_tracked",
      +    "retailers_tracked",
      +    "scope",
      +    "daily"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Alias for product — pass either",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "product",
      -  "context"
      -]New value: +[
      +  "context"
      +]
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources