Skip to main content
Glama

Get audit status

get_audit_status
Read-only

Poll 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

NameRequiredDescriptionDefault
run_idYesRun id returned by run_audit or listed by list_audits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +{}
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the safe-read profile, and the description layers substantial behavior on top: polling cadence, progress field semantics during crawl, publishing-phase delay, queue position and eta when cloud capacity is busy, and failure_reason_code/failure_next_step/failure_diagnostics so the agent can act on cause rather than error text. It also warns about credit charges for recurring audits and the null-health_score cases, none of which are derivable from the annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical directive is front-loaded, but the body is a single unstructured block of very high density, with repeated "keep polling" instructions and field-by-field exposition that could be broken into sections or trimmed. It is informative rather than wasteful, yet hard to scan and longer than the polling contract requires.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden of explaining return values and does so across every status branch, including the publishing, queued, completed, failed and cancelled cases. An agent has enough to loop correctly and to hand off to get_report without further inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter with 100% schema description coverage, so the schema already explains run_id and the description mostly restates its provenance. The description adds no format or validation detail beyond what the schema states, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource and its identifier source: "Poll a running audit by run_id (from run_audit or list_audits)". It also draws the boundary against the closest sibling by name, telling the agent not to call get_report until status is completed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use (queued/pending/running → keep polling every 15-30s), when-not-to (do not start the audit again; do not call get_report while publishing), and the transition condition into get_report. Terminal states and their follow-ups are enumerated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.