Skip to main content
Glama
Rootly MCP server

Rootly MCP server

Official
by rootlyhq

Patch Alert Route

patch_alert_route
DestructiveIdempotent

Updates an existing alert route's name, enabled status, owning teams, alert sources, and routing rules so alerts reach the right destinations. Requires Advanced Alert Routing access.

Instructions

Updates an alert route. 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.

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": "patch_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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=true, idempotent=true and openWorld=true, so the safety profile is covered. The description adds a genuine gating fact beyond structured data: the endpoint requires Advanced Alert Routing entitlement and support contact when access is uncertain. It does not disclose the partial-update semantics implied by 'patch' or that nested rules/destinations can be removed via _destroy.

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?

Two short sentences with the purpose front-loaded and the access caveat second, which is the right ordering. The access note is somewhat verbose in its support-contact boilerplate but is legitimately actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a deeply nested mutation tool this is minimal: it omits the patch-vs-replace distinction and the fact that omitting fields preserves them while _destroy removes nested entities. These gaps are partly offset by annotations and an output schema, but an agent still needs to infer the mutation contract.

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?

The description says nothing about the id or data parameters. However, the input schema is unusually thorough, with per-field descriptions for the nested attributes, rules, destinations, match_keys and condition structures, so the schema carries the semantic load. At 50% top-level coverage the baseline of 3 is appropriate, though naming required fields would have helped.

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 description names a specific verb and resource ('Updates an alert route'), so the agent knows the operation type. It does not distinguish this from the sibling update_alert_route, leaving ambiguous whether this is a partial patch versus a full replacement.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no comparison against update_alert_route or create_alert_route. The only conditional statement is an access prerequisite about Advanced Alert Routing, which tells the agent who can call it, not when to choose it over an alternative.

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