Skip to main content
Glama
Rootly MCP server

Rootly MCP server

Official
by rootlyhq

Create Alert Route

create_alert_route

Create an alert route that matches incoming alerts by condition and directs them to services, groups, or escalation policies. Requires Advanced Alert Routing access.

Instructions

Creates a new alert route from provided data. Note: This endpoint requires access to Advanced Alert Routing. If you're unsure whether you have access to this feature, please contact Rootly customer support.

Asynchronous Rule Creation

For organizations with large numbers of routing rules, Rootly supports asynchronous rule processing to improve performance. When enabled, rule creation happens in the background.

Asynchronous processing is also applied automatically, whether or not it is enabled for your organization, when a request carries a rule graph too large to save within the request timeout. Size is measured in total dependent records — rules plus their condition groups, conditions and destinations — and for an update it includes the rules already on the route, not just those in the payload.

Important: Whenever rules are processed asynchronously, the rules list in the API response will not be up-to-date immediately after creation. You should refetch the alert route, or poll the async rule creation status endpoint with the request_id you supplied, to confirm the rules have landed.

If you experience slow operations when managing alert routes with many rules, contact Rootly customer support to enable asynchronous rule processing for your organization.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_alert_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv3.0.0
    • addedInput schema / properties / data / properties / attributes / properties / rules / items / properties / alerts_source_ids
      Added value: +{
      +  "description": "Alert sources this rule applies to. Each must be one of the route's alert sources, and an empty list applies the rule to all of them. Can't be set on the fallback rule. Only available when rule-level source selection is enabled for the organization",
      +  "items": {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / description
      Previous value: -"Dynamic destinations only. How an alert value is matched to a catalog entity property. Exactly one match key is supported"New value: +"Dynamic destinations only. How alert values are matched to catalog entity properties. An alert routes to the entities that match every key. Each key uses a different property. A second key is only available when matching on more than one property is enabled for the organization"
    • changedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / description
      Previous value: -"Value normalizers. Not supported yet: send the booleans as false and the strings as null or empty, or leave normalizers out"New value: +"How the alert value is cleaned up before it is compared with the catalog property. Only available when value normalization is enabled for the organization; otherwise the booleans are ignored and a prefix or suffix is rejected"
    • addedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / properties / extract_pattern / description
      Added value: +"Not supported. Leave it null or empty"
    • changedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / properties / ignore_case / default
      Previous value: -falseNew value: +true
    • addedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / properties / ignore_case / description
      Added value: +"Compare the alert value and the catalog value without regard to case"
    • changedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / properties / ignore_whitespace / default
      Previous value: -falseNew value: +true
    • addedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / properties / ignore_whitespace / description
      Added value: +"Compare the alert value and the catalog value with all whitespace removed"
    • addedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / properties / strip_prefix / description
      Added value: +"Removed once from the start of the alert value. Up to 100 characters"
    • addedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / items / properties / normalizers / properties / strip_suffix / description
      Added value: +"Removed once from the end of the alert value. Up to 100 characters"
    • changedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / match_keys / maxItems
      Previous value: -1New value: +2
    • changedInput schema / properties / data / properties / attributes / properties / rules / items / properties / destinations / items / properties / target_type / enum
      Previous value: -[
      -  "Service",
      -  "Group",
      -  "Functionality",
      -  "EscalationPolicy",
      -  "dynamic"
      -]New value: +[
      +  "Service",
      +  "Group",
      +  "Functionality",
      +  "EscalationPolicy",
      +  "CatalogEntity",
      +  "dynamic"
      +]
    • removedInput schema / properties / data / properties / attributes / properties / rules / items / properties / enabled
      Removed value: -{
      -  "default": true,
      -  "description": "[DEPRECATED] Ignored under advanced routing (rules always evaluate) - disable the alert route instead. Still honoured on legacy routing.",
      -  "type": "boolean"
      -}
  2. Addedv2.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare not-read-only and not-idempotent; the description adds substantial behavior: async rule processing, automatic async triggering on oversized rule graphs (counted including rules already on the route), and the consequence that the returned rules list may be stale with a refetch/poll remedy. Minor inconsistency: it tells the agent to poll with a `request_id` "you supplied," but the schema exposes no such parameter.

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence, and the async caveat is broken out under a heading with a bolded "Important" warning, so the critical part is easy to find. There is some waste — the support-contact instruction appears twice and the section discusses update semantics inside a create tool.

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?

An output schema exists, so return values need not be spelled out, and the description still covers the one thing that matters about the response: rules may not appear immediately. Access gating and async behavior are covered; what's missing is any orientation to the deeply nested request body or to the sibling create/update tools.

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

Parameters3/5

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

Schema description coverage is reported at 0% for the single top-level `data` parameter, so the description should compensate and largely does not — it never describes `data`, `attributes`, or `alerts_source_ids`. It does add meaning about the rules payload (graph size measurement, dependent records), which is more than nothing, but it is not parameter-level guidance.

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

Purpose4/5

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

"Creates a new alert route from provided data" gives a specific verb plus resource, and "new" implicitly separates it from update_alert_route / patch_alert_route. However, it never names those siblings or explains the boundary with create_alert_routing_rule, so an agent must infer the create-vs-modify distinction.

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

Usage Guidelines3/5

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

It states a real prerequisite ("requires access to Advanced Alert Routing... contact Rootly customer support"), which is useful gating information. But there is no when-to-use-this-vs-alternative guidance and no when-not-to-use case, so routing between this and the routing-rule tools is left to inference.

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

Deploy Server

Other Tools