Price history of a product
em_price_historyTrack an Emalls product's average price over about three months in ~3-day steps to determine whether its price is rising or falling, with optional shop series and summary.
Instructions
Get the price history of one Emalls product: the average price over time in about 3-day steps (last ~3 months).
Use it for "is the price rising or falling". Dates are Jalali, oldest first, aligned with the price lists;
null = no price that day. summary compares first and last average.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>"
},
"name": "em_price_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shop_id | No | Add this shop's own series (id from em_offers). | |
| product_id | Yes | Argument is `product_id` (not `id`): the `id` of an em_search result. |