Gated two-step chain for fair lending disparity analysis. Step 1 computes HMDA rate-spread reportability using the FFIEC APOR methodology (1.5 pp and 3.5 pp thresholds) to establish context for the audit population. Step 2 computes disparity metrics from aggregate counts: the 4/5ths (80%) adverse-impact ratio, two-proportion z-statistic, odds ratio, and standardized mean difference. A §21.4 gate exits with remediation required when AIR falls below 0.8; the default path completes as a clean audit pass. All computation operates on aggregate counts only — zero PII by construction.
compute_hmda_rate_spread{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "compute_hmda_rate_spread",
"arguments": {
"loan_apr_pct": 7.2,
"apor_pct": 6.1,
"lien_type": "first_lien",
"product_type": "fixed",
"rate_lock_date": "2026-07-04"
}
},
"id": 1
}
compute_disparity_metrics{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "compute_disparity_metrics",
"arguments": {
"reference_group_label": "White Non-Hispanic",
"comparison_group_label": "Black or African American",
"reference_approved": 90,
"reference_total": 100,
"comparison_approved": 70,
"comparison_total": 100
}
},
"id": 2
}