check_alerts
Hosted only. Evaluate every alert on your alert_token against the current feed. Each alert is fired, not_triggered, skipped_stale, not_in_feed or expired; new is false when the same price was already reported. renew=true first extends every unexpired alert to 30 days from now. Never fires on a held_stale row or a row whose last price verification is older than 48 hours (data_age_hours is measured from the row's verified_at, or checked_at if verified_at is missing, not from feed write time): those are listed in skipped_stale with would_have_crossed, and a crossing on stale data is not a fire. would_have_crossed is not stored; the next check_alerts re-evaluates the current feed, and a now-fresh row can fire then if the current price still crosses (that is not a delayed fire of the stale crossing).
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_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| renew | No | ||
| alert_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| alerts | Yes | ||
| renewed | No | ||
| stale_rule | Yes | ||
| fired_count | Yes | ||
| feed_updated_at | No | ||
| skipped_stale_count | Yes | ||
| prices_verified_through | No |