list_findings
Retrieve security and operational findings from AWS audit assessments to identify issues and generate actionable reports for compliance and cost analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| finding_set_id | Yes | ||
| severity_min | No | LOW |
Implementation Reference
- src/aws_mcp_audit/server.py:162-169 (handler)Handler function for the 'list_findings' tool, registered via @mcp.tool decorator. It reads findings from a JSON file for the given finding_set_id, filters by minimum severity using the severity_at_least helper, and returns the count and filtered findings.@mcp.tool def list_findings(finding_set_id: str, severity_min: str = "LOW") -> Dict[str, Any]: from aws_mcp_audit.checks.findings import severity_at_least p = os.path.join(snapshot_dir(DATA_DIR, finding_set_id), "findings.json") findings = read_json(p) filt = [f for f in findings if severity_at_least(str(f.get("severity", "LOW")), severity_min)] return {"count": len(filt), "findings": filt}