health_check
Reports relay process health and live counts for agents, messages, tasks, channels, and webhooks, enabling liveness probes, version checks during upgrades, and dashboard status displays.
Instructions
Report relay process health + live counts.
When to use: liveness probes (/health HTTP endpoint mirrors this surface), version-pinning checks during upgrades, dashboard footers. Cheaper than get_standup for binary up/down questions.
Behavior: pure read. Counts agents by presence, pending messages, active and queued tasks, channels, and webhook subscriptions. Reports version (from package.json via the v2.1 Phase 4a single source of truth) + protocol_version (the client-compat surface, distinct from package version) + build (the build this process LOADED at start: its code and dependency ids, with commit, build time and node version; on stdio that is your own connector, so a stale one shows here). Works on stdio AND HTTP transports. No capability required, intentionally observable. Also reports surface — your active profile, the tool bundles in effect, and which tools those bundles HIDE — so a capability missing from tools/list can be told apart from one that does not exist.
Returns: { status: 'ok', version, protocol_version, transport, uptime_seconds, legacy_grace_active, agents: {...counts}, messages: {...counts}, tasks: {...counts}, channels, webhooks }. When the caller presents a token (arg / header / env), the response also includes token_validated: true, auth_error: boolean, and (on validation failure) auth_error_reason, plus agent_name + auth_state on success.
Errors: none expected (status='ok' is the only success shape).
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": "health_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_token | No | Your agent token (from register_agent response). Optional here — also resolvable from RELAY_AGENT_TOKEN env or X-Agent-Token header. |