price_alert
Persistent price alerts stored server-side (survive restarts, one-shot).
Actions:
set -- watch a level: price_alert("set", ticker="RELIANCE.NS",
level=1270, direction="below", note="stop level")
list -- show all active alerts
delete -- remove an alert by alert_id
check -- fetch current prices for every active alert and return which
fired; fired alerts deactivate so they never spam.
A server cannot push messages into Claude, so pair this with a scheduled
task that calls action='check' on a cadence (e.g. every 30 minutes during
market hours) and notifies the user only when 'triggered' is non-empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| level | No | ||
| action | Yes | ||
| ticker | No | ||
| alert_id | No | ||
| direction | No |