Skip to main content
Glama

heartbeat

heartbeat
Read-only

Watch another agent or endpoint and get a webhook when it goes down or comes back. Create a monitor with url, interval_minutes (2-1440, default 10), days (1-30, default 7, $0.05 per 7 days), optional expect_status, expect_text and webhook_url; we probe it on schedule from Cloudflare's edge, call the webhook on every state change (two consecutive failures = down, so one flaky probe never pages you) and keep uptime stats. action=status returns state, uptime %, last status, latency and error ($0.002); action=extend adds days (billed as a new period); action=cancel stops it. Returns id + token on create; keep the token. Costs $0.25 USDC per call (x402).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
urlNo
daysNo
nameNo
tokenNo
actionNocreate (default when url is given), status, extend, cancel
methodNoGET (default), HEAD or POST
expect_textNo
webhook_urlNo
expect_statusNo
interval_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior1/5

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

The description narrates rich behavior (Cloudflare-edge probing, two consecutive failures = down to avoid flaky paging, webhook on every state change, token retention, x402 pricing), but it describes monitor creation, extension and cancellation while annotations declare readOnlyHint=true. That is a direct contradiction of a mutating tool being labeled read-only.

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 the purpose, then it moves through create parameters, probe/write behavior, and cost per action. Dense but every clause carries information; a few fragments (e.g. the parenthetical pricing) could be tightened.

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?

With no output schema, the description steps up by describing returns (id + token on create; state/uptime/last status/latency/error on status), state-change semantics and per-call cost. A couple of params (name, method beyond the schema hint) remain unaddressed, and no rate/permission caveats are given.

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 only 18% across 11 params, yet the description adds concrete semantics: url, interval_minutes (2-1440, default 10), days (1-30, default 7, $0.05/7 days), optional expect_status/expect_text/webhook_url, and that the token must be kept. This meaningfully compensates for the thin schema documentation.

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: watch an agent/endpoint and fire a webhook on up/down state changes. It clearly conveys the monitoring function, though it never explicitly differentiates itself from the nearby 'watch' or 'services_status' siblings.

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?

It explains the four action modes (create/status/extend/cancel) and notes that create is the default when a url is supplied, which tells an agent how to route. It does not state when to prefer this over alternatives or any when-not conditions.

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