get_price_trend
7-day and 30-day price trend for one stable rate_id (from compare_gpu_prices), among tracked providers only.
Reuses the existing daily snapshots in /api/v1/gpu-prices/history.json: percent change, direction (up/down/flat), and how many ranked snapshot days were in the window. A trend is never computed from held_stale, no_source, or stale (older than 48 hours / undated) current rows; then trend is null with trend_reason. Current sold_out does not blank windows: they use the same verified-day history math as compare_gpu_prices. A window with too few ranked days is returned with reason insufficient_points; a window longer than the archive is window_exceeds_history. Missing snapshot days are not invented. All timestamps are UTC with a Z. windows defaults to [7, 30].
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": {
"rate_id": "<rate_id>"
},
"name": "get_price_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | full | |
| rate_id | Yes | ||
| windows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| gpu | No | ||
| mode | No | ||
| tier | No | ||
| as_of | No | ||
| error | No | ||
| trend | No | ||
| vendor | No | ||
| rate_id | No | ||
| vram_gb | No | ||
| windows | No | ||
| gpu_count | No | ||
| trend_reason | No | ||
| last_snapshot | No | ||
| first_snapshot | No | ||
| referral_disclosure | No | One-line referral disclosure, present whenever the result names a provider; each provider-naming item then has tracked_url (tagged /go/ redirect). |