Skip to main content
Glama

compare_audits

Compare before-and-after Site Audit exports for the same page to identify fixed, remaining, new, and regressed issues, so you can verify whether a fix worked after re-running the audit.

Instructions

Compare two Site Audit exports of the same page (before and after a fix): fixed, still present, new, and regressed (new in a category where something was fixed). Categories that did not run in both are listed and left out. Use it to verify a fix after the user re-runs the audit and exports again. Page-derived text is under untrusted.

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

Input Schema

NameRequiredDescriptionDefault
afterYesThe audit export from after the fix.
beforeYesThe audit export from before the fix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that categories absent from both exports are listed but excluded from the diff, and that page-derived text is quarantined under `untrusted`. It does not cover failure behavior for mismatched or non-comparable exports, which is the remaining gap.

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 core action and the four outcomes, then usage, then the trust warning. Efficient overall, though the opening sentence packs four enumerated buckets plus a parenthetical definition into one dense clause.

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

Completeness4/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 characterize the return value, and it does by naming the four result categories and the excluded-category listing. For a two-parameter read-only diff tool this is nearly complete; only error/mismatch handling is unaddressed.

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?

Schema coverage is 100%, so both parameters already document that they are the before-fix and after-fix exports. The description reinforces the temporal ordering ('before and after a fix') but adds no format, sizing, or pairing constraints beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Compare two Site Audit exports of the same page') and enumerates the exact output buckets: fixed, still present, new, regressed. The before/after framing and the 'same page' scope make it distinguishable from siblings like get_audit or get_finding, which retrieve rather than diff.

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

Usage Guidelines4/5

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

Explicitly says when to use it: 'verify a fix after the user re-runs the audit and exports again.' That is a concrete trigger condition. It stops short of stating when not to use it or naming an alternative for the case where only one export exists.

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