heartbeat
heartbeatWatch 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
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| url | No | ||
| days | No | ||
| name | No | ||
| token | No | ||
| action | No | create (default when url is given), status, extend, cancel | |
| method | No | GET (default), HEAD or POST | |
| expect_text | No | ||
| webhook_url | No | ||
| expect_status | No | ||
| interval_minutes | No |