Skip to main content
Glama

Get a heartbeat

get_heartbeat
Read-onlyIdempotent

Get a heartbeat by ID, with its current status, ping URL, expected interval and date of the last 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>",
      "heartbeat_id": "<heartbeat_id>"
    },
    "name": "get_heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesID of the project to act on, see whoami
heartbeat_idYesID of the heartbeat to show

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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only a summary of returned fields, which an output schema already provides. It says nothing extra about error behavior for a bad ID or cross-project access.

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 with zero filler; the resource and the returned fields come first. Slightly more compact than needed but nothing is wasted or buried.

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 simple read-by-ID tool, everything an agent needs is present: annotations cover safety and idempotency, the schema fully documents both required parameters, and an output schema covers return values, so the description need not explain responses. No material gap remains for correct invocation.

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?

Both parameters are fully documented in the schema (100% coverage), including the pointer to whoami for project_id. The description's "by ID" reinforces heartbeat_id but adds no syntax, format, or constraint detail beyond the schema, so the baseline of 3 applies.

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 ("Get") and resource ("a heartbeat") scoped "by ID", and enumerates the salient returned fields (status, ping URL, interval, last ping). This clearly sets it apart from the mutation siblings like pause_heartbeat or delete_heartbeat, though it does not name an alternative retrieval tool 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 only implied: an agent can infer this is the way to look up one existing heartbeat's details, presumably before updating or pausing it. There is no explicit when-to-use statement, no prerequisites (e.g. permission or project context), and no guidance about using a list endpoint first to discover IDs.

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