Skip to main content
Glama

Update a heartbeat monitor

update_heartbeat
Idempotent

Modify a heartbeat's name, period, grace, channels, or tags while keeping omitted fields unchanged, so monitoring settings and deadlines stay current.

Instructions

Change one heartbeat's name, timing, channels or tags; only the fields you pass change. A new period or grace moves the current deadline (overdue_at) at once, counted from the last ping; a heartbeat with no running deadline (no ping or start since it was created or resumed, paused, or already down) is left without one. If the new deadline has already passed, the heartbeat is reported late within about 30 seconds. To stop or restart late alerts use pause_heartbeat or resume_heartbeat instead; to retag many heartbeats use bulk_update_heartbeat_tags. ping_url never changes. Requires a key with the write scope. An invalid argument is a 422 naming it; never send null. Returns the heartbeat. Example: {"heartbeat_id": "", "grace_seconds": 7200}

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": {
      "heartbeat_id": "<heartbeat_id>"
    },
    "name": "update_heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name, 1 to 255 characters.
tagsNoReplaces the whole tag list when passed, at most 10; [] clears it; omit it to keep the tags. Each tag is trimmed, lowercased and deduplicated on write, at most 50 characters of a-z, 0-9 and : _ . / -, starting with a letter or digit. Reuse names from list_tags rather than inventing near-duplicates.
channel_idsNoNotification channel uuids from list_channels; email addresses are channels too. When passed it replaces the whole binding: only the listed channels are alerted, nobody else is emailed implicitly; [] clears it, after which every working channel is alerted; omit it to keep the binding. A newly added id must be an active channel of this organization (else 404); resending a channel that is already bound keeps it even if it is muted, and it gets no alerts while muted. Once every bound channel is deleted, every working channel is alerted. If none of the channels works, the organization's owner is emailed.
heartbeat_idYesThe heartbeat's uuid from list_heartbeats. An id that is not a heartbeat of this organization, or a deleted one, is a 404.
grace_secondsNoExtra seconds of silence tolerated after the period before the heartbeat is reported late, 0 to 2592000; it may exceed the period.
period_secondsNoHow often the job runs, 60 to 2592000 seconds. To ping every N seconds and be alerted after T seconds of silence, set period_seconds = N and grace_seconds = T - N (T at least N).

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
tagsNo
stateYesKnown values: PENDING, UP, DOWN, PAUSED.
ping_urlYes
is_activeYes
created_atYes
overdue_atYes
updated_atYes
channel_idsNoBound notification channels. Empty means every working channel of the organization is alerted.
last_ping_atYes
grace_secondsYes
last_start_atYes
period_secondsYes
last_success_atYes
last_duration_msYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.6.0
    • changedInput schema / properties / channel_ids / description
      Previous value: -"Notification channel uuids from list_channels. When passed it replaces the whole binding; [] clears it, after which every verified, active channel is alerted; omit it to keep the binding. An id that is not an active channel of this organization is a 404."New value: +"Notification channel uuids from list_channels; email addresses are channels too. When passed it replaces the whole binding: only the listed channels are alerted, nobody else is emailed implicitly; [] clears it, after which every working channel is alerted; omit it to keep the binding. A newly added id must be an active channel of this organization (else 404); resending a channel that is already bound keeps it even if it is muted, and it gets no alerts while muted. Once every bound channel is deleted, every working channel is alerted. If none of the channels works, the organization's owner is emailed."
    • removedInput schema / properties / notification_cooldown_seconds
      Removed value: -{
      -  "description": "60 to 86400 seconds; 1800 when not set on create. Only holds back a duplicate first alert for the same incident within that window. Repeat reminders while an incident stays open and unacknowledged follow the plan's renotify_interval_seconds and renotify_max_count (get_plan_usage; 0 means no reminders) instead, and the recovery alert is never held back.",
      -  "maximum": 86400,
      -  "minimum": 60,
      -  "type": "integer"
      -}
    • addedOutput schema / properties / channel_ids / description
      Added value: +"Bound notification channels. Empty means every working channel of the organization is alerted."
    • removedOutput schema / properties / notification_cooldown_seconds
      Removed value: -{
      -  "type": "integer"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "state",
      -  "period_seconds",
      -  "grace_seconds",
      -  "ping_url",
      -  "last_ping_at",
      -  "last_success_at",
      -  "last_start_at",
      -  "last_duration_ms",
      -  "overdue_at",
      -  "notification_cooldown_seconds",
      -  "is_active",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "id",
      +  "name",
      +  "state",
      +  "period_seconds",
      +  "grace_seconds",
      +  "ping_url",
      +  "last_ping_at",
      +  "last_success_at",
      +  "last_start_at",
      +  "last_duration_ms",
      +  "overdue_at",
      +  "is_active",
      +  "created_at",
      +  "updated_at"
      +]
  2. Changed8 schema fields changedv0.6.1
    • addedInput schema / properties / channel_ids / description
      Added value: +"Notification channel uuids from list_channels. When passed it replaces the whole binding; [] clears it, after which every verified, active channel is alerted; omit it to keep the binding. An id that is not an active channel of this organization is a 404."
    • addedInput schema / properties / grace_seconds / description
      Added value: +"Extra seconds of silence tolerated after the period before the heartbeat is reported late, 0 to 2592000; it may exceed the period."
    • addedInput schema / properties / heartbeat_id / description
      Added value: +"The heartbeat's uuid from list_heartbeats. An id that is not a heartbeat of this organization, or a deleted one, is a 404."
    • addedInput schema / properties / name / description
      Added value: +"Display name, 1 to 255 characters."
    • addedInput schema / properties / notification_cooldown_seconds / description
      Added value: +"60 to 86400 seconds; 1800 when not set on create. Only holds back a duplicate first alert for the same incident within that window. Repeat reminders while an incident stays open and unacknowledged follow the plan's renotify_interval_seconds and renotify_max_count (get_plan_usage; 0 means no reminders) instead, and the recovery alert is never held back."
    • addedInput schema / properties / period_seconds / description
      Added value: +"How often the job runs, 60 to 2592000 seconds. To ping every N seconds and be alerted after T seconds of silence, set period_seconds = N and grace_seconds = T - N (T at least N)."
    • addedInput schema / properties / tags / description
      Added value: +"Replaces the whole tag list when passed, at most 10; [] clears it; omit it to keep the tags. Each tag is trimmed, lowercased and deduplicated on write, at most 50 characters of a-z, 0-9 and : _ . / -, starting with a letter or digit. Reuse names from list_tags rather than inventing near-duplicates."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "channel_ids": {
      +      "items": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "grace_seconds": {
      +      "type": "integer"
      +    },
      +    "id": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "is_active": {
      +      "type": "boolean"
      +    },
      +    "last_duration_ms": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "last_ping_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "last_start_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "last_success_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "notification_cooldown_seconds": {
      +      "type": "integer"
      +    },
      +    "overdue_at": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "period_seconds": {
      +      "type": "integer"
      +    },
      +    "ping_url": {
      +      "type": "string"
      +    },
      +    "state": {
      +      "description": "Known values: PENDING, UP, DOWN, PAUSED.",
      +      "type": "string"
      +    },
      +    "tags": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "updated_at": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name",
      +    "state",
      +    "period_seconds",
      +    "grace_seconds",
      +    "ping_url",
      +    "last_ping_at",
      +    "last_success_at",
      +    "last_start_at",
      +    "last_duration_ms",
      +    "overdue_at",
      +    "notification_cooldown_seconds",
      +    "is_active",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.5.4

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations' basic mutation and safety profile, it discloses deadline recomputation from the last ping, behavior when no deadline is running, approximately 30-second late-reporting latency, the immutable ping_url, write-scope authorization, and 422 error behavior. These details cover important side effects, edge cases, and prerequisites rather than merely restating that an update occurs.

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?

The opening sentence front-loads scope and partial-update behavior, and the subsequent alternatives, authorization, error handling, and example all serve a purpose. The long parenthetical deadline sentence makes the single paragraph somewhat dense and harder to scan, preventing a perfect structure score.

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?

Together with the richly documented schema, annotations, and output schema, the description supplies everything needed for reliable selection and invocation of this six-parameter update. It covers field-selection semantics, timing edge cases, alert timing, immutable state, permissions, failures, alternatives, and a valid call pattern.

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?

Although the schema documents every parameter, the description adds cross-field patch semantics and explains how period_seconds and grace_seconds affect overdue_at under several heartbeat states. The prohibition on null and the example using an ID from list_heartbeats with grace_seconds provide additional practical invocation guidance.

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?

The description states that the tool changes one heartbeat and identifies the mutable areas: name, timing, channels, and tags. Its single-heartbeat scope and explicit references to pause/resume and bulk-retagging tools distinguish it from relevant siblings.

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

Usage Guidelines5/5

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

It explicitly directs agents to pause_heartbeat or resume_heartbeat for stopping or restarting late alerts, and to bulk_update_heartbeat_tags for retagging multiple heartbeats. The partial-update rule and concrete example further clarify how this tool should be invoked.

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