Skip to main content
Glama

WatchFor

Update monitor

update_monitor
Idempotent

Updates a monitor (write scope); only the fields sent change. config is merged into the stored config: an omitted key is kept, a key set to null is removed, any other value replaces it (arrays and nested objects whole); the result is validated against the monitor type. description: null clears it. confirmationThreshold / durationWindow / notificationGroupIds in config apply to every alert rule of the monitor (null resets each rule to its own default; notificationGroupIds: [] = nobody is notified; an id that is not one of the organization's contact groups is refused by name). Setting a value that drives an alert preset (body match, expectedValues, …) creates or switches on its rule; removing it switches the rule off. HTTP body match: config.keywordValue (+ keywordMode contains|not_contains, keywordPatternType text|wildcard|regex, keywordCaseInsensitive) is compiled into the regexp the check evaluates, like the dashboard card; failIfBodyNotMatchesRegexp / failIfBodyMatchesRegexp are the raw form, and both with different meanings is a 400. Expiry reminders: config.expiryReminderDays, e.g. [14, 3] (whole days 1–365, up to 5; http, api, mcp, ssl and rdap) re-notifies an open, unacknowledged certificate/domain expiry incident once when that many days are left. Write-only credentials (password, smtpPassword, receivePassword, privateKey, HTTP/API/MCP authPassword, bearerToken and credential request-header values) and requestBody read back as "[redacted]": an omitted secret or an echoed "[redacted]" keeps the stored value, the mask is never stored as a new value, and a header mask with nothing stored is a 400. {{NAME}} in an auth field, header value or body reads an organization variable or secret (Settings → Variables) instead of a literal secret. Changing the server, port, TLS mode or login a password is used with (for HTTP/API/MCP the URL host, port or scheme, or the basic-auth username), or setting verifyTls to false, requires the credential again in the same call, else 400 "Re-enter the …". The result carries check_queued: true when the change (target, port, credentials, TLS, request…) dispatched one immediate check, not counted against Run now.

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>"
    },
    "name": "update_monitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name, up to 50 characters
tagsNoTags, up to 10 (replaces the list)
configNoConfig keys to change, merged into the stored config
targetNoWhat to check, in the type's target format
intervalNoCheck interval in seconds, at least the plan's minimum
locationsNoProbe location ids: at least one, except on a heartbeat, which has none (omitted or [])
monitor_idYesMonitor id (UUID)
descriptionNoFree-text note, up to 500 characters; null clears it
scheduling_strategyNoroundrobin, random or parallel (plan-gated)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, idempotentHint=true, destructiveHint=false; the description adds far more than that: null removes a config key, arrays and nested objects are replaced whole, notificationGroupIds: [] silences all notifications, setting a preset-driving value toggles an alert rule on, secrets read back as "[redacted]" and the mask is never stored, and the response may carry check_queued: true. The one tension worth noting is that null-removal and notification silencing are lossy effects that a bare destructiveHint=false does not convey, but this is disclosure the description supplies rather than a contradiction.

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

Conciseness3/5

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

There is almost no filler sentence, and the highest-value rule (merge semantics) is front-loaded. But it is one dense semicolon-chained paragraph packing roughly a dozen distinct topics with no line breaks or grouping, which makes it hard to scan and easy to miss the credential re-entry rule buried mid-paragraph.

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

Completeness5/5

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

For a 9-parameter mutation with a free-form nested config object and no output schema, the description covers what an agent could plausibly get wrong: merge/clear semantics, plan-gated and type-validated values, credential redaction and re-entry, rule side effects, and the one noteworthy response field. The open question of which config keys a given monitor type accepts is bounded by the "validated against the monitor type" note and get_monitor_types.

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

Parameters5/5

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

Schema coverage is 100%, so 3 is the baseline, but the description goes well past the schema: it defines the merge algebra for config (omitted kept, null removed, other values replace), the meaning of config.confirmationThreshold/durationWindow/notificationGroupIds across every rule, how keywordValue/keywordMode/keywordPatternType compile, expiryReminderDays bounds, and the {{NAME}} variable syntax. These are semantics the schema's untyped additionalProperties object cannot express.

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

Purpose5/5

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

"Updates a monitor (write scope); only the fields sent change" gives a specific verb, a specific resource, and the crucial PATCH-vs-PUT semantic in one clause. That single statement separates it from create_monitor (full object) and get_monitor (read) without needing to name them.

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

Usage Guidelines4/5

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

No explicit "use X instead" routing, but the description spells out hard preconditions an agent must satisfy before invoking: re-supplying a credential in the same call when the server/port/TLS/basic-auth username changes, and the 400 when keywordValue and failIfBody* are both supplied with different meanings. That is operational when-to-use guidance, though exclusions relative to update_alert_rule / set_monitor_paused are left implicit.

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.