Get audit status
get_audit_statusPoll a running audit by run_id (from run_audit or list_audits). Status queued/pending/running means keep polling (every 15-30 seconds): the response includes a progress field (phase, message, current, total, failed, pending, updated_at) when available. During the crawl, current is pages done, total is the page budget (the most pages this run will crawl, not a copy of current), failed is pages that failed and pending is pages still queued; they keep their last known values when a newer status line carries none. progress.phase is one of crawling (also crawl), external-links, rules (running audit rules), or publishing (the audit is done and the report is being built and published: this takes a minute or two, keep polling and do not call get_report until status is completed). get_report answers REPORT_PENDING with the same phase while the run is publishing. Status queued means cloud audits are busy and the run is waiting for a slot: it starts by itself, and its queue field gives its position, a rough eta_minutes (null when unknown) and a message to pass on. Do not start the audit again. Status completed means the report is ready: call get_report with the same run_id. Status failed/cancelled includes the error and completion reason. A failed run also carries failure_reason_code (one of dns, tls, connection, timeout, http_4xx, http_5xx, redirect, robots, audit_timeout, stalled, api_deadline, dispatch_failed, unknown) and failure_next_step, so you can act on the cause rather than parsing the error sentence, plus failure_diagnostics: attribution (target_site, squirrelscan, mixed or unknown; never guess past it), category, stage, the observations that support it, what remains uncertain, and the bounded list of fetch attempts; legacy is true when the run predates recorded evidence. A cancelled run has none of these, because it was stopped rather than defeated by the site. health_score, issues_found and report_id stay null while the status is queued, pending or running: a run that is still publishing has no fetchable report yet. A run that ended (completed, failed or cancelled) returns the ones it has, so a failed run with a published notice report still carries its report_id. Once the run has a report, health_score and issues_found are read from that published report, so they equal get_report's summary.healthScore and its failed+warnings (#1700). health_score is null for a blocked or unreachable site: that audit has no meaningful grade. It is also null, with partial: true, for a run started with a rule include filter (run_audit rules): a score computed from a subset of the rules is not the site's score (get_report returns the per-rule results of such a run instead). A completed run also carries a schedule field describing the website's recurring audits: state is off, active, capped, unschedulable or paused, cadence_label reads as a sentence, settings_url is where the user changes the cadence or turns it off, and cap says how many scheduled sites the plan funds and how many are spent. estimated_cost is the most those runs spend per run, week and month. Recurring audits turn on by themselves after a site's first successful audit and each run costs credits, so pass that on rather than leaving the user to discover the charge.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "get_audit_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | Run id returned by run_audit or listed by list_audits. |