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
}
Copy this paragraph into Claude, OpenClaw, or any MCP-aware agent to run this whole workflow on the server and check one field that answers a real question.
Question: Before this file goes to the examiner, does the priced loan cross the HMDA rate-spread reporting line?
Run the AINumbers MCP tool `run_chain` with {"chain":"fair-lending-disparity-audit"} and read `art-230-compute-hmda-rate-spread.is_reportable`.
Re-run with `inputs` for `art-230-compute-hmda-rate-spread`, reusing the values that result echoed, with `apr_pct` set to 1. Compare the same field.
Verify: call `verify_execution_hash` (https://mcp.ainumbers.co/mcp) with `claimed_hash` set to `composite_execution_hash` and the full `composite_artifact`.
Ledger, for a human re-check: https://ledger.ainumbers.co/
PII rule: send synthetic or anonymised inputs only. The MCP server runs these kernels and logs no payloads.
Chain page: https://ainumbers.co/chaingraph/chains/fair-lending-disparity-audit.html