Healthchecks

v0.3.0
io.github.ni-c/healthchecks-mcp Checked 2 days ago Published 2 months ago

Inspect, create and adjust Healthchecks cron and uptime checks, and read why one failed

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_checks List checks

Lists the checks in the project the API key belongs to, newest state first. API keys are per project, so this never spans projects. Descriptions are omitted here — call get_check for one.

ParameterTypeDescription
limitintegerDefault 50.
slugstringOnly checks with this slug. Slugs are not unique, so this can match several.
statusstringFiltered client-side; the API has no status filter.
tagarrayOnly checks carrying all of these tags.

get_check Get check

Fetches one check with all its fields, including the description and the keyword filters. Accepts a UUID, or the unique_key that a read-only API key returns in place of one.

ParameterTypeDescription
check *stringCheck UUID, or the unique_key that a read-only API key returns instead.

list_pings List pings

Lists recent pings of a check, newest first. The instance caps this at 100 pings on a free plan and 1000 on a paid one, and there is no pagination, so older pings cannot be reached at all. Note: Healthchecks requires a read-write API key for this endpoint even though it only reads. A read-only key is refused with HTTP 401 "wrong api key", which is not what it sounds like. Call get_api_key_info to check which kind is configured. With a read-only key this tool cannot even be *called* correctly: it addresses a check by uuid, and a read-only key never sees one — list_checks answers with a 40-ch…

ParameterTypeDescription
check *stringThe check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one.
limitintegerDefault 50.
typestringFiltered client-side.

get_ping_body Get ping body

Returns the body that was POSTed with one ping — usually the output of the job that reported in, which is the fastest way to see why a check failed. Truncated at 64 KB. Note: Healthchecks requires a read-write API key for this endpoint even though it only reads. A read-only key is refused with HTTP 401 "wrong api key", which is not what it sounds like. Call get_api_key_info to check which kind is configured. With a read-only key this tool cannot even be *called* correctly: it addresses a check by uuid, and a read-only key never sees one — list_checks answers with a 40-character unique_key…

ParameterTypeDescription
check *stringThe check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one.
n *integerPing number `n`, as reported by list_pings.

list_flips List status flips

Lists the up/down transitions of a check — the history behind its current status. The instance keeps the current month and the two before it. Accepts a UUID or a unique_key.

ParameterTypeDescription
check *stringCheck UUID, or the unique_key that a read-only API key returns instead.
endintegerOnly flips older than this.
limitintegerDefault 50.
secondsintegerOnly flips from the last N seconds.
startintegerOnly flips newer than this.

list_integrations List integrations

Lists the notification integrations of the project, with the UUIDs that create_check and update_check accept in their channels argument. Integrations themselves can only be created in the web UI. Note: Healthchecks requires a read-write API key for this endpoint even though it only reads. A read-only key is refused with HTTP 401 "wrong api key", which is not what it sounds like. Call get_api_key_info to check which kind is configured. With a read-only key this tool cannot even be *called* correctly: it addresses a check by uuid, and a read-only key never sees one — list_checks answers with…

list_badges List badges

Lists the status badge URLs of the project, one entry per tag plus "*" for the project as a whole. The plain variants treat a check in its grace period as up; the ones suffixed 3 report up, late and down separately.

get_status Get instance status

Checks that the configured Healthchecks instance is reachable and its database is answering. Needs no API key, so it is the tool to try first when something is not working.

get_api_key_info Get API key info

Reports which instance is configured, whether the API key works, and whether it is a read-only or a read-write key — which decides whether list_pings, get_ping_body and list_integrations can be used at all, and whether checks are identified by uuid or by unique_key.

create_check Create check

Creates a check. Pass either timeout (a simple period) or schedule (a cron or systemd OnCalendar expression), never both. Unless channels says otherwise, the new check notifies every integration in the project ("*"), because a check with no integrations never alerts anyone. Setting unique turns this into an upsert that may UPDATE an existing check.

ParameterTypeDescription
channelsIntegrations to notify: "*" for all of them (the default here), or a list of UUIDs or exact names from list_integrations.
descstringFree-text description shown in the Healthchecks UI.
failure_kwarrayKeywords that mark a ping as failure.
filter_bodybooleanApply the keywords to email bodies.
filter_default_failbooleanTreat a ping matching no keyword as a failure instead of a success.
filter_http_bodybooleanApply the keywords to HTTP ping bodies.
filter_subjectbooleanApply the keywords to email subjects.
graceintegerGrace period before a late check is reported down, in seconds (60 … 31536000).
manual_resumebooleanWhen true, a paused check ignores pings until resume_check is called.
methodsstringAllowed ping methods: "" accepts HEAD, GET and POST, "POST" accepts only POST.
namestringDisplay name of the check.
schedulestringA cron expression or a systemd OnCalendar expression; the instance detects which. Takes precedence over timeout, so the two cannot be combined.
slugstringExplicit slug. Requires an instance with API v3.
start_kwarrayKeywords that mark a ping as "start".
success_kwarrayKeywords that mark a ping as success.
tagsarrayTags. Stored space-delimited upstream, so no tag may contain a space.
timeoutintegerExpected period between pings, in seconds (60 … 31536000). Mutually exclusive with schedule.
tzstringTime zone for schedule, e.g. "Europe/Berlin". Only meaningful with schedule.
uniquearrayTurns this call into an upsert: if an existing check matches on all of these fields, it is UPDATED instead of a new one being created.

update_check Update check

Updates a check. Fields that are not given stay unchanged. Two exceptions: channels REPLACES the integration list rather than adding to it, and setting schedule on a check that used timeout switches it over. Needs a UUID, which read-only API keys never see.

ParameterTypeDescription
check *stringThe check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one.
channelsIntegrations to notify: "*" for all of them, or a list of integration UUIDs or exact names (see list_integrations). Replaces the current set, it does not merge. An empty list is refused — it would l…
descstringFree-text description shown in the Healthchecks UI.
failure_kwarrayKeywords that mark a ping as failure.
filter_bodybooleanApply the keywords to email bodies.
filter_default_failbooleanTreat a ping matching no keyword as a failure instead of a success.
filter_http_bodybooleanApply the keywords to HTTP ping bodies.
filter_subjectbooleanApply the keywords to email subjects.
graceintegerGrace period before a late check is reported down, in seconds (60 … 31536000).
manual_resumebooleanWhen true, a paused check ignores pings until resume_check is called.
methodsstringAllowed ping methods: "" accepts HEAD, GET and POST, "POST" accepts only POST.
namestringDisplay name of the check.
schedulestringA cron expression or a systemd OnCalendar expression; the instance detects which. Takes precedence over timeout, so the two cannot be combined.
slugstringExplicit slug. Requires an instance with API v3.
start_kwarrayKeywords that mark a ping as "start".
success_kwarrayKeywords that mark a ping as success.
tagsarrayTags. Stored space-delimited upstream, so no tag may contain a space.
timeoutintegerExpected period between pings, in seconds (60 … 31536000). Mutually exclusive with schedule.
tzstringTime zone for schedule, e.g. "Europe/Berlin". Only meaningful with schedule.

pause_check Pause check

Pauses a check: it stops expecting pings and stops alerting. resume_check puts it back, and nothing is lost in between — so this is not asked about. It does mean a job that stops running goes unnoticed while the check is paused.

ParameterTypeDescription
check *stringThe check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one.

resume_check Resume check

Resumes a paused check and puts it back into the "new" state, waiting for its next ping. Fails with HTTP 409 if the check is not paused.

ParameterTypeDescription
check *stringThe check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one.

delete_check Delete check

Deletes a check permanently. Its UUID is not recoverable, so every deployed script pinging that URL breaks. Two-step: the first call returns a confirmation token, the second call with that token deletes.

ParameterTypeDescription
check *stringThe check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one.
confirm_tokenstringToken from a previous call of this tool.