Compare Audits
compare_auditsCompare two audits without publishing by default. Set share: true only with explicit approval and a connection that has manage permission. Returns before-and-after metric deltas only when both audits used the same strategy and device; source-changed metrics are marked inconclusive.
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": {
"siteId": "<siteId>",
"auditIdA": "<auditIdA>",
"auditIdB": "<auditIdB>"
},
"name": "compare_audits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share | No | Set true to publish a public, expiring comparison link. Defaults to false. | |
| siteId | Yes | The site ID (both audits must belong to this site) | |
| auditIdA | Yes | First audit ID (the 'before' / older audit) | |
| auditIdB | Yes | Second audit ID (the 'after' / newer audit) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auditA | Yes | ||
| auditB | Yes | ||
| reason | No | Required when runs are not comparable | |
| changes | No | Present only for comparable runs | |
| shareUrl | No | ||
| shareHint | No | ||
| comparable | Yes | ||
| shareExpiresAt | No |