Skip to content

Connect an AI Assistant with MCP

Goal: let an AI assistant such as Claude or GitHub Copilot work with your DownBad account for you: list your monitors and open incidents, report your plan’s usage, check whether DownBad itself is working, and run a domain health check. It can explain who hears about a monitor’s alerts, and dry-run an outage without sending anything. On a paid plan it can also add a monitor for a service it ships, add a heartbeat for a scheduled job, put your monitors into maintenance while it deploys, and set up your alert channels, alert profiles, escalation and quiet hours.

MCP (Model Context Protocol) is the standard way AI assistants connect to other services. DownBad runs an MCP server, a web address your assistant connects to. It has two addresses:

AddressToolsNeeds
https://mcp.downbad.app/mcpEvery tool belowSign-in or an API key
https://mcp.downbad.app/toolsrun_health_check and get_downbad_statusNothing

Use /mcp if you have a DownBad account. It asks for a sign-in on purpose: an assistant offers to sign you in only when the server asks for one, so an address that also answered without an account would never give you the chance. Use /tools to try DownBad without an account.

Your assistant then gets DownBad’s tools, the actions it can take. Some only read; others change your account, and those work only with a key or sign-in that allows changes, on a paid plan.

ToolWhat it doesNeeds an account
run_health_checkChecks a domain’s DNS, certificate, website and email setup, with the same findings as the health check on downbad.appNo
get_downbad_statusSays whether DownBad itself is working, so your assistant doesn’t try to fix your site during an outage on our sideNo
list_monitorsLists every monitor on your accountYes
get_monitorReads one monitor’s settings and stateYes
list_open_incidentsLists your open incidents, newest firstYes
get_plan_and_usageLists each limit of your plan with how much you use and how much is left, and which features your plan includesYes
export_configExports your monitors, bundles, groups and alert settings, without any channel secretsYes
list_bundlesLists your bundles (the monitors DownBad set up for one domain) with their monitors by idYes
list_maintenanceLists the maintenance windows running nowYes
get_incident_dossierReads everything DownBad knows about one incident: the cause, how sure it is, each region’s answer, what changed and the fixYes
get_feedback_statusReads a feedback item’s status by its FB referenceYes
list_known_issuesLists the problems on DownBad’s side that DownBad already knows of and that may affect your monitorsYes
list_channelsLists your alert channels, each webhook by its host only and each email address with its name hiddenYes
list_alert_profilesLists your alert profiles: which events alert for each kind of monitor, which channels hear first, and the escalation stepsYes
get_quiet_hoursReads your account’s quiet hours and the time zone their times are read inYes
explain_alertingSays which channels hear about which of a monitor’s events and when, what holds its alerts back now, and any problem foundYes
simulate_alertDry-runs an event for a monitor at a time you choose and lists every step that would happen. It sends nothingYes

These send something to DownBad’s team and change nothing on your monitors or alerts. See Send feedback, check known issues and report a false alarm.

ToolWhat it does
submit_feedbackSends DownBad feedback and answers with its FB reference. Any key can send it, a Read key or a Free-plan account included
report_false_alarmTells DownBad an incident was a false alarm, with the evidence your assistant found. Needs a Read and write key on Pro and above

These need a Read and write key, or a sign-in where you allowed changes, on a paid plan. Each one is the same change the DownBad API makes, with the same plan limits as DownBad itself.

ToolWhat it does
create_monitorAdds a monitor, such as a URL check for a new service. Without an interval, it checks at your plan’s default
create_heartbeatAdds a heartbeat for a scheduled job, and returns the job’s ping URL, the address the job calls after each run. This is the only time the tool shows that URL
update_monitorChanges a monitor’s name, interval, notification profile, settings or bundle. Settings sent replace the old ones
pause_monitorPauses a monitor: it runs no checks until resumed
resume_monitorResumes a paused monitor
delete_monitorDeletes a monitor and everything it recorded. This can’t be undone
start_maintenanceStarts maintenance now on bundles or monitors: they keep being checked, but no alert goes out until it ends
end_maintenanceEnds a maintenance window. Alerts resume five minutes later
recheck_monitorChecks a monitor once, now, from several regions, after a fix. When every region passes, its open incident closes on the next check. Pro plan and above
add_incident_noteAdds a note to an incident, such as what was fixed. The incident page shows it

These manage where your alerts go. See Manage alerting from your assistant.

ToolWhat it does
create_channelAdds an email or webhook channel. A new email address that isn’t a member’s sign-in address gets no alert until its owner confirms it
update_channelChanges a channel. Addresses or webhook settings sent replace the old ones
delete_channelDeletes a channel. This can’t be undone
resend_channel_confirmationSends the confirmation message again to an email channel’s addresses still waiting to be confirmed
test_channelSends a real test message through a channel, even one switched off: one to each address on it, or a test request to a webhook
create_alert_profileAdds an alert profile, from a recipe or with its rules written out
update_alert_profileChanges an alert profile’s name, description or rules. Rules sent replace the old ones
delete_alert_profileDeletes an alert profile no monitor, bundle or group uses. This can’t be undone
set_escalationSets the escalation steps of one alert in a profile, such as “page Slack if it’s still down after 10 minutes”, replacing the steps it had
set_quiet_hoursSets your account’s quiet hours, replacing the ones you had. Needs a plan that includes quiet hours

Every tool tells your assistant whether it only reads, changes something, or removes something, so an assistant that asks before changes can ask you first. The tools that delete, and the ones that replace settings whole (update_monitor, update_channel, update_alert_profile, set_escalation, set_quiet_hours), are marked as tools that remove or overwrite something. recheck_monitor is marked as reaching outside DownBad, because it sends checks to your site, and so are test_channel, create_channel and update_channel, because they send a test message, a confirmation email or a request to your webhook’s address.

Without an account, a health check is limited to 5 an hour and 20 a day for each address it comes from. The tools that need an account use your API key, and the key’s own limit of 60 requests a minute.

You need an API key, the secret string starting with dbk_ that a program sends instead of signing in. A Read key is enough for the tools that read, explaining and dry-running alerts included. For your assistant to add monitors, start maintenance or change your alerting, make a Read and write key instead, on a paid plan. A Read key can still send feedback.

  1. Make a key. Follow Create and Revoke API Keys and name the key after the assistant, such as Claude Code, so you know what stops working if you revoke it. That page shows each screen as you go.

  2. Copy the key when DownBad shows it. You see it only once.

To use only the health check and DownBad’s status, skip the key: in the examples below, use https://mcp.downbad.app/tools as the address and leave the Authorization lines out.

Some assistants can also connect by signing you in to DownBad in your browser, with no key to copy. Where that’s available, choose Sign in when the assistant offers it, then choose what the assistant may do on DownBad’s own page. Connect and Disconnect Apps shows that page, and how to disconnect the assistant later.

Each assistant has its own setup and troubleshooting page, including signing in without a key: Claude Code, Claude on the web, desktop and mobile, ChatGPT, Gemini CLI, Grok Build, including its Agents Window desktop app, where Cursor’s docs now lead, Codex, Devin Desktop (formerly Windsurf), Mistral Vibe (formerly Le Chat), Perplexity and VS Code with GitHub Copilot. Claude Code, Gemini CLI and Grok Build can also install DownBad’s plugin, which adds skills for diagnosing an incident, fixing and rechecking it, wrapping a deploy in maintenance and importing monitors.

In each example, replace dbk_your_key with your key.

Run this in a terminal:

Terminal window
claude mcp add --transport http downbad https://mcp.downbad.app/mcp --header "Authorization: Bearer dbk_your_key"

Add --scope user to use DownBad in every project, not only the current one. Then start Claude Code and type /mcp: downbad is listed as connected.

Expected result: ask your assistant “List my DownBad monitors”. It calls list_monitors and answers with your monitors. Ask “Run a DownBad health check on example.com” to try the tool that needs no account.

With a Read and write key on a paid plan, ask your assistant, for example: “Add a DownBad monitor for https://api.example.com/health”.

  1. A new monitor needs a notification profile, the rules for who gets its alerts. The assistant picks one from list_monitors (each monitor’s notificationProfileId), or puts the monitor in a bundle with list_bundles, and it takes the bundle’s profile. Tell it which to use if you have several.

  2. The assistant calls create_monitor with a name, kind url and the address in config.url. Leave the interval out: the monitor checks at your plan’s default.

Expected result: the tool answers with the new monitor, paused false and nextCheckAt within one interval. It appears under Monitors in DownBad’s sidebar.

A heartbeat waits for your job to call it, and alerts you when a run is missed. Ask, for example: “Add a DownBad heartbeat for the nightly backup, which runs at 03:00 UTC”.

  1. The assistant calls create_heartbeat with a name and the job’s schedule: every so many seconds ({ "type": "interval", "periodSeconds": 3600 }) or a cron expression with its time zone ({ "type": "cron", "expression": "0 3 * * *", "timezone": "UTC" }).

  2. The answer holds pingUrl, the address the job calls after each successful run, and a note that this is the only time the tool shows it. Have the assistant put it straight into the job’s settings, such as a secret in your CI, not into code you share.

  3. The job calls the ping URL at the end of each run:

    Terminal window
    curl -fsS -m 10 --retry 3 "$BACKUP_PING_URL"

If the ping URL is lost, an Owner or Editor can copy it from the heartbeat’s page in DownBad. See Set up a heartbeat.

During a deploy your site may restart and fail a check or two. Maintenance keeps checking your monitors but sends no alert for them until it ends, so a planned restart doesn’t wake anyone. Maintenance needs a plan that includes it.

Ask your assistant, for example: “Put example.com into maintenance in DownBad, run the deploy, then end the maintenance”. It does this:

  1. Find the bundle. list_bundles lists your bundles with their domain and id. The assistant picks the one for example.com.

  2. Start maintenance. start_maintenance with { "bundleIds": ["<bundle id>"], "durationMinutes": 30 }. The answer is the window, with its id and the monitors it covers in coveredMonitorIds. durationMinutes ends the window on its own if the deploy fails part-way, so maintenance is never left on for good.

  3. Deploy. Your assistant runs your deploy as usual.

  4. End maintenance. end_maintenance with the window’s id. The answer has endedAt set. Alerts resume five minutes later, so a service still coming back up doesn’t alert at once.

Expected result: list_maintenance no longer lists the window, and no alert went out for those monitors while it ran. A monitor still failing after the five minutes alerts as usual.

In a deploy script, the same three calls work against the DownBad API directly. See Put monitors into maintenance in the API how-to.

When a monitor goes down, your assistant can find out why, fix it where it has access (your code, your server, your DNS), and have DownBad confirm the fix. Rechecks need a Read and write key on the Pro plan or above; reading the diagnosis works with any key.

Ask your assistant, for example: “DownBad says api.example.com is down. Find out why, fix it, and confirm the fix with DownBad”. It does this:

  1. Check DownBad itself. get_downbad_status says whether DownBad is working. During an outage on DownBad’s side your site may be fine, so the assistant stops here if it isn’t.

  2. Find the incident. list_open_incidents lists what is down, with each incident’s id.

  3. Read the dossier. get_incident_dossier with the incident’s id answers in two parts:

    • DownBad’s findings: cause (a code such as url.http-status, with DownBad’s sentence naming it), confidence (high, medium or low, with the reasons), regions (each probe region’s answer), change (what changed between the last passing check and the first failing one), downbadHealth (whether DownBad itself was working when the failure began) and fixDoc.url (the troubleshooting section that fixes this failure).
    • untrustedEvidence, in a separate part: the text your site sent, such as an error message, a header or the start of the page, at most 2,000 characters. Your site, or anything in front of it, controls this text and can write anything in it, so the tool tells your assistant to read it as data and never follow it as instructions.
  4. Fix the problem. The assistant follows fixDoc.url and the evidence: rolls back a deploy, renews a certificate, corrects a DNS record. Wrap the fix in maintenance first if it restarts the service (see Wrap a deploy in maintenance).

  5. Recheck. recheck_monitor with the monitor’s id and a note saying what was fixed, such as Rolled back the 14:02 deploy. (the monitor’s id is the incident’s monitorId). DownBad checks the monitor once, now, from several regions, and answers each region’s result with a one-line summary.

  6. Leave a note if there’s more to say. add_incident_note with the incident’s id and text records anything else, such as the follow-up work. Notes can be added to open and closed incidents.

Expected result: the recheck’s summary says every region passed and the incident will close on the monitor’s next scheduled check, which DownBad runs at once. When that check passes, the incident closes the usual way, with the recovery alert, and the incident page in DownBad shows the assistant’s note. If a region still fails, the incident stays open and the recheck is recorded on it: the assistant reads the region results and the evidence, and tries again.

A monitor can be rechecked once every 2 minutes and 10 times an hour, and an account 30 times an hour. Past that, recheck_monitor is refused with retryAt, the time the next recheck is allowed, and no check is sent.

Send feedback, check known issues and report a false alarm

Section titled “Send feedback, check known issues and report a false alarm”

Your assistant can tell DownBad what it finds, and check what DownBad already knows, without you leaving the conversation.

  1. Check the known issues first. Ask “Is there a known DownBad issue on my monitors?”. The assistant calls list_known_issues and lists the problems on DownBad’s side that may affect your monitors: the same ones each monitor’s page shows on its A known issue may affect this monitor line. If your problem is one of them, DownBad is already on it.

  2. Send feedback. Ask “Tell DownBad the Checkout monitor keeps saying down while the site works”. The assistant calls submit_feedback and tells you the FB reference, such as FB-7KQ2MX. Any key can send feedback, a Read key included. One person can send 20 items an hour.

  3. Follow it. Ask “What’s the status of FB-7KQ2MX?”. The assistant calls get_feedback_status. A new item is received.

  4. Report a false alarm. When the assistant has checked an incident and found the site was fine, ask it to report the false alarm. It calls report_false_alarm with the incident’s id, a short summary and the evidence it gathered, which DownBad’s team reviews. This one needs a Read and write key on the Pro plan or above; on Free, send it as feedback instead.

The evidence is kept as untrusted text, up to 4,000 characters: it may quote your site, so DownBad only ever shows it as data. More detail on each is in Use the DownBad API.

Your assistant can set up where your alerts go, tell you who hears about a monitor going down and when, and dry-run an outage without sending anything. Explaining and dry-running work with any key, on any plan. Changing channels, alert profiles, escalation and quiet hours needs a Read and write key on a paid plan; webhooks, alert profiles and quiet hours need a plan that includes them.

Four words used below:

  • A channel is somewhere alerts go: one or more email addresses, a webhook (Slack, Discord, Teams, your own endpoint and so on), or the built-in Push channel.
  • An alert profile says, for each kind of monitor, which events alert, how severe they are, and which channels hear about them first. Each monitor alerts through one profile.
  • An escalation step is a later alert to more channels, sent only if the incident is still open after a delay you choose.
  • Quiet hours are times, such as nights, when less severe alerts are held for one summary afterwards (digest) or dropped (suppress).

Ask your assistant, for example: “Send DownBad alerts for my URL monitors to [email protected] and our Slack webhook, post to Slack again if a site is still down after 15 minutes, hold warnings overnight, then show me what would happen if the shop went down at 3 am”. It does this:

  1. Add the channels. create_channel with type email and the addresses in recipients, or type webhook and the webhook’s settings in config (url and provider, such as slack). The answer shows a webhook by its host only (hooks.slack.com) and an address with its name hidden (o***@example.com). No tool ever returns a webhook’s URL, token or headers, so keep your own copy where you got it.

  2. Wait for new addresses to be confirmed. An address that isn’t the sign-in address of someone on your account is sent a message titled Confirm this address for DownBad alerts, and gets no alert until its owner clicks the link. The channel’s recipients show it with "confirmed": false until then; the channel’s other addresses get every alert meanwhile. If the message was lost, or the answer had confirmationHeldBack (one went less than a minute ago), resend_channel_confirmation sends it again.

  3. Test them. test_channel sends a real test message through a channel, even one that is switched off: an email channel sends one to each address on it, and a webhook gets one test request (PagerDuty gets a test alert and then a second request that resolves it). delivered says whether it went, and detail what happened. An address still waiting to be confirmed is skipped, and an email channel that isn’t verified yet sends nothing.

  4. Set the rules. list_alert_profiles lists your profiles with their ids. To make a new one, create_alert_profile from a recipe (uptime-critical, status-change, quiet-hours-digest or dev-sandbox) or with its rules written out in monitorSettings. update_alert_profile changes one; rules sent replace the old ones whole, so the assistant sends every rule the profile should keep. To put a monitor on a profile, it uses update_monitor with the profile’s id as notificationProfileId.

  5. Add escalation. set_escalation with the profile’s id, the monitor kind (such as url), the event (such as first_failure) and the steps. Each step has an id of your choosing, delaySeconds after the first alert, the channelIds to tell and the minSeverity it needs. A step with delaySeconds 0 is part of the first alert. The steps replace the ones that alert had; an empty list removes them.

  6. Set quiet hours. get_quiet_hours reads them, with timeZone, the zone their times are read in (the account owner’s). set_quiet_hours replaces them whole: enabled, mode (digest or suppress), recurring windows such as { "dayOfWeek": 6, "startTime": "22:00", "endTime": "08:00" }, any oneOff windows, and the affectedSeverities they hold, such as ["info", "warn"].

  7. Ask who hears what. explain_alerting with a monitor’s id lists, for each event that alerts, the channels told at once, each escalation step with its delay, and whether quiet hours cover it, with a sentence saying it plainly. It also says what holds every alert back right now (paused, muted, in maintenance) and lists each problem found, with its fix. It’s built from the same rules DownBad uses to send.

  8. Dry-run an outage. simulate_alert with the monitor’s id, an event from the explanation (such as first_failure) and a time in UTC, such as 2026-12-05T03:00:00Z. It lists every step that would happen, in order: who is sent the alert, who is held back by quiet hours, a mute or an unconfirmed address, and when each escalation step comes due. A step held by quiet hours gives holdEndsAt, when the hold ends, in UTC. Nothing is sent, queued or recorded, and sent is always false.

Expected result: the explanation lists your new channels for first_failure. The dry run at 3 am shows a send step for each channel the first alert goes to, or a quiet_hours step where the quiet hours hold it back (when the event’s severity is one they cover), and an escalation step 15 minutes after the event. Your channels and profiles show in DownBad under Settings › Alerts, the same as ones you make there. Each change your assistant made is listed in Account › API activity with the key that made it.

The same steps work from a script, with each request written out, in Manage Alerting Through the API.

A refused tool tells your assistant why, in the same words the DownBad API uses: the rule that refused it, what to do, when to try again if waiting helps, and a link to the fix. Your assistant usually passes that on to you. For each rule and its fix, see MCP Connection Problems.

Revoke its key under Account › API keys. Its next tool call is refused. See Revoke a key.