Home / Servers / DigitalOcean API / insights_create_alert_rule

Create an Alert Rule

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Create an Alert Rule To create an alert rule, send a POST request to /v2/insights/alert-rules with a spec containing name, query, thresholds, and at least one notification_channels binding. status defaults to… [POST /v2/insights/alert-rules]

Name on the gateway: digitalocean_api__insights_create_alert_rule · may change things.

Parameters

NameTypeDescription
spec requiredobjectSpec for an Insights alert rule. On create, name, query, thresholds, and at…
statusALERT_RULE_STATUS_ACTIVE | ALERT_RULE_STATUS_PAUSEDDesired alert rule status. Allowed values: - ALERT_RULE_STATUS_ACTIVE = active…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__insights_create_alert_rule",
  "arguments": {
    "spec": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create an alert rule tool with spec set to ….

More from DigitalOcean API