Loading...
Loading...
Add a Crontap dead-man's-switch heartbeat to an existing recurring job, inspect check-ins, and rotate its secret token safely. Use when a user needs alerts for a cron job that fails explicitly or stops running.
npx skill4agent add crontap/skills crontap-heartbeat-for-cron/failhttps://mcp.crontap.com/mcp$CRONTAP_CLIENT_ID$CRONTAP_API_KEY/fail{
"tool": "create_heartbeat",
"arguments": {
"name": "Nightly import",
"periodMinutes": 1440,
"graceMinutes": 30,
"emailCooldownMinutes": 60
}
}{
"tool": "get_heartbeat_pings",
"arguments": {
"heartbeatId": "<heartbeat-id>",
"day": "2026-09-14"
}
}{
"tool": "rotate_heartbeat_token",
"arguments": {
"heartbeatId": "<heartbeat-id>"
}
}CRONTAP_HEARTBEAT_URLrun_the_job &&
curl --fail --silent --show-error "$CRONTAP_HEARTBEAT_URL""$CRONTAP_HEARTBEAT_URL/fail?msg=bounded-error-summary"curl --fail-with-body https://api.crontap.com/v1/heartbeat \
-X POST \
-H "ClientId: $CRONTAP_CLIENT_ID" \
-H "ApiKey: $CRONTAP_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"name": "Nightly import",
"periodMinutes": 1440,
"graceMinutes": 30
}'fail