Skip to main content
Glama

Update a heartbeat

update_heartbeat
DestructiveIdempotent

Update a heartbeat by ID, the fields left out keep their current value and the ones sent replace it entirely, like the whole tags list. A new interval or grace expects the next ping within the new interval and grace from now, and the ping URL stays the same.

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

Input Schema

NameRequiredDescriptionDefault
nameNoHeartbeat name
tagsNoResource tags, made of lowercase letters, numbers, `.`, `_`, `:` and `-`. An organization can have up to 200 tags.
graceNoTime allowed after an expected ping before it counts as missed, in seconds, a whole number of minutes from 1 minute to 7 days
intervalNoExpected time between two pings, in seconds, a whole number of minutes from 1 minute to 31 days
project_idYesID of the project to act on, see whoami
display_nameNoPublic name of the heartbeat on status pages, defaults to the heartbeat name
heartbeat_idYesID of the heartbeat to update
incident_confirmationsNoNumber of uninterrupted missed or failed pings required to create an incident
recovery_confirmationsNoNumber of uninterrupted successful pings required to resolve an incident

Output Schema

NameRequiredDescriptionDefault
idNoHeartbeat ID
nameNoHeartbeat name
tagsNoResource tags, made of lowercase letters, numbers, `.`, `_`, `:` and `-`. An organization can have up to 200 tags.
graceNoTime allowed after an expected ping before it counts as missed, in seconds, a whole number of minutes from 1 minute to 7 days
pausedNoWhether the heartbeat is currently paused
statusNoHeartbeat current status, `waiting` until its first ping, and until its next ping after an incident is recovered or deleted by hand
intervalNoExpected time between two pings, in seconds, a whole number of minutes from 1 minute to 31 days
ping_urlNoURL to request with GET, HEAD or POST when the job succeeds, add `/fail` to report a failure
created_atNoDate of creation for the entity
project_idNoParent project ID
updated_atNoDate of last update for the entity
display_nameNoPublic name of the heartbeat on status pages, defaults to the heartbeat name
last_pinged_atNoDate of the last successful or failed ping with a 1 minute accuracy
incident_confirmationsNoNumber of uninterrupted missed or failed pings required to create an incident
recovery_confirmationsNoNumber of uninterrupted successful pings required to resolve an incident

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is known. The description adds real behavior beyond that: sent fields replace entirely including the whole tags list (the destructive surface), a new interval or grace re-bases the next expected ping from now, and the ping URL is preserved. It omits auth/permission requirements, which keeps it from a 5.

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?

A single front-loaded sentence that begins with the verb and resource, and every clause carries useful information. It is somewhat run-on with its chained clauses, but nothing is redundant.

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 9-parameter mutation tool with an output schema and full annotation coverage, the description supplies the key behavioral facts an agent needs: partial-update semantics, list replacement, and interval/grace re-basing. Only the sibling routing guidance (pause/resume/delete) is missing.

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. The description goes beyond it with replacement semantics for list fields like tags and the timing effect of interval/grace on the next ping expectation, both of which are not encoded in the schema.

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?

States a specific verb and resource ('Update a heartbeat by ID'), which is unambiguous. It does not, however, distinguish itself from siblings like pause_heartbeat, resume_heartbeat, or create_heartbeat, so the agent must infer the boundary from the name alone.

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 implies usage by explaining that omitted fields keep their current value, which suggests a partial-update scenario. It gives no explicit when-to-use versus alternatives (e.g., use pause_heartbeat to temporarily stop pings) and states no prerequisites or exclusions.

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.

Resources