Set a price alert
set_price_alertLeave a standing instruction: tell me when this symbol crosses this price.
The alert OUTLIVES this conversation. It is evaluated against official daily closes by a
resident agent and delivered to your realtime stream and to any webhook endpoints you have
registered — signed, retried, and de-duplicated so one crossing is one notification.
This is a NOTIFICATION, not an order. Nothing in TWMD can place a trade.
Args:
rule_id: your name for this alert. Re-using one UPDATES it rather than adding a second.
symbol: the Taiwan ticker, e.g. "2330".
direction: "below" or "above".
threshold: the price level, in TWD.
label: optional human-readable note carried on the alert.
edge_triggered: True (default) fires on the CROSSING only — one long slump does not
notify you every day. False fires on every bar that is past the level.
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": {
"rule_id": "<rule_id>",
"symbol": "<symbol>",
"direction": "<direction>",
"threshold": "<threshold>"
},
"name": "set_price_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| symbol | Yes | ||
| rule_id | Yes | ||
| direction | Yes | ||
| threshold | Yes | ||
| edge_triggered | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| rule | No | ||
| error | No | ||
| reason | No | ||
| blocked | No | ||
| deleted | No | ||
| rule_id | No | ||
| delivery | No | ||
| not_investment_advice | No |