Skip to main content
Glama

Create a heartbeat

create_heartbeat

Create a heartbeat expecting a ping from a cron job or a worker at a regular interval, it opens an incident once the missed or failed pings are confirmed. The job requests its ping_url with GET, HEAD or POST when it succeeds, with /fail appended when it fails. It stays waiting without any incident until its first ping.

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>",
      "name": "<name>",
      "display_name": "<display_name>",
      "interval": "<interval>",
      "grace": "<grace>",
      "incident_confirmations": "<incident_confirmations>",
      "recovery_confirmations": "<recovery_confirmations>"
    },
    "name": "create_heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesHeartbeat name
tagsNoResource tags, made of lowercase letters, numbers, `.`, `_`, `:` and `-`. An organization can have up to 200 tags.
graceYesTime allowed after an expected ping before it counts as missed, in seconds, a whole number of minutes from 1 minute to 7 days
intervalYesExpected 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_nameYesPublic name of the heartbeat on status pages, defaults to the heartbeat name
incident_confirmationsYesNumber of uninterrupted missed or failed pings required to create an incident
recovery_confirmationsYesNumber 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.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the ping_url contract (GET/HEAD/POST, `/fail` suffix for failures), that incidents are only opened after confirmations, and the `waiting` state before the first ping. It omits creation-side concerns such as name uniqueness or duplicate handling, which keeps it at a 3.

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?

Three tight sentences that front-load the purpose and then layer in the ping contract and the pre-first-ping state. No filler, though the ping mechanics sentence is dense and could be split for readability.

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?

An output schema exists, so return values need no explanation, and the description adequately covers the lifecycle behavior an agent needs before calling. Minor gaps remain around creation edge cases (duplicate names, per-project constraints) for a tool with 7 required parameters.

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?

Schema description coverage is 100%, so every one of the 8 parameters is already documented, including interval, grace and the confirmation enums. The description adds no parameter-level meaning — the only URL it mentions, `ping_url`, is an output rather than an input. Baseline 3 applies.

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?

States a specific verb and resource ('Create a heartbeat') and immediately defines the mechanism — a ping expected from a cron job or worker at a regular interval that opens an incident on confirmed missed/failed pings. That mechanism distinguishes it from the monitor/alert-rule siblings 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?

The opening clause gives a clear use case (cron jobs or workers pinging on a schedule), which is enough context to select this tool over a monitor. It stops short of explicitly naming an alternative or stating when-not to use it, so it falls short of a 5.

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