get_price_history
Retrieve aggregated price-history statistics for a product over a specified date range, including min, max, average, and net change across all stores.
Instructions
Get aggregated price-history stats for one product over a date range.
Returns min/max/avg/first/last price plus the net change over the window,
pooled across every store carrying the product. Pair with search_products
first and pass a hit's id here verbatim.
Args:
product_id: Opaque product id from a search hit (e.g.
rp_550e8400e29b41d4a8b2c3d1e9f7a6c8).
from_date: ISO date, inclusive lower bound (e.g. "2026-01-01").
to_date: ISO date, inclusive upper bound; defaults to today.
Returns: Aggregated price-history stats.
Raises: mcp.server.mcpserver.exceptions.ToolError: If the API is unavailable or the product is not found; the message starts with the API's stable error token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | No | ||
| from_date | Yes | ||
| product_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| brand | No | ||
| change | No | ||
| to_date | Yes | ||
| currency | No | ||
| avg_price | No | ||
| from_date | Yes | ||
| max_price | No | ||
| min_price | No | ||
| change_pct | No | ||
| last_price | No | ||
| first_price | No | ||
| store_count | No | ||
| retailer_slug | Yes | ||
| last_observed_at | No | ||
| first_observed_at | No | ||
| observation_count | Yes |