Skip to main content
Glama
Rootly MCP server

Rootly MCP server

Official
by rootlyhq

Update Alert Route

update_alert_route
DestructiveIdempotent

Update a specific alert route by ID to modify routing rules, destinations, conditions, and enabled status.

Instructions

Update a specific alert route by id. 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 updates happen 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 includes the rules already on the route, not just those in the payload, so a small payload against a large route may still be processed asynchronously.

Important: Whenever rules are processed asynchronously, the rules list in the API response will not be up-to-date immediately after update. 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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>",
      "data": "<data>"
    },
    "name": "update_alert_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRequired. ID of the alert route (fills `{id}` in /v1/alert_routes/{id}). Pass it as `id` -- this tool has no `alert_route_id` argument.
dataYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 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"
      -}
    • removedInput schema / properties / data / properties / id
      Removed value: -{
      -  "description": "Accepted for JSON:API client compatibility, but ignored. The resource to update is identified by the id in the path.",
      -  "type": "string"
      -}
  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 already declare destructiveHint=true and idempotentHint=true, but the description adds substantive context the annotations cannot: a feature-gated prerequisite, background rule processing, the fact that size includes rules already on the route, and eventual consistency of the returned rules list. It stops short of saying explicitly that the rules array replaces all existing rules, which is the key destructive behavior an agent needs to know.

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, then prerequisites, then the async caveat under a clear heading. The async section is long relative to the rest, but each paragraph carries distinct information (feature gate, trigger condition, size metric, required follow-up), so little is wasted.

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?

With an output schema present, return values need not be explained, and the description correctly focuses on prerequisites, async behavior and eventual consistency. The remaining gap is update semantics — whether omitted fields are cleared or preserved — which matters for a destructive, full-replace-style endpoint on a deeply nested rules payload.

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 50%, but the nested schema itself is unusually detailed, documenting rules, destinations, match_keys, condition_groups and enum values inline. The description adds no parameter-level meaning beyond the `id` argument, so it neither compensates for the coverage gap nor improves on the schema — baseline 3.

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?

The first sentence gives a specific verb and resource with scope ('Update a specific alert route by id'), which is immediately actionable. It does not, however, distinguish itself from the sibling patch_alert_route, leaving the agent to guess whether this is a full-replace or partial-update operation.

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?

The description supplies a real prerequisite ('requires access to Advanced Alert Routing') and a post-call procedure (refetch or poll the async status endpoint), which is genuine usage guidance. It never states when to choose this tool over patch_alert_route or update_alert_routing_rule, so the core alternative-selection question is unanswered.

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