three.ws Alerts

v0.1.3
io.github.nirholas/alerts-mcp Checked 3 hours ago Published 1 month ago

Create, update, and delete pump.fun alert rules and read fired-alert history across channels.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_alert_rules List my pump.fun alert rules

List every pump.fun alert rule on the authenticated three.ws account. Each rule has a `kind` (graduation | price_above | price_below | whale_buy | new_mint), its target (target_mint or target_agent), an optional numeric `threshold` (USD market cap for price rules, SOL for whale_buy), the delivery channels (deliver_in_app, webhook_url + webhook_secret, telegram_chat), the cooldown, and whether it is enabled. Also returns live delivery health: `last_fired_at`, `recent_failures` (failed channel deliveries in the last 24h), and `recent_deliveries` (the last few per-channel outcomes). Use this to a…

create_alert_rule Create a pump.fun alert rule

Create a pump.fun alert rule on the authenticated three.ws account. The pumpfun-monitor cron evaluates it against the live event stream and delivers across the channels you enable, so it fires across devices with no dashboard open. NOT idempotent — each call adds a new rule (max 50 per account). Targeting by kind: `graduation` is global or scoped to target_mint OR target_agent; `price_above` / `price_below` / `whale_buy` require target_mint; `new_mint` requires target_agent. `threshold` is required for the price/whale kinds — USD market cap for price_above/price_below, minimum buy size in…

ParameterTypeDescription
kind *stringEvent to watch: graduation | price_above | price_below | whale_buy | new_mint.
cooldown_secondsintegerMinimum seconds between fires for this rule (5–86400, default 300).
deliver_in_appbooleanDeliver as an in-app notification (default true).
enabledbooleanWhether the rule is active (default true).
labelstringOptional human label; a default is derived from kind/target when omitted.
target_agentstringthree.ws agent UUID to watch. Required for new_mint; optional for graduation; forbidden for the mint-targeted kinds.
target_mintstringCoin mint to watch. Required for price_above/price_below/whale_buy; optional for graduation; forbidden for new_mint.
telegram_chatstringTelegram numeric chat id (e.g. 123456789) or @username to deliver to via the platform bot.
thresholdnumberRequired for price/whale kinds: USD market cap for price_above/price_below, minimum buy size in SOL for whale_buy. Ignored for graduation/new_mint.
webhook_urlstringHTTPS endpoint to POST a signed alert event to. The response includes a generated webhook_secret for verifying the webhook-signature header.

update_alert_rule Update a pump.fun alert rule

Update an existing pump.fun alert rule by id on the authenticated three.ws account. Partial — only the fields you pass change. Idempotent: re-applying the same values yields the same rule. Common uses: flip `enabled` to pause/resume, retune `threshold`, add or swap a delivery channel, or change `kind` (the rule is re-validated against the new kind, and fields incompatible with it are cleared automatically). Pass null to clear a clearable field (target_mint, target_agent, threshold, webhook_url, telegram_chat, label). Removing webhook_url drops its secret; adding one mints a fresh webhook_sec…

ParameterTypeDescription
rule_id *stringId of the rule to update (from list_alert_rules).
cooldown_secondsintegerMinimum seconds between fires (5–86400).
deliver_in_appbooleanToggle in-app delivery.
enabledbooleanEnable or pause the rule.
kindstringChange the event kind. The rule is re-validated against it and incompatible fields are cleared.
labelHuman label, or null to fall back to the derived default.
target_agentthree.ws agent UUID to watch, or null to clear. Required by new_mint; forbidden for mint-targeted kinds.
target_mintCoin mint to watch, or null to clear. Required by price/whale kinds; forbidden for new_mint.
telegram_chatTelegram numeric chat id or @username, or null to remove.
thresholdUSD market cap (price kinds) or SOL buy size (whale_buy), or null to clear.
webhook_urlHTTPS endpoint for signed alert events, or null to remove the webhook (and its secret).

delete_alert_rule Delete a pump.fun alert rule

Permanently delete a pump.fun alert rule by id from the authenticated three.ws account. DESTRUCTIVE and irreversible: the rule plus its cooldown tracker and per-channel delivery log are removed (cascade). The rule stops firing immediately. Deleting an already-deleted id returns not_found (so this is not idempotent). To pause a rule without losing it, prefer update_alert_rule with enabled:false. Returns the deleted rule id. Requires THREE_WS_SESSION.

ParameterTypeDescription
rule_id *stringId of the rule to delete (from list_alert_rules). This cannot be undone.

get_alert_history Read fired pump.fun alert history

Read the pump.fun alerts that have actually fired for the authenticated account, newest first. Each entry carries a one-line `summary`, the originating `rule_id`, the event `kind`, the coin (mint / name / symbol), whether it has been `read`, when it `fired_at`, and the full `event` payload (amounts, market cap, tx signature, buyer, …). Pair this with list_alert_rules — whose `recent_deliveries` shows per-channel send outcomes — to see both what fired and how it was delivered. Optionally filter to one rule (rule_id) or one kind. The feed returns at most the 50 most recent alerts. Requires…

ParameterTypeDescription
kindstringOnly return alerts of this event kind.
limitintegerMaximum number of fired alerts to return, newest first (1–50, default 20).
rule_idstringOnly return alerts fired by this rule id (matches the rule_id in each alert payload).