compare_scans
Compare a base scan and a comparison scan to reveal differences in engines, severity counts, matched findings, SAST files/LOC, and stored SCA packages.
Instructions
Compare two scans, e.g. a cx pipeline scan (base) and a trigger_scan_local scan of the same commit (compare). Reports the engines that ran, per-engine counts by severity, findings matched by similarityId, SAST findings per file, SAST LOC, and the stored SCA packages with their direct, dev and test flags. differences lists what differs; it is empty when the scans match.
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": {
"baseScanId": "<baseScanId>",
"compareScanId": "<compareScanId>"
},
"name": "compare_scans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxItems | No | Max findings, files and packages listed per difference | |
| baseScanId | Yes | Scan to compare against, e.g. the pipeline scan | |
| compareScanId | Yes | Scan to compare, e.g. the local MCP scan | |
| hideDevAndTestDependencies | No | Leave SCA findings in dev and test dependencies out of both scans, same as cx --sca-hide-dev-test-dependencies |