Set Market Alert
set_market_alertSubscribe to movement alerts for a data center market's DCPI power score; get notified when its Excess-Power/Constraint verdict flips or scores cross a threshold via email or webhook.
Instructions
Use this when the user wants alerts on a data center market's DCPI power score: subscribes to movement alerts (needs a key) — get notified when its Excess-Power / Constraint score moves. DATA USE: channel="email" takes your human's email, to send these alerts; it is bound to the key as with bind_email. DC Hub keeps it and never sells it or shares it for anyone else’s use (https://dchub.cloud/privacy). Run only when your human asks; confirm the address with them first. Without a full-access key, email alerts go only to the key's bound email. One call: pass email (an address your human typed here) with channel="email" and DC Hub binds it to this key first (minting a key if this session has none), then arms the watch; no separate get_api_key or bind_email. Alerts send when the market’s verdict flips or its scores move past the threshold, so a quiet market sends nothing. Webhook delivery (channel="webhook" + destination=) needs a full-access key. Answers "tell me when this market moves". Try: set_market_alert market=northern-virginia channel=webhook destination=https://hooks.example.com/dc. Do NOT use to read a market right now (use get_market_dcpi_rank); this SUBSCRIBES to future movement. For multi-step data center or energy questions, start with execute_plan.
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": {
"market": "<market>",
"channel": "<channel>"
},
"name": "set_market_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Optional, channel="email" only: your human's email, typed by them here and confirmed. Binds it to the key (a key is minted if this session has none) and arms the watch in one call. DC Hub keeps it and never sells or shares it | ||
| market | Yes | Market slug (metro) to watch, e.g. northern-virginia — valid slugs come from rank_markets / get_market_dcpi_rank | |
| channel | Yes | Delivery channel: "email" (sent to your bound email) or "webhook" (full-access key) | |
| destination | No | For channel="webhook", the https URL to POST alerts to (full-access key); ignored for email (forced to bound address) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||