Skip to main content
Monitor history tells you when a condition fired; delivery sends that result to the destination your team chose.
Choose who should receive alerts: a Slack channel, email or webhook on the monitor itself, or a notification group your team shares across monitors (Settings → Notification groups). Your agent checks evaluation and delivery separately, and reports any missing access or consent.

Inspect the monitor first

Read queryError even when the command exits successfully. Firings are condition crossings, not a log of every successful evaluation. Use pagination when reviewing older firings.

Configure delivery

The workspace must be claimed. Connect Slack and confirm the destination with the person. Read the existing monitor before changing its delivery list: supplying deliveryConfigs replaces that list, so retain any destinations that should stay.For a monitor that should deliver only to the selected Slack channel, save delivery.json:
Replace the example channel with its approved name, link or ID. Struct saves a name or link as the channel’s ID; if Slack can’t find it, the update is refused with channel_not_found and the monitor is unchanged. Invite Struct to a private channel first, then apply and read back:
Email delivery uses type: "email" and config: { "to": ["[email protected]"] }, with at most 20 combined to and cc recipients. Webhook delivery uses type: "webhook" and an HTTPS config.url; optional hmacSecret and headers configure authentication. Inspect the MCP monitor schema for the current input contract. Do not copy masked webhook credentials into a new destination or put real credentials in a checked-in JSON file. Use protected temporary input when required.

Send to a notification group

A notification group is a named set of Slack channels and webhooks that several monitors share. Firings and repeats go to the groups’ destinations as well as the monitor’s own deliveryConfigs; a destination listed twice gets one message. All-clears go only to destinations that received that firing and are still configured. People manage groups in the web app under Settings → Notification groups.
struct notification-groups needs CLI 3.1.0 or newer. If struct notification-groups --help fails, use the MCP notification group tools, or ask the person to use Settings.
Reuse a group that already covers the right destinations before creating one:
Slack destinations accept a channel ID (C0123ABCDE), #name (#on-call) or Slack link; Struct resolves and stores the canonical channel ID (invite Struct to private channels first, or pass their channel ID/link). --repeat sets how often a still-firing alert is sent again: at least 1m (at least 15m for iMessage), at most 3 reminders. Notification groups also support:
  • Webhooks (--file JSON with an https URL resolving to a public address, optional hmacSecret and headers).
  • iMessage (--imessage <email> / --imessage-chat <chat-id>, optional --investigate): requires iMessage enabled on the workspace, an active pairing (Settings → Account → iMessage) for person recipients, and an existing group chat containing Struct and the editor for chat recipients. Discover eligible recipients and chat IDs first with struct notification-groups imessage-recipients --json.
  • SMS (--sms <E.164>): start verification with struct phone-numbers add <E.164>, then complete it with struct phone-numbers verify <E.164> --code <code>.
Attach groups to a monitor with notificationGroupIds. It replaces the monitor’s list of groups, so read the monitor first and keep any that should stay. Save groups.json:
A group reaches at most 20 Slack channels, webhooks, iMessage recipients and SMS numbers. A monitor together with all its groups reaches at most 20 distinct receivers; each Slack channel, webhook URL, iMessage recipient, SMS number and email to/cc set counts once. A monitor that sends to Struct triage ("type": "managed_monitors") can’t also use groups. A group that a monitor still uses can’t be deleted; remove it from those monitors first. Creating, changing, testing and deleting groups needs the configure permission.

Prove the path

struct notification-groups test ships in the upcoming CLI release. Until then, call POST /api/notification-groups/{group_id}/test or use a disposable monitor with a controlled workload.
Test every configured destination in a notification group without forcing a real monitor to fire:
test requests a clearly marked [Test] notification for every configured Slack channel, webhook, iMessage recipient and SMS number in the group (claimed workspaces only) and returns per-destination {type, target, ok, error, errorCode} outcomes. Confirm ok: true for every destination, then confirm the actual test notification arrived at each destination before calling alert routing complete. For iMessage, success means the alert was handed to the teammate; for SMS, it means the provider accepted the message. A saved destination or successful monitor preview alone does not establish delivery.

Silence or resolve

Only silence or resolve when requested. After an uncertain write response, read the monitor or firing before retrying. Closing a firing does not repair the application.