Skip to main content
Glama

Alerts Edit

alerts_edit
Destructive

Partial update of one of the user's alerts. Only the fields you pass are modified; pass alert_id to identify which one (get it from alerts_list). Use is_active=false to pause an alert without deleting it. address replaces the alert's wallet condition (one per alert; same rules as alerts_create); address='' removes it; address_role alone moves the existing address to that side. The fields mean what they mean in alerts_create, and a Hyperliquid alert (its type cannot change) is re-validated whole after the edit: '' or [] clears an optional field such as token_symbol or pnl_cohorts, and a field its type does not use is an error. channels replaces the list (email or webhook; Discord is off); [] leaves a Hyperliquid or Polymarket alert feed-only, read with alerts_events.

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": {
      "alert_id": "<alert_id>"
    },
    "name": "alerts_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
bandNohl_cohort_bias and hl_liq_proximity: hysteresis, greater than 0 (default 0.1). A bias alert fires when the index reaches threshold + band (up) or threshold - band (down); a proximity alert fires when the ratio reaches threshold and re-arms below threshold - band.
modeNohl_liquidation and cex_liquidation: single (default) = one alert per liquidation of at least min_value_usd; sum = a BURST: one alert per coin when the liquidations of `window` add up to min_value_usd, then none for that coin until the burst has ended (no window reached it for 5 minutes, or for `window` if longer). A burst alert carries the total, the long and short USD, the count, the largest liquidation and the window's start and end (cex_liquidation: the split per exchange too).
sideNohl_wallet_orders: buy or sell orders only. hl_liquidation and cex_liquidation: long or short liquidations only (the liquidated position). hl_oi_change (with a `cohort`) and hl_liq_cluster: the long or the short positions only. Leave out for both.
chainNo
indexNohl_cohort_bias only, required: the index watched for token_symbol. smi = long share of smart wallets minus long share of rekt wallets; wsi = long share of whales minus long share of shrimp; smart_bias / whale_bias = (long - short) / (long + short) of that cohort; smi_wsi_gap = smi - wsi. Ratios run -1..1 (smi_wsi_gap -2..2).
labelNo
cohortNohl_oi_change and hl_liq_cluster: only these wallets' positions: whales (a whale account-size rung), smart (a smart realised-PnL rung; a smart whale is both), others (neither), hlp (HLP and its vaults). Leave out for every position.
eventsNohl_wallet_orders only: placed = a new order appeared in the book, gone = an order left it (its outcome filled, partially_filled or canceled comes from the order's own fills). Default both. Each check's orders arrive together, as one event.
walletNoOne 0x + 40-hex address. Hyperliquid: the account to watch, required for hl_wallet, hl_wallet_orders and hl_liq_proximity, optional for hl_liquidation. Polymarket: the proxy wallet (the address of its vike.io/polymarket/wallet page and of polymarket_tape rows), required for pm_wallet_trade.
windowNomode sum: the burst's window, 30s to 60m (e.g. 30s, 2m, 15m; default 5m). cex_oi_change and hl_oi_change: the period of the change, 1h, 4h, 24h (default 1h).
actionsNohl_wallet only: which fills notify. Default: open, close, flip, increase ('add' is accepted for increase); reduce is opt-in.
addressNo0x + 40-hex EVM address; '' removes the wallet condition.
alert_idYesThe alert ID (from alerts_list).
channelsNo
directionNohl_cohort_bias: which crossings notify. pm_price_move: which moves of the market's first outcome (Yes on a yes/no market) notify. Default both. cex_funding: up = alert when funding rises to `threshold` or above, down = when it falls to it or below (default up; both is refused). cex_oi_change and hl_oi_change: up = open interest grew, down = it shrank, both = either (default both).
exchangesNoCEX perpetual alerts only: the exchanges to watch, lower-case (binance, bybit, okx ...). Leave out for every exchange we track. cex_funding: alerts per exchange; cex_funding_arb and cex_spread compare exchanges, so two or more (the gap or spread between the best two of them); cex_liquidation: aster, binance, bybit, okx (Deribit's liquidations arrive about 2 hours late); cex_oi_change: the open interest of these exchanges summed.
is_activeNo
thresholdNohl_cohort_bias: the index level to cross (default 0). hl_liq_proximity: the share of the way from entry price to liquidation price, strictly between 0 and 1 (default 0.8). cex_funding (required): the funding level in % a year, negative allowed (0.01% every 8 h = 10.95). cex_funding_arb (required): the gap between the highest and the lowest funding, in % a year, above 0. cex_spread (required): the price spread in %, above 0 and at most 8 (0.5 = 50 bps). cex_oi_change (required) and hl_oi_change: the change of the open interest over `window`, in %, above 0. hl_liq_cluster (required): the farthest the cluster may be from the price, in % (above 0, at most 12).
change_usdNohl_oi_change: the change of the open interest in USD (at least 10,000), e.g. 50000000 with cohort whales, side short and window 1h = whales added $50M of shorts within an hour. With `threshold` too, both must be met.
min_amountNoWhole tokens of token_symbol; '' or 0 removes the amount floor.
pnl_cohortsNohl_cohort_fill and hl_liquidation: only wallets in these realised-PnL cohorts (the ladder runs from '3x smart' = top 1% to '3x rekt' = bottom 5%). hl_cohort_fill REQUIRES at least one PnL or size cohort; for hl_liquidation empty = any cohort.
address_roleNo
condition_idNoPolymarket only: the market, its 0x + 64-hex condition id. Required for pm_market_trade, pm_price_move and pm_resolution; optional for pm_wallet_trade (one market of that wallet).
hold_minutesNocex_spread only: the spread must stay at or above `threshold` this many minutes before the alert fires, so a one-minute spike does not (default 5, 0 = at once, at most 1440).
size_cohortsNohl_cohort_fill and hl_liquidation: only wallets in these account-size cohorts (the ladder runs from '4x whale' = $10M+ to 'shrimp' = under $1k). hl_cohort_fill REQUIRES at least one PnL or size cohort; for hl_liquidation empty = any size.
token_symbolNo
max_value_usdNo
min_value_usdNo
cooldown_minutesNo
max_triggers_dayNoYour own daily cap: at most this many notifications of this alert per UTC day (1 to 10,000), e-mail and webhook alike, counted per event (a wallet-orders check is one); every event past it still reaches the feed (alerts_events). Without it a token-wide transfer alert sends at most 10 a day, any other alert's webhook gets every event and its e-mail stops after its 10th event of the day. In alerts_edit, '' or 0 removes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / change_usd
      Added value: +{
      +  "description": "hl_oi_change: the change of the open interest in USD (at least 10,000), e.g. 50000000 with cohort whales, side short and window 1h = whales added $50M of shorts within an hour. With `threshold` too, both must be met.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / cohort
      Added value: +{
      +  "description": "hl_oi_change and hl_liq_cluster: only these wallets' positions: whales (a whale account-size rung), smart (a smart realised-PnL rung; a smart whale is both), others (neither), hlp (HLP and its vaults). Leave out for every position.",
      +  "enum": [
      +    "whales",
      +    "smart",
      +    "others",
      +    "hlp"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / direction / description
      Previous value: -"hl_cohort_bias: which crossings notify. pm_price_move: which moves of the market's first outcome (Yes on a yes/no market) notify. Default both. cex_funding: up = alert when funding rises to `threshold` or above, down = when it falls to it or below (default up; both is refused)."New value: +"hl_cohort_bias: which crossings notify. pm_price_move: which moves of the market's first outcome (Yes on a yes/no market) notify. Default both. cex_funding: up = alert when funding rises to `threshold` or above, down = when it falls to it or below (default up; both is refused). cex_oi_change and hl_oi_change: up = open interest grew, down = it shrank, both = either (default both)."
    • changedInput schema / properties / exchanges / description
      Previous value: -"CEX perpetual alerts only: the exchanges to watch, lower-case (binance, bybit, okx ...). Leave out for every exchange we track. cex_funding: alerts per exchange; cex_funding_arb and cex_spread compare exchanges, so two or more (the gap or spread between the best two of them)."New value: +"CEX perpetual alerts only: the exchanges to watch, lower-case (binance, bybit, okx ...). Leave out for every exchange we track. cex_funding: alerts per exchange; cex_funding_arb and cex_spread compare exchanges, so two or more (the gap or spread between the best two of them); cex_liquidation: aster, binance, bybit, okx (Deribit's liquidations arrive about 2 hours late); cex_oi_change: the open interest of these exchanges summed."
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "hl_liquidation and cex_liquidation: single (default) = one alert per liquidation of at least min_value_usd; sum = a BURST: one alert per coin when the liquidations of `window` add up to min_value_usd, then none for that coin until the burst has ended (no window reached it for 5 minutes, or for `window` if longer). A burst alert carries the total, the long and short USD, the count, the largest liquidation and the window's start and end (cex_liquidation: the split per exchange too).",
      +  "enum": [
      +    "single",
      +    "sum"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / side / description
      Previous value: -"hl_wallet_orders only: only buy or only sell orders. Leave out for both."New value: +"hl_wallet_orders: buy or sell orders only. hl_liquidation and cex_liquidation: long or short liquidations only (the liquidated position). hl_oi_change (with a `cohort`) and hl_liq_cluster: the long or the short positions only. Leave out for both."
    • changedInput schema / properties / side / enum
      Previous value: -[
      -  "buy",
      -  "sell"
      -]New value: +[
      +  "buy",
      +  "sell",
      +  "long",
      +  "short"
      +]
    • changedInput schema / properties / threshold / description
      Previous value: -"hl_cohort_bias: the index level to cross (default 0). hl_liq_proximity: the share of the way from entry price to liquidation price, strictly between 0 and 1 (default 0.8). cex_funding (required): the funding level in % a year, negative allowed (0.01% every 8 h = 10.95). cex_funding_arb (required): the gap between the highest and the lowest funding, in % a year, above 0. cex_spread (required): the price spread in %, above 0 and at most 8 (0.5 = 50 bps)."New value: +"hl_cohort_bias: the index level to cross (default 0). hl_liq_proximity: the share of the way from entry price to liquidation price, strictly between 0 and 1 (default 0.8). cex_funding (required): the funding level in % a year, negative allowed (0.01% every 8 h = 10.95). cex_funding_arb (required): the gap between the highest and the lowest funding, in % a year, above 0. cex_spread (required): the price spread in %, above 0 and at most 8 (0.5 = 50 bps). cex_oi_change (required) and hl_oi_change: the change of the open interest over `window`, in %, above 0. hl_liq_cluster (required): the farthest the cluster may be from the price, in % (above 0, at most 12)."
    • addedInput schema / properties / window
      Added value: +{
      +  "description": "mode sum: the burst's window, 30s to 60m (e.g. 30s, 2m, 15m; default 5m). cex_oi_change and hl_oi_change: the period of the change, 1h, 4h, 24h (default 1h).",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / max_triggers_day
      Added value: +{
      +  "description": "Your own daily cap: at most this many notifications of this alert per UTC day (1 to 10,000), e-mail and webhook alike, counted per event (a wallet-orders check is one); every event past it still reaches the feed (alerts_events). Without it a token-wide transfer alert sends at most 10 a day, any other alert's webhook gets every event and its e-mail stops after its 10th event of the day. In alerts_edit, '' or 0 removes it.",
      +  "type": [
      +    "integer",
      +    "string"
      +  ]
      +}
  3. Changed4 schema fields changed
    • changedInput schema / properties / direction / description
      Previous value: -"hl_cohort_bias: which crossings notify. pm_price_move: which moves of the market's first outcome (Yes on a yes/no market) notify. Default both."New value: +"hl_cohort_bias: which crossings notify. pm_price_move: which moves of the market's first outcome (Yes on a yes/no market) notify. Default both. cex_funding: up = alert when funding rises to `threshold` or above, down = when it falls to it or below (default up; both is refused)."
    • addedInput schema / properties / exchanges
      Added value: +{
      +  "description": "CEX perpetual alerts only: the exchanges to watch, lower-case (binance, bybit, okx ...). Leave out for every exchange we track. cex_funding: alerts per exchange; cex_funding_arb and cex_spread compare exchanges, so two or more (the gap or spread between the best two of them).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / hold_minutes
      Added value: +{
      +  "description": "cex_spread only: the spread must stay at or above `threshold` this many minutes before the alert fires, so a one-minute spike does not (default 5, 0 = at once, at most 1440).",
      +  "type": [
      +    "integer",
      +    "string"
      +  ]
      +}
    • changedInput schema / properties / threshold / description
      Previous value: -"hl_cohort_bias: the index level to cross (default 0). hl_liq_proximity: the share of the way from entry price to liquidation price, strictly between 0 and 1 (default 0.8)."New value: +"hl_cohort_bias: the index level to cross (default 0). hl_liq_proximity: the share of the way from entry price to liquidation price, strictly between 0 and 1 (default 0.8). cex_funding (required): the funding level in % a year, negative allowed (0.01% every 8 h = 10.95). cex_funding_arb (required): the gap between the highest and the lowest funding, in % a year, above 0. cex_spread (required): the price spread in %, above 0 and at most 8 (0.5 = 50 bps)."
  4. Changed3 schema fields changed
    • addedInput schema / properties / events
      Added value: +{
      +  "description": "hl_wallet_orders only: placed = a new order appeared in the book, gone = an order left it (its outcome filled, partially_filled or canceled comes from the order's own fills). Default both. Each check's orders arrive together, as one event.",
      +  "items": {
      +    "enum": [
      +      "placed",
      +      "gone"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / side
      Added value: +{
      +  "description": "hl_wallet_orders only: only buy or only sell orders. Leave out for both.",
      +  "enum": [
      +    "buy",
      +    "sell"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / wallet / description
      Previous value: -"One 0x + 40-hex address. Hyperliquid: the account to watch, required for hl_wallet and hl_liq_proximity, optional for hl_liquidation. Polymarket: the proxy wallet (the address of its vike.io/polymarket/wallet page and of polymarket_tape rows), required for pm_wallet_trade."New value: +"One 0x + 40-hex address. Hyperliquid: the account to watch, required for hl_wallet, hl_wallet_orders and hl_liq_proximity, optional for hl_liquidation. Polymarket: the proxy wallet (the address of its vike.io/polymarket/wallet page and of polymarket_tape rows), required for pm_wallet_trade."
  5. Changed1 schema field changed
    • addedInput schema / properties / min_amount
      Added value: +{
      +  "description": "Whole tokens of token_symbol; '' or 0 removes the amount floor.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
  6. Changed3 schema fields changed
    • addedInput schema / properties / condition_id
      Added value: +{
      +  "description": "Polymarket only: the market, its 0x + 64-hex condition id. Required for pm_market_trade, pm_price_move and pm_resolution; optional for pm_wallet_trade (one market of that wallet).",
      +  "type": "string"
      +}
    • changedInput schema / properties / direction / description
      Previous value: -"hl_cohort_bias only: which crossings notify. Default both."New value: +"hl_cohort_bias: which crossings notify. pm_price_move: which moves of the market's first outcome (Yes on a yes/no market) notify. Default both."
    • changedInput schema / properties / wallet / description
      Previous value: -"Hyperliquid account to watch: one 0x + 40-hex address. Required for hl_wallet and hl_liq_proximity, optional for hl_liquidation."New value: +"One 0x + 40-hex address. Hyperliquid: the account to watch, required for hl_wallet and hl_liq_proximity, optional for hl_liquidation. Polymarket: the proxy wallet (the address of its vike.io/polymarket/wallet page and of polymarket_tape rows), required for pm_wallet_trade."
  7. Changed9 schema fields changed
    • addedInput schema / properties / actions
      Added value: +{
      +  "description": "hl_wallet only: which fills notify. Default: open, close, flip, increase ('add' is accepted for increase); reduce is opt-in.",
      +  "items": {
      +    "enum": [
      +      "open",
      +      "close",
      +      "flip",
      +      "increase",
      +      "reduce"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / band
      Added value: +{
      +  "description": "hl_cohort_bias and hl_liq_proximity: hysteresis, greater than 0 (default 0.1). A bias alert fires when the index reaches threshold + band (up) or threshold - band (down); a proximity alert fires when the ratio reaches threshold and re-arms below threshold - band.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • changedInput schema / properties / channels / items / enum
      Previous value: -[
      -  "email",
      -  "discord"
      -]New value: +[
      +  "email",
      +  "webhook"
      +]
    • addedInput schema / properties / direction
      Added value: +{
      +  "description": "hl_cohort_bias only: which crossings notify. Default both.",
      +  "enum": [
      +    "up",
      +    "down",
      +    "both"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / index
      Added value: +{
      +  "description": "hl_cohort_bias only, required: the index watched for token_symbol. smi = long share of smart wallets minus long share of rekt wallets; wsi = long share of whales minus long share of shrimp; smart_bias / whale_bias = (long - short) / (long + short) of that cohort; smi_wsi_gap = smi - wsi. Ratios run -1..1 (smi_wsi_gap -2..2).",
      +  "enum": [
      +    "smi",
      +    "wsi",
      +    "smart_bias",
      +    "whale_bias",
      +    "smi_wsi_gap"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / pnl_cohorts
      Added value: +{
      +  "description": "hl_cohort_fill and hl_liquidation: only wallets in these realised-PnL cohorts (the ladder runs from '3x smart' = top 1% to '3x rekt' = bottom 5%). hl_cohort_fill REQUIRES at least one PnL or size cohort; for hl_liquidation empty = any cohort.",
      +  "items": {
      +    "enum": [
      +      "3x smart",
      +      "2x smart",
      +      "smart",
      +      "3x winner",
      +      "2x winner",
      +      "winner",
      +      "loser",
      +      "2x loser",
      +      "3x loser",
      +      "rekt",
      +      "2x rekt",
      +      "3x rekt"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / size_cohorts
      Added value: +{
      +  "description": "hl_cohort_fill and hl_liquidation: only wallets in these account-size cohorts (the ladder runs from '4x whale' = $10M+ to 'shrimp' = under $1k). hl_cohort_fill REQUIRES at least one PnL or size cohort; for hl_liquidation empty = any size.",
      +  "items": {
      +    "enum": [
      +      "4x whale",
      +      "3x whale",
      +      "2x whale",
      +      "whale",
      +      "2x shark",
      +      "shark",
      +      "2x dolphin",
      +      "dolphin",
      +      "2x fish",
      +      "fish",
      +      "2x shrimp",
      +      "shrimp"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / threshold
      Added value: +{
      +  "description": "hl_cohort_bias: the index level to cross (default 0). hl_liq_proximity: the share of the way from entry price to liquidation price, strictly between 0 and 1 (default 0.8).",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / wallet
      Added value: +{
      +  "description": "Hyperliquid account to watch: one 0x + 40-hex address. Required for hl_wallet and hl_liq_proximity, optional for hl_liquidation.",
      +  "type": "string"
      +}
  8. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag a destructive, non-idempotent write, and the description adds substantial context beyond them: alert type cannot change, the whole alert is re-validated after edit, '' or [] clears optional fields, a field the type does not use is an error, address='' removes the wallet condition, and address_role alone moves the existing address. These are exactly the non-obvious behaviors an agent needs before mutating a live alert.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: the partial-update rule and alert_id requirement come first, then the pause shortcut, then field-specific edit rules. Every clause carries distinct information, and 'The fields mean what they mean in alerts_create' economically avoids restating 30 parameter descriptions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 30-parameter mutation tool with no output schema, the description covers the risky and non-obvious edit behaviors well. It leans on alerts_create for per-field semantics, which is reasonable but means an agent editing an unfamiliar field type must consult a second tool definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 30 parameters and 70% schema coverage, the schema does most of the work, but the description adds edit-specific meaning for several: address replacement/removal semantics, address_role as a move-only operation, channels as a full replacement with Discord excluded, and [] leaving an alert feed-only. It does not add edit-specific guidance for every field, deferring instead to alerts_create.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Partial update of one of the user's alerts') and immediately clarifies the partial-update semantics ('Only the fields you pass are modified'), which distinguishes it from alerts_create (full creation) and alerts_list (read). An agent can identify the operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: get alert_id from alerts_list, use is_active=false to pause instead of alerts_delete, and consult alerts_create for field meanings. It also names alerts_events as the read path for feed-only alerts, covering both when-to-use and what-alternative-applies.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.