Get compliance reports
get_compliance_reportsGet the Trivy Operator compliance posture for the current cluster. Returns bounded benchmark identities and pass/fail totals, failed controls with severity, remediation and affected counts, passed controls, and the aggregated configuration-audit severity, namespace and top-check rollups. For one selected finding, pass a focus object with check_id and source, plus benchmark_id for a benchmark control. Focused responses contain only that exact control and report whether it matched. Do not broaden a focused remediation request to unrelated controls. Use this for CIS, NSA/CISA and other compliance-benchmark questions; use get_security_reports for image vulnerabilities and CVEs.
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": {
"cluster_id": "<cluster_id>"
},
"name": "get_compliance_reports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | Exact selected control. Omit for a general cluster posture read. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. |