Skip to main content
Glama

Compare two audits

compare_audits
Read-only

Compare two completed audits of one website and get what changed. Defaults to the website's latest completed audit against the one before it; pass base/head run ids to compare any two. The DEFAULT answer is a short summary (a few hundred tokens): the score movement by category, totals for all eight kinds, and the new, worsened and resolved findings GROUPED by rule check (severity, how many pages, one example page and what it said), most severe first, 20 groups at a time with nextCursor for the rest. For rows pass detail="findings" (or any of kind, rule_id, page, include_*): every finding of the kinds you name, one rule or one page, paged with limit and cursor, with findingsMatching and findingsRemaining. The eight kinds: new, resolved, worsened, improved, unchanged (both audits published it), still_open (still there, but one audit did not list it: the evidence store says it is open although the newer audit did not republish it, or the older audit's capped report sampled it out; sampledOut marks a clipped one, which is never counted as new; a sampled class that fails more often is listed in sampledClassGrowth and still counts as a change), not_crawled (the page was not visited, so the issue is neither fixed nor still broken), or not_checked (the newer audit could not run that rule, a capped crawl's inbound-link rules or a check that did not run, so its issue is neither fixed nor still broken; skipReason says why). unchanged, still_open, not_crawled and not_checked rows come only when you ask for that kind; totals count every kind. resolutionEvidence says what backed the resolved verdicts; when it is "none" nothing is reported as fixed. A website with only one audit returns firstRun with no groups; an audit where nothing moved returns changed: false.

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": {
      "website_id": "<website_id>"
    },
    "name": "compare_audits"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoOlder run id. Default: the completed run before head.
headNoNewer run id. Default: the website's latest completed run.
kindNoRows of these kinds only (implies detail=findings). The only way to get unchanged, still_open, not_crawled or not_checked rows besides the include_* flags.
pageNoRows on this page URL only (implies detail=findings).
limitNoRows per page with detail=findings (default 100, at most 500). The summary always shows at most 20 groups per page; use nextCursor for the rest. Totals are never capped.
cursorNonextCursor from the previous answer, to continue the groups or the rows. Pass it with the same filters.
detailNosummary (default): totals, score movement and finding groups. findings: rows, filtered by kind, rule_id or page.
rule_idNoRows of this rule only (implies detail=findings).
website_idYesWebsite id from list_websites or run_audit.
include_unchangedNoInclude unchanged findings.
include_still_openNoInclude still-open findings (present per the evidence store, not republished).
include_not_checkedNoInclude not-checked findings (the newer audit could not run their rule).
include_not_crawledNoInclude not-crawled findings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "nextCursor from the previous answer, to continue the groups or the rows. Pass it with the same filters.",
      +  "maxLength": 400,
      +  "type": "string"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "summary (default): totals, score movement and finding groups. findings: rows, filtered by kind, rule_id or page.",
      +  "enum": [
      +    "summary",
      +    "findings"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Rows of these kinds only (implies detail=findings). The only way to get unchanged, still_open, not_crawled or not_checked rows besides the include_* flags.",
      +  "items": {
      +    "enum": [
      +      "new",
      +      "worsened",
      +      "resolved",
      +      "improved",
      +      "unchanged",
      +      "still_open",
      +      "not_crawled",
      +      "not_checked"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Max findings returned (default 100). Totals are never capped."New value: +"Rows per page with detail=findings (default 100, at most 500). The summary always shows at most 20 groups per page; use nextCursor for the rest. Totals are never capped."
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Rows on this page URL only (implies detail=findings).",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
    • addedInput schema / properties / rule_id
      Added value: +{
      +  "description": "Rows of this rule only (implies detail=findings).",
      +  "maxLength": 120,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / include_not_checked
      Added value: +{
      +  "description": "Include not-checked findings (the newer audit could not run their rule).",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +{}
  4. 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
  5. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare this is a safe, non-destructive read, so the description focuses on behavior the annotations cannot convey: the default response is a compact token-bounded summary, groups are paged 20 at a time via nextCursor, totals are never capped, and resolutionEvidence of "none" means nothing is reported as fixed. It also explains the subtle sampledOut / sampledClassGrowth semantics that otherwise look like a bug.

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

Conciseness4/5

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

Front-loaded with the purpose, default behavior, and the two output modes, which is the right ordering. It is dense and the parenthetical handling of still_open is long and nesting-heavy; a few clauses could be tightened, but the volume is justified by the eight-kind taxonomy it must convey.

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?

There is no output schema, so the description must carry the return shape, and it does: summary structure (score movement, eight-kind totals, grouped findings with severity, page counts, an example, cursor paging) and findings-row structure (findingsMatching, findingsRemaining). It also covers edge branches (firstRun, changed: false) that would otherwise force a trial call.

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 13 parameters at 100% coverage, so the description mostly reinforces rather than replaces it. It does add genuine meaning to the kind axis by defining each of the eight kinds behaviorally (what still_open, not_crawled, and not_checked actually mean, and why not_checked differs), which the enum list alone cannot supply.

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 and resource: "Compare two completed audits of one website and get what changed." It also states the default comparison pair (latest completed audit vs. the one before) and how to override it, so the agent can distinguish this from list_audits/get_report without opening a schema.

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?

Explicitly tells the agent when to use the default summary path versus detail="findings", and notes that kind, rule_id, page, or any include_* flag implies the findings path. It also declares the non-obvious cases: one-audit websites return firstRun, no-movement audits return changed: false, and unchanged/still_open/not_crawled/not_checked rows only appear when requested.

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.