Skip to main content
Glama

WatchFor

Update alert rule

update_alert_rule
Idempotent

Updates an alert rule (write scope): a threshold, the severity, enabled, or any other field sent; the rest stay. metric/operator/value are validated against the monitor type's catalog. A system rule (is_system) keeps what it watches: the Up/Down rule's condition and a type default's metric can't change (400). The response's warnings (empty when fine) says when the rule can never fire as the monitor is set up.

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": {
      "monitor_id": "<monitor_id>",
      "rule_id": "<rule_id>"
    },
    "name": "update_alert_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRule name
valueNoThreshold, as a string
metricNoExact metric string from the catalog
enabledNofalse switches the rule off, true back on
regionsNoNetwork-distance rules only (region_scoped: true): region slugs the rule is judged from. Omitted = unchanged; null or [] = all regions. Refused on Offline and every other rule.
rule_idYesAlert rule id (UUID)
operatorNoComparison operator, e.g. > or in_groups
severityNoIncident severity
monitor_idYesMonitor id (UUID)
duration_windowNoSeconds the condition must hold before the rule fires (0 = fire on the confirmed failure; omitted: the monitor's own setting on create, unchanged on update)
contact_group_idNoContact group id this rule notifies, in addition to the monitor's own groups (null removes it on update)
failure_thresholdNoConsecutive failing checks before an incident opens
min_failed_probesNoLocations that must report the failure in the same evaluation (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare write semantics, idempotency and non-destructiveness; the description adds real value on top by disclosing partial-update behavior, catalog validation of metric/operator/value, which fields are immutable on system rules with a 400 outcome, and that the response carries `warnings`. It stops short of permission or rate-limit details, but the extra behavioral context is substantial.

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?

Four dense sentences, front-loaded with the write-scope and partial-update rule, followed by validation and constraint details. The parenthetical "(write scope)" and the terse metavariable phrasing ("metric/operator/value") are slightly cryptic but not wasteful.

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?

For a 13-parameter mutation tool with 100% schema coverage and no output schema, the description covers the operation semantics, validation, error conditions and the returned `warnings` field. What remains, such as behavior for unknown rule_id or cross-monitor mismatches, is minor.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining that metric/operator/value are validated against the monitor type's catalog and that system rules constrain which watched metric or condition can change. It does not cover the regions or duration_window semantics in prose, which keeps it from a 5.

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 rule") and immediately scopes the operation as a partial update where only sent fields change. It is unambiguous against create/delete/list siblings by the operation it names, though it never states that distinction explicitly.

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?

Usage is implied by the partial-update semantics ("the rest stay") and by the system-rule caveats, which tell an agent when an update will be rejected. There is no explicit statement of when to use this vs create_alert_rule or list_alert_rules, so guidance remains inferential.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.