Skip to main content
Glama

List audits

list_audits
Read-only

List the organization's audit runs: currently active (queued/pending/running; queued means waiting for a free cloud slot, and it starts by itself) plus recent runs of any status. Pass website_id (from list_websites) to get one website's full audit history, oldest runs included, and page through it with limit/offset using the returned total/has_more. This is the way to reach the preserved reports of a soft-deleted website: its runs still list under its old website_id. total/has_more describe the recent array only, and recent already includes any queued/pending/running run, so active is a live view of those same runs and not extra items to add to the count. Use the run ids with get_audit_status or get_report, and website ids with list_issues. Numbers on a recent run come from its published report (#1700), and only once the run has ended: a queued, pending or running run shows null for health_score, issues_found and report_id, as get_audit_status does: health_score is that report's overall score (the same value as get_report's summary.healthScore; null when the site was blocked or down, which earns no grade, and null with partial: true on a run started with a rule include filter, whose subset score is withheld) and issues_found is the report's failing + warning checks (its summary.failed + summary.warnings). health_score is the metric to compare run over run: it is the only one rescored consistently across the whole site. Do NOT compare issues_found with the open count from list_issues: the issue tracker folds a rule failing on many pages into one open issue and carries issues forward until they are re-checked, so its count is legitimately much smaller and moves independently.

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": "list_audits"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax recent runs to return (default 20, max 100).
offsetNoPagination offset into the recent runs (default 0). Use with total/has_more.
website_idNoOnly return runs of this website (id from list_websites, run_audit, or add_website). Works for soft-deleted websites too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +{}
  2. Changed3 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
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
  3. Changed4 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max recent runs to return (default 20)."New value: +"Max recent runs to return (default 20, max 100)."
    • changedInput schema / properties / limit / maximum
      Previous value: -50New value: +100
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Pagination offset into the recent runs (default 0). Use with total/has_more.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / website_id
      Added value: +{
      +  "description": "Only return runs of this website (id from list_websites, run_audit, or add_website). Works for soft-deleted websites too.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly and non-destructive annotations, it discloses active-state semantics (queued means waiting for a free slot and starts automatically), null behavior for unfinished runs, and the meaning of health_score and issues_found derived from the published report. It also explains total/has_more scope and that active is a live view rather than extra items, which is exactly the behavioral context an agent needs.

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 core purpose is front-loaded, but the description becomes a dense wall of nested parentheticals covering report scoring, null semantics, and issue-count caveats. Much of that detail is valuable, yet several clauses repeat or over-explain the same distinction between recent, active, and total/has_more.

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?

For a read-only listing tool with no output schema, the description is complete: it covers filtering, pagination, the active/recent distinction, null values on unfinished runs, scoring semantics, and cross-tool follow-ups. An agent has enough context to call it correctly and interpret the returned fields.

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

Parameters4/5

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

The schema already documents all three parameters at 100% coverage, so the baseline is 3. The description adds meaningful semantics beyond the schema: website_id also works for soft-deleted websites and returns the oldest runs, and limit/offset paginate the recent array using total/has_more.

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?

The description opens with a specific verb and resource: it lists the organization's audit runs, split into active and recent. It clearly distinguishes this listing tool from get_audit_status and get_report, and explains what website_id does differently from the unfiltered listing.

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?

It gives explicit guidance on when to pass website_id for full history versus when to rely on the default active-plus-recent view, and it explains how to page with limit/offset using total/has_more. It also names the follow-up tools (get_audit_status, get_report, list_issues) and explicitly warns against comparing issues_found with list_issues' open count.

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.