Skip to main content
Glama

Check a product's price history

check_price_history
Read-only

Whether each product's cheapest price is a good deal: 60-day low, high, typical price and a verdict. Check a whole basket in one call. With one product and a date, e.g. a receipt's, also each store's price that day; paidPence compares what the user paid. History starts late July 2025; dates over 90 days back need a MyGroceryPal account.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD, one product only
paidPenceNoWith date: pence paid for one
productIdNoOne productId; productIds takes several
productIdsNoFrom search_grocery_prices

Output Schema

NameRequiredDescriptionDefault
productsYes
unknownProductIdsYes
notCheckedProductIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"YYYY-MM-DD, with exactly one product: also return each store's price on that day, e.g. the date on a receipt"New value: +"YYYY-MM-DD, one product only"
    • changedInput schema / properties / paidPence / description
      Previous value: -"With date: what the user paid for one, in pence, to compare with the cheapest store that day"New value: +"With date: pence paid for one"
    • changedInput schema / properties / productIds / description
      Previous value: -"Up to 40 productIds returned by search_grocery_prices, checked in one call"New value: +"From search_grocery_prices"
  2. Changed21 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"YYYY-MM-DD: also return each store's price on that day, e.g. the date on a receipt"New value: +"YYYY-MM-DD, with exactly one product: also return each store's price on that day, e.g. the date on a receipt"
    • changedInput schema / properties / productId / description
      Previous value: -"A productId returned by search_grocery_prices"New value: +"One productId; productIds takes several"
    • addedInput schema / properties / productIds
      Added value: +{
      +  "description": "Up to 40 productIds returned by search_grocery_prices, checked in one call",
      +  "items": {
      +    "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      +    "type": "string"
      +  },
      +  "maxItems": 40,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "productId"
      -]
    • removedOutput schema / properties / brand
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / cheapestStore
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / currentPrice
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / currentPricePence
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / high60dPence
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / low60dPence
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / name
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / notCheckedProductIds
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / onDate
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": false,
      -      "properties": {
      -        "allStoresCovered": {
      -          "type": "boolean"
      -        },
      -        "cheapestPricePence": {
      -          "anyOf": [
      -            {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "cheapestStore": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "date": {
      -          "type": "string"
      -        },
      -        "historyStartsOn": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "paid": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "cheapestPence": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "differencePence": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "paidPence": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "verdict": {
      -                  "enum": [
      -                    "paid_the_lowest",
      -                    "paid_more",
      -                    "paid_less"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "paidPence",
      -                "cheapestPence",
      -                "differencePence",
      -                "verdict"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "stores": {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "exact": {
      -                "type": "boolean"
      -              },
      -              "fromPrice": {
      -                "type": "boolean"
      -              },
      -              "loyaltyCard": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observedOn": {
      -                "type": "string"
      -              },
      -              "offer": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "price": {
      -                "type": "string"
      -              },
      -              "pricePence": {
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              "regularPricePence": {
      -                "anyOf": [
      -                  {
      -                    "maximum": 9007199254740991,
      -                    "minimum": -9007199254740991,
      -                    "type": "integer"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "store": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "store",
      -              "observedOn",
      -              "exact",
      -              "pricePence",
      -              "price",
      -              "regularPricePence",
      -              "offer",
      -              "loyaltyCard",
      -              "fromPrice"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "storesWithoutPrice": {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "date",
      -        "historyStartsOn",
      -        "stores",
      -        "storesWithoutPrice",
      -        "allStoresCovered",
      -        "cheapestStore",
      -        "cheapestPricePence",
      -        "paid"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / onSale
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / productId
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / productUrl
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / products
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "brand": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "cheapestStore": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "currentPrice": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "currentPricePence": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "high60dPence": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "low60dPence": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "onDate": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "allStoresCovered": {
      +                "type": "boolean"
      +              },
      +              "cheapestPricePence": {
      +                "anyOf": [
      +                  {
      +                    "maximum": 9007199254740991,
      +                    "minimum": -9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "cheapestStore": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "date": {
      +                "type": "string"
      +              },
      +              "historyStartsOn": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "paid": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "cheapestPence": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": -9007199254740991,
      +                        "type": "integer"
      +                      },
      +                      "differencePence": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": -9007199254740991,
      +                        "type": "integer"
      +                      },
      +                      "paidPence": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": -9007199254740991,
      +                        "type": "integer"
      +                      },
      +                      "verdict": {
      +                        "enum": [
      +                          "paid_the_lowest",
      +                          "paid_more",
      +                          "paid_less"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "paidPence",
      +                      "cheapestPence",
      +                      "differencePence",
      +                      "verdict"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "stores": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "exact": {
      +                      "type": "boolean"
      +                    },
      +                    "fromPrice": {
      +                      "type": "boolean"
      +                    },
      +                    "loyaltyCard": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "observedOn": {
      +                      "type": "string"
      +                    },
      +                    "offer": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "price": {
      +                      "type": "string"
      +                    },
      +                    "pricePence": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "regularPricePence": {
      +                      "anyOf": [
      +                        {
      +                          "maximum": 9007199254740991,
      +                          "minimum": -9007199254740991,
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "store": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "store",
      +                    "observedOn",
      +                    "exact",
      +                    "pricePence",
      +                    "price",
      +                    "regularPricePence",
      +                    "offer",
      +                    "loyaltyCard",
      +                    "fromPrice"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "storesWithoutPrice": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "date",
      +              "historyStartsOn",
      +              "stores",
      +              "storesWithoutPrice",
      +              "allStoresCovered",
      +              "cheapestStore",
      +              "cheapestPricePence",
      +              "paid"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "onSale": {
      +        "type": "boolean"
      +      },
      +      "productId": {
      +        "type": "string"
      +      },
      +      "productUrl": {
      +        "type": "string"
      +      },
      +      "typicalPricePence": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "verdict": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "cheapest_in_60_days",
      +              "typical",
      +              "higher_than_usual",
      +              "not_enough_history"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "productId",
      +      "name",
      +      "brand",
      +      "productUrl",
      +      "onSale",
      +      "cheapestStore",
      +      "currentPricePence",
      +      "currentPrice",
      +      "low60dPence",
      +      "high60dPence",
      +      "typicalPricePence",
      +      "verdict",
      +      "onDate"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / typicalPricePence
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / unknownProductIds
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / verdict
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "enum": [
      -        "cheapest_in_60_days",
      -        "typical",
      -        "higher_than_usual",
      -        "not_enough_history"
      -      ],
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "productId",
      -  "name",
      -  "brand",
      -  "productUrl",
      -  "onSale",
      -  "cheapestStore",
      -  "currentPricePence",
      -  "currentPrice",
      -  "low60dPence",
      -  "high60dPence",
      -  "typicalPricePence",
      -  "verdict",
      -  "onDate"
      -]New value: +[
      +  "products",
      +  "unknownProductIds",
      +  "notCheckedProductIds"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "YYYY-MM-DD: also return each store's price on that day, e.g. the date on a receipt",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / paidPence
      Added value: +{
      +  "description": "With date: what the user paid for one, in pence, to compare with the cheapest store that day",
      +  "maximum": 100000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / onDate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "allStoresCovered": {
      +          "type": "boolean"
      +        },
      +        "cheapestPricePence": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "cheapestStore": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "date": {
      +          "type": "string"
      +        },
      +        "historyStartsOn": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "paid": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "cheapestPence": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "differencePence": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "paidPence": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "verdict": {
      +                  "enum": [
      +                    "paid_the_lowest",
      +                    "paid_more",
      +                    "paid_less"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "paidPence",
      +                "cheapestPence",
      +                "differencePence",
      +                "verdict"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "stores": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "exact": {
      +                "type": "boolean"
      +              },
      +              "fromPrice": {
      +                "type": "boolean"
      +              },
      +              "loyaltyCard": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observedOn": {
      +                "type": "string"
      +              },
      +              "offer": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "price": {
      +                "type": "string"
      +              },
      +              "pricePence": {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "regularPricePence": {
      +                "anyOf": [
      +                  {
      +                    "maximum": 9007199254740991,
      +                    "minimum": -9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "store": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "store",
      +              "observedOn",
      +              "exact",
      +              "pricePence",
      +              "price",
      +              "regularPricePence",
      +              "offer",
      +              "loyaltyCard",
      +              "fromPrice"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "storesWithoutPrice": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "date",
      +        "historyStartsOn",
      +        "stores",
      +        "storesWithoutPrice",
      +        "allStoresCovered",
      +        "cheapestStore",
      +        "cheapestPricePence",
      +        "paid"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "productId",
      -  "name",
      -  "brand",
      -  "productUrl",
      -  "onSale",
      -  "cheapestStore",
      -  "currentPricePence",
      -  "currentPrice",
      -  "low60dPence",
      -  "high60dPence",
      -  "typicalPricePence",
      -  "verdict"
      -]New value: +[
      +  "productId",
      +  "name",
      +  "brand",
      +  "productUrl",
      +  "onSale",
      +  "cheapestStore",
      +  "currentPricePence",
      +  "currentPrice",
      +  "low60dPence",
      +  "high60dPence",
      +  "typicalPricePence",
      +  "verdict",
      +  "onDate"
      +]
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish readOnly/non-destructive/closed-world, and the description adds genuinely new context: history coverage begins late July 2025, and deep history requires a MyGroceryPal account. It also discloses that the response includes a verdict and per-store breakdown, though it says nothing about failure modes for invalid date/product combinations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense and front-loaded — the core value proposition comes first, then the basket mode, then the date mode, then coverage caveats. The opening is a verbless fragment, which costs a little readability, but there is no filler and every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and annotations covering the safety profile, the description supplies exactly the remaining pieces: data time bounds, an auth threshold, the two operating modes, and the conditional parameter relationships. An agent can select and invoke this correctly without further inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema cannot express: 'one product only' for date, paidPence as a comparison input tied to that single-product mode, and the per-store-per-day expansion when a date is supplied. It also points to search_grocery_prices as the source of productIds.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (a product's price history) and the concrete analysis returned — 60-day low, high, typical price and a deal verdict — so an agent knows this is a deal-evaluation tool rather than a raw price lookup. It does not explicitly distinguish itself from siblings like find_cheaper_swaps or compare_basket, which is the only thing keeping it off a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear situational guidance: use it for a whole basket in one call, and use the single-product-plus-date mode for receipt checking, where paidPence compares what the user paid. It also states prerequisites (dates over 90 days back need an account). No explicit exclusions against the alternative tools, so not a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources